-
-
Notifications
You must be signed in to change notification settings - Fork 198
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
producing: only opt in to more than 1req if idempotent
Previously, we relied on the produce response being v4 or higher to say "ok we are talking to kafka v1+ and we can always be idempotent!". We actually only want to opt in to more requests only if we ourselves are idempotent. To detect this, we only opt up if the request was issued with a producer ID AND the response is v4 or higher. Ensuring we issued with a producer ID ensures that we are idempotent. This also simplifies some logic around where the idempotent fields are / how they are used.
- Loading branch information
Showing
1 changed file
with
8 additions
and
9 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