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 had an issue with one of our application where for some reason CommitRecords is blocked which leads to AllowRebalance not being called, which in turn leads to more problems.
Here is a goroutine dump from an application that's blocked right now: goroutine_dump.txt.
Unfortunately I don't have a reproducer available right now, I could try to make one if that's needed.
We poll for records, process them and then allow rebalances
We use franz-go v1.15.3
We experienced this with the CooperativeStickyBalancer; this application also used the range balancer for a couple of weeks without problems but I'm not sure it wasn't dumb luck.
We had this problem only once and this application has been running with the cooperative sticky balancer for ~12 days.
After some digging in the source code and based on this goroutine that's blocked:
Ha, thanks. I was looking at the commit method for some reason but it's waitJoinSyncMu which returns an error and then done is never released.
In our production code we use a single context with a timeout for both processing and committing which was set at 2s, I think that's why we called CommitRecords with a canceled context.
In the meantime we'll use a non cancellable context for committing.
Hi,
we had an issue with one of our application where for some reason
CommitRecords
is blocked which leads toAllowRebalance
not being called, which in turn leads to more problems.Here is a goroutine dump from an application that's blocked right now: goroutine_dump.txt.
Unfortunately I don't have a reproducer available right now, I could try to make one if that's needed.
Our code works like this essentially:
We experienced this with the
CooperativeStickyBalancer
; this application also used the range balancer for a couple of weeks without problems but I'm not sure it wasn't dumb luck.We had this problem only once and this application has been running with the cooperative sticky balancer for ~12 days.
After some digging in the source code and based on this goroutine that's blocked:
It's blocked in this code and as far as I can tell the onDone callback is never called, which blocks
commitOffsetsSync
. I can't figure out why though.Does this look like a bug in franz-go or do you think we're doing something wrong in our code ?
The text was updated successfully, but these errors were encountered: