-
-
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.
kgo: patch ConsumePartitions regression from 1.11.5
AddConsumeTopics was patched in 1.11.5 to actually work for the direct consumer. Unfortunately, this broke ConsumePartitions by always consuming all partitions. The prior commits introduced tests ensuring we do not regress on either of these issues. This commit introduces the fix. This also fixes two other small things: * We retry more on ILLEGAL_GENERATION while committing, which was seen once in tests (on GH, slow). We also sleep 10ms before retrying, which is short but hopefully enough of a pause when retrying. * We change blockingMetadataFn to wait for the function if the function is called. This was noticed in the TestDirectPartitionPurge test.
- Loading branch information
Showing
5 changed files
with
92 additions
and
18 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
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