Skip to content

check for stale cluster info before retrying#2

Open
sarcilav wants to merge 1 commit into
v0.6-stablefrom
sav-check-for-stable-cluster-info-before-retrying
Open

check for stale cluster info before retrying#2
sarcilav wants to merge 1 commit into
v0.6-stablefrom
sav-check-for-stable-cluster-info-before-retrying

Conversation

@sarcilav

@sarcilav sarcilav commented Aug 9, 2022

Copy link
Copy Markdown

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

ptrykov commented Aug 9, 2022

Copy link
Copy Markdown

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

sarcilav commented Aug 9, 2022

Copy link
Copy Markdown
Author

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

@ptrykov

ptrykov commented Aug 9, 2022

Copy link
Copy Markdown

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
@dhruvparanjape

Copy link
Copy Markdown

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