-
Notifications
You must be signed in to change notification settings - Fork 138
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix[MQB]: Remove maxDeliveryAttempts range check and add tests
- The change made in _crash_consumer_restart_leader comment is to match the comment with the code. - Before removing the if block in `mqbblp_domain.cpp`, `maxDeliveryAttempts` is reset to 5 if it's between 1-4, which is wrong since we want users to be able to set it to any value. The test `test_poison_rda_reset_priority_active` originally set `maxDeliveryAttempts` to 2 but attempted 3 deliveries. Before removing the if block this would work since `maxDeliveryAttempts` is reset to 5, but after the fix, the initial value for `maxDeliveryAttempts` should also change to 3. Signed-off-by: Emelia Lei <wlei29@bloomberg.net>
- Loading branch information
1 parent
b909a17
commit 6ee6823
Showing
3 changed files
with
53 additions
and
32 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