You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We are using brod in broadway_kafka and we are facing a race condition situation.
brod_group_coordinator is asking to revoke the assignments, BroadwayKafka before returning to assignments_revoked waits until the on-going jobs are finished and tries to execute commit_offsets. However brod_group_coordinator gen_server is busy and is not able to accept any new message. Luckily commit_offsets has a timeout to avoid deadlock
But still all the commit_offsets are missed, which means they will be re consuming again. The timeout set on commit_offsets is 5 seconds, it means that BroadwayKafka might reply on assignments_revoked up to 20 seconds which in return triggers timeout on joining to a new generation and causes endless rebalancing.
My Questions:
Is there a way to commit the offset independent of brod_group_coordinator?
Is the approach we take in broadway_kafka correct? How other users of this library behave on assignments_revoked ?
The text was updated successfully, but these errors were encountered:
calling commit_offsets from subscriber has a known race condition.
Maybe call brod_group_coordinator:ack/5 instead?
the coordinator process will try its best to collect and commit the acked offsets.
Hello,
We are using
brod
in broadway_kafka and we are facing a race condition situation.brod_group_coordinator
is asking to revoke the assignments,BroadwayKafka
before returning toassignments_revoked
waits until the on-going jobs are finished and tries to executecommit_offsets
. Howeverbrod_group_coordinator
gen_server is busy and is not able to accept any new message. Luckily commit_offsets has a timeout to avoid deadlockBut still all the
commit_offsets
are missed, which means they will be re consuming again. The timeout set oncommit_offsets
is 5 seconds, it means thatBroadwayKafka
might reply onassignments_revoked
up to 20 seconds which in return triggers timeout on joining to a new generation and causes endless rebalancing.My Questions:
brod_group_coordinator
?broadway_kafka
correct? How other users of this library behave onassignments_revoked
?The text was updated successfully, but these errors were encountered: