You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@activemq.apache.org by GitBox <gi...@apache.org> on 2019/02/25 20:11:33 UTC

[GitHub] orpiske commented on issue #2566: ARTEMIS-2183 Useless statement in public synchronized List

orpiske commented on issue #2566: ARTEMIS-2183 Useless statement in public synchronized List
URL: https://github.com/apache/activemq-artemis/pull/2566#issuecomment-467164632
 
 
   > So the only other thing here. Is this obviosuly has gone unnoticed for ages. To avoid this in future a test, ensuring its functionality (what ever that is)
   
   So, I dig a bit further to find out where it was used. This is part of the management API and is exposed both via Hawtio and Jolokia. 
   
   > 
   > "Transaction heuristic operations
   > 
   > In case of a server crash, when the server restarts, it it possible that some transaction requires manual 
   > intervention. The listPreparedTransactions() method lists the transactions which are in the prepared states (the transactions are represented as opaque Base64 Strings.) To commit or rollback a given prepared transaction, the commitPreparedTransaction() or rollbackPreparedTransaction() method can be used to resolve heuristic transactions. Heuristically completed transactions can be listed using the listHeuristicCommittedTransactions() and listHeuristicRolledBackTransactions methods."
   
   In my case here, I called it like this: 
   
   > curl -u admin:admin "http://localhost:8161/console/jolokia/exec/org.apache.activemq.artemis:broker=%220.0.0.0%22/listPreparedTransactionDetailsAsJSON()"
   
   And like this: 
   
   > curl -u admin:admin "http://localhost:8161/console/jolokia/exec/org.apache.activemq.artemis:broker=%220.0.0.0%22/listPreparedTransactionDetailsAsHTML()"                                                  [21:07:49]
   > {"request":{"mbean":"org.apache.activemq.artemis:broker=\"0.0.0.0\"","type":"exec","operation":"listPreparedTransactionDetailsAsHTML()"},"value":"<h3>*** Prepared Transaction Details ***<\/h3><p>No entry.<\/p>","timestamp":1551125316,"status":200}
   
   So, it looks like no one has ever been in a situation that used this functionality.
   
   

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services