Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix slow rebalanceSafeCommits behavior (#1358)
After consumer 1 is shutdown (using stopConsumption), rebalances happen and partitions from consumer 2 are assigned. These streams are never started, so the finalizer completing completedPromise is never called. Waiting for these to complete takes 3 minutes (default maxRebalanceDuration). In case that streams were assigned and no record was ever put in their queues, there's no use in waiting for the stream to complete by committing some offset.
- Loading branch information