-
Notifications
You must be signed in to change notification settings - Fork 140
Provided a better solution for reading dead outbox entries #1940
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
Conversation
java/outbox.md
Outdated
| Predicate where = null; | ||
| for(OutboxService service : outboxServices) { | ||
| OutboxServiceConfig config = outboxConfigs.getService(service.getName()); | ||
| Predicate targetPredicate = CQL.get(Messages.TARGET).eq(service.getName()).and(CQL.get(Messages.ATTEMPTS).ge(config.getMaxAttempts())); |
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.
why do we need to filter by individual outbox and then OR the condition meeting all outboxes?
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.
@BraunMatthias Every outbox can have its own configuration for maxAttempts. To read only the dead entries per outbox, this filter is required.
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.
same reason - I just overlooked this aspect
Co-authored-by: BraunMatthias <59841349+BraunMatthias@users.noreply.github.com>
Co-authored-by: BraunMatthias <59841349+BraunMatthias@users.noreply.github.com>
|
@smahati Can you please review this PR? |
|
@smahati Thank you! :-) |
No description provided.