clebertsuconic commented on code in PR #4659:
URL: https://github.com/apache/activemq-artemis/pull/4659#discussion_r1378905454
##########
artemis-protocols/artemis-openwire-protocol/src/main/java/org/apache/activemq/artemis/core/protocol/openwire/OpenWireConnection.java:
##########
@@ -1338,7 +1339,11 @@ public Response
processRemoveSubscription(RemoveSubscriptionInfo subInfo) throws
@Override
public Response processRollbackTransaction(TransactionInfo info) throws
Exception {
- Transaction tx = lookupTX(info.getTransactionId(), null, true);
+ Transaction tx = lookupTX(info.getTransactionId(), null);
+
+ if (tx == null) {
+ throw new IllegalStateException("Transaction not started, " +
info.getTransactionId());
Review Comment:
I would use a logger-id from the MessageBundle.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]