You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When a JMS transactional message is rolled back, this should be inspectable by the user at least via log messages with a hint to the ack-timeout setting.
Possibly, the users should be able to let the stream fail if the ACK timeout is hit and a message is rolled back.
Details
The current JMS.txSource automatically calls rollback when the ack-timeout (default 1 s) is hit, but this can't be noticed by the consumer.
Actually, just a log message may not be enough. I would rather see that the commit (and maybe also rollback) methods on the TxEvenlope would throw an exception to make it clear that the message was already rolled back.
Yes, that makes sense and would be expected. Changing it would break backwards compatibility for code that handles duplicated messages correctly today, though.
Short description
When a JMS transactional message is rolled back, this should be inspectable by the user at least via log messages with a hint to the
ack-timeout
setting.Possibly, the users should be able to let the stream fail if the ACK timeout is hit and a message is rolled back.
Details
The current
JMS.txSource
automatically calls rollback when theack-timeout
(default 1 s) is hit, but this can't be noticed by the consumer.alpakka/jms/src/main/scala/akka/stream/alpakka/jms/impl/JmsTxSourceStage.scala
Lines 53 to 58 in 85f65b1
See #1831
The text was updated successfully, but these errors were encountered: