Skip to content

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

Merged
dnwe merged 3 commits intomainfrom
dnwe/admin
Jan 7, 2025
Merged

fix(admin): add retries for GroupCoordinator errors#3053
dnwe merged 3 commits intomainfrom
dnwe/admin

Conversation

@dnwe
Copy link
Copy Markdown
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

@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
@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
Copy Markdown
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
@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