Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Close replica on partitioning to prevent its returning online but lagging #45

Merged
merged 1 commit into from
Nov 7, 2024

Conversation

vicpopov
Copy link
Collaborator

@vicpopov vicpopov commented Nov 5, 2024

  • Remember time of each successful replica report to ZK.
  • If ZK is unavailable, check if walreceiver is streaming.
  • If both ZK and walreceiver checks fail, close replica.
  • Log everything with values that triggered this logic.
  • Add tests for this logic.

@vicpopov vicpopov requested a review from a team as a code owner November 5, 2024 00:00
@vicpopov vicpopov force-pushed the detached_replica_close branch 3 times, most recently from 2452dfa to f19dfeb Compare November 5, 2024 22:52
tests/features/kill_replica.feature Outdated Show resolved Hide resolved
tests/features/kill_replica.feature Show resolved Hide resolved
tests/features/kill_replica.feature Show resolved Hide resolved
…ging

- Remember time of each successful replica report to ZK.
- If ZK is unavailable, check if walreceiver is streaming.
- If both ZK and walreceiver checks fail, close replica.
- Log everything with values that triggered this logic.
- Add tests for this logic.
@vicpopov vicpopov merged commit dabe360 into yandex:main Nov 7, 2024
30 checks passed
@vicpopov vicpopov deleted the detached_replica_close branch November 7, 2024 15:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants