Skip to content

INT-3529 Add 'expire-groups-upon-timeout' to Reseq - #1296

Closed
garyrussell wants to merge 2 commits into
spring-projects:masterfrom
garyrussell:INT-3529
Closed

garyrussell wants to merge 2 commits into
spring-projects:masterfrom
garyrussell:INT-3529

Conversation

@garyrussell

Copy link
Copy Markdown
Contributor

JIRA: https://jira.spring.io/browse/INT-3529

Late arriving messages will now be immediately discarded by
default.

@artembilan

Copy link
Copy Markdown
Member

Polishing for your confirmation: artembilan@7d02ed7
BTW, my branch is rebased to the master with fixed conflicts

@garyrussell

Copy link
Copy Markdown
Contributor Author

The polish is incorrect - consider a resequencer with releasePartialSequences=true (which has a SequenceSizeReleaseStrategy with releasePartialSequences=true). We don't want to complete the group when only a partial release was done.

That's why I had to complete the group only when timing out.

@artembilan

Copy link
Copy Markdown
Member

Ah! Yes. Sorry. Anyway how about to complete group before afterRelease? Because the last one may remove group. So, our complete amy form a new emty group.
Or is it intentional ?

@garyrussell

Copy link
Copy Markdown
Contributor Author

Good point - I originally was going to add a boolean (expiring) to afterRelease() but decided this was ok. I think I'll go back to that approach.

Move group completion to the Resequencer's `afterRelease()` when
the group is timed out.
@garyrussell

Copy link
Copy Markdown
Contributor Author

Pushed

@artembilan

Copy link
Copy Markdown
Member

LGTM. Merging...

@artembilan

Copy link
Copy Markdown
Member

Merged after rebase and squesh

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants