antonovsergey93 commented on a change in pull request #6374: IGNITE-11392: 
Improve LRT diagnostic messages
URL: https://github.com/apache/ignite/pull/6374#discussion_r273400831
 
 

 ##########
 File path: 
modules/core/src/main/java/org/apache/ignite/internal/processors/cache/GridCachePartitionExchangeManager.java
 ##########
 @@ -2065,6 +2074,63 @@ private boolean dumpLongRunningOperations0(long 
timeout) {
         return found;
     }
 
+    /**
+     * Dumps long running transaction. If transaction is active and is not 
near, sends compute request
+     * to near node to get the stack trace of transaction owner thread.
+     *
+     * @param tx Transaction.
+     * @param curTime Current time.
+     * @param warnings Warnings Group.
+     */
+    private void dumpLongRunningTransaction(IgniteInternalTx tx, long curTime, 
WarningsGroup warnings) {
+        if (warnings.canAddMessage()) {
+            warnings.add(">>> Transaction [startTime=" + 
formatTime(tx.startTime()) +
+                ", curTime=" + formatTime(curTime) + ", tx=" + tx + ']');
+        }
+        else
+            warnings.incTotal();
+
+        Ignite ignite = cctx.kernalContext().grid();
+
+        boolean txOwnerDumpAllowed = cctx.tm().txOwnerDumpRequestsAllowed();
+
+        if (txOwnerDumpAllowed && tx.local() && tx.state() == 
TransactionState.ACTIVE) {
 
 Review comment:
   Replace `txOwnerDumpAllowed` to `cctx.tm().txOwnerDumpRequestsAllowed()`

----------------------------------------------------------------
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.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

Reply via email to