-
Notifications
You must be signed in to change notification settings - Fork 3.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Trim messages which less than mark delete position for message redelivery #5378
Trim messages which less than mark delete position for message redelivery #5378
Conversation
run java8 tests |
run integration tests |
} | ||
} | ||
|
||
private List<PositionImpl> trimByMarkDeletePosition(List<PositionImpl> positions) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is applying this filtering which generates a lot of temp objects each time these redeliveries are done. Why not clear the map when the clear-backlog or seek commands are issued?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Replace with removeIf(), please take a look.
retest this please |
run java8 tests |
run cpp tests |
run cpp tests |
run cpp tests |
retest this please |
1 similar comment
retest this please |
run cpp tests |
run java8 tests |
run integration tests |
2 similar comments
run integration tests |
run integration tests |
…k_deleted_position
run java8 tests |
run integration Tests |
run java8 tests |
1 similar comment
run java8 tests |
run java8 tests |
run java8 tests |
run java8 tests |
run java8 tests |
Master Issue: #5377
Motivation
Fix #5377
Modifications
Trim messages which less than mark delete position for message redelivery
Verifying this change
Add new unit test for this change
Does this pull request potentially affect one of the following parts:
If
yes
was chosen, please highlight the changesDocumentation