-
-
Notifications
You must be signed in to change notification settings - Fork 196
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
txns: sleep 200ms on commit, preventing rebalance / new commit
See the updated transaction docs. This sleep will not happen if the user requires stable fetch offsets and the cluster is 2.5+. Ideally 200ms is fast enough especially in the context of this preventing and incredibly rare scenario. However, the scenario is such that if it happens, unknown undetectable duplicates could occur. 200ms may not be long enough in light of this, but the thought here is to allow the cluster at least a little bit of a heads up before allowing a rebalance, which itself requires JoinGroup and SyncGroup to complete before OffsetFetch can be issued to cause this problem.
- Loading branch information
Showing
3 changed files
with
89 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters