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(admin): add retries for GroupCoordinator errors #3053

Merged
merged 3 commits into from
Jan 7, 2025
Merged

fix(admin): add retries for GroupCoordinator errors #3053

merged 3 commits into from
Jan 7, 2025

Conversation

dnwe
Copy link
Collaborator

@dnwe dnwe commented Jan 5, 2025

  • retry admin operations that rely on talking to the group coordinator for a given ID if the coordinator has changed from the cached value, or is not available
  • also fixup controller retry in ElectLeaders to use the err from response rather than sendAndReceive
  • also rename isErrNotController to isRetriableControllerError for consistency

admin.go Show resolved Hide resolved
@dnwe dnwe force-pushed the dnwe/admin branch 2 times, most recently from 0c7dafc to 718ce09 Compare January 6, 2025 21:28
@dnwe dnwe added the fix label Jan 6, 2025
admin.go Show resolved Hide resolved
admin.go Outdated Show resolved Hide resolved
admin.go Outdated Show resolved Hide resolved
admin.go Outdated Show resolved Hide resolved
admin.go Show resolved Hide resolved
admin.go Outdated Show resolved Hide resolved
@dnwe dnwe changed the base branch from main to dnwe/fix-fv January 7, 2025 11:01
Base automatically changed from dnwe/fix-fv to main January 7, 2025 11:12
@dnwe dnwe marked this pull request as ready for review January 7, 2025 11:18
dnwe added 3 commits January 7, 2025 12:34
- retry admin operations that rely on talking to the group coordinator
  for a given ID if the coordinator has changed from the cached value,
  or is not available
- also fixup controller retry in ElectLeaders to use the err from
  response rather than sendAndReceive
- also rename isErrNotController to isRetriableControllerError for
  consistency

Signed-off-by: Dominic Evans <[email protected]>
Use a named return for the defer func to inspect to avoid subtle bugs

Signed-off-by: Dominic Evans <[email protected]>
Copy link
Collaborator

@hindessm hindessm left a comment

Choose a reason for hiding this comment

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

LGTM

@dnwe dnwe merged commit 7385204 into main Jan 7, 2025
15 checks passed
@dnwe dnwe deleted the dnwe/admin branch January 7, 2025 14:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants