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

fix(v2): retry compaction polling requests on Raft leader errors #3562

Merged
merged 3 commits into from
Sep 19, 2024

Conversation

aleks-p
Copy link
Contributor

@aleks-p aleks-p commented Sep 17, 2024

Addresses an issue where compaction workers continue making requests to the wrong Raft node following a leadership transfer. We could alternatively move this to applyCommand but I will leave that for a future iteration.

@aleks-p aleks-p requested a review from a team as a code owner September 17, 2024 15:37
@marcsanmi marcsanmi requested a review from a team September 17, 2024 15:55
Copy link
Collaborator

@korniltsev korniltsev left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm.
While the fix is valid, I would expect the client to still be able to work without raft details - by pure random node selection. I will need to look into why it did not work.

Copy link
Collaborator

@kolesnikovae kolesnikovae left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@aleks-p aleks-p force-pushed the fix/compaction-polling-raft-retries branch from 3b10a46 to b23d844 Compare September 19, 2024 14:03
@aleks-p aleks-p merged commit 39981cb into main Sep 19, 2024
18 checks passed
@aleks-p aleks-p deleted the fix/compaction-polling-raft-retries branch September 19, 2024 14:28
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.

4 participants