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

check for stale cluster info before retrying #2

Open
wants to merge 1 commit into
base: v0.6-stable
Choose a base branch
from

Conversation

sarcilav
Copy link

@sarcilav sarcilav commented Aug 9, 2022

So we keep stale data from the cluster even when we try to reread the leader.

so basically #get_leader keeps getting the same error over on NotLeaderForPartition, when leader rebalance happens and we are sending a batch, and it wasn't triggering a reread.

So we keep stale data from the cluster even when we try to reread the
leader.
@sarcilav sarcilav requested a review from ptrykov August 9, 2022 13:47
@ptrykov
Copy link

ptrykov commented Aug 9, 2022

could we try this approach instead https://github.com/zendesk/ruby-kafka/pull/901/files (back port from main repo) and see if this will solve an issue. (Just to be closer to the main repo)

@sarcilav
Copy link
Author

sarcilav commented Aug 9, 2022

I think we will need both, but yeah, good call

@ptrykov
Copy link

ptrykov commented Aug 9, 2022

Hey @fcbr, before updating Catbus gem we want to monitor #3 to check if that’s is enough to fix the rebalancing issue.

@sarcilav sarcilav changed the title check for stable cluster info before retrying check for stale cluster info before retrying Aug 11, 2022
@dhruvCW
Copy link

dhruvCW commented Mar 21, 2023

@ptrykov & @fcbr is this something we should work on ? could you perhaps share more details on what's happening and how to reproduce the issue ?

@sarcilav
Copy link
Author

@dhruvCW the issue is more evident if you spawn more than one consumer process, as you start dealing with more changes in the state of the cluster, which will create more chances for the cluster data in the clients to go stale, and basically this change tries to refresh the cluster metadata before retrying after an error.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

3 participants