Skip to content
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

JMS transactions: fail stream or log on ack timeouts #1857

Merged
merged 3 commits into from
Aug 7, 2019

Conversation

ennru
Copy link
Member

@ennru ennru commented Aug 6, 2019

Purpose

Let the user notice when a transaction gets rolled back because ack-timeout was hit.

References

Implements #1855
See #1831

Changes

  • Log warning or fail the stream when the commit future isn't completed within ack-timeout
  • Introduce setting fail-stream-on-ack-timeout to let the user opt-in to let the stream fail

Background Context

It might seem natural to fail the promise in TxEnvelope so that commit and rollback would fail with "Promise already completed" when an ACK timeout occurred. This behaviour could be desirable but is not backwards compatible for scenarios that handle duplicated messages today. cc @andreas-schroeder

@ennru ennru added this to the 1.1.1 milestone Aug 6, 2019
Copy link
Member

@2m 2m left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@ennru ennru merged commit e4782c2 into akka:master Aug 7, 2019
@ennru ennru deleted the jms-tx-timeout branch August 7, 2019 18:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants