anton-vinogradov commented on code in PR #10864:
URL: https://github.com/apache/ignite/pull/10864#discussion_r1280574134
##########
modules/core/src/main/java/org/apache/ignite/internal/processors/cache/transactions/TxDeadlockDetection.java:
##########
@@ -285,7 +284,7 @@ private void map(@Nullable Set<IgniteTxKey> keys,
Map<IgniteTxKey, TxLockList> t
assert set;
- if (nodeId == null || itersCnt++ >= DEADLOCK_MAX_ITERS || timedOut)
+ if (nodeId == null || itersCnt++ >= cctx.tm().deadlockMaxIters ||
timedOut)
Review Comment:
Let's keep it as is.
This may cause refactoring in futire :)
##########
modules/core/src/main/java/org/apache/ignite/internal/processors/cache/transactions/TxDeadlockDetection.java:
##########
@@ -285,7 +284,7 @@ private void map(@Nullable Set<IgniteTxKey> keys,
Map<IgniteTxKey, TxLockList> t
assert set;
- if (nodeId == null || itersCnt++ >= DEADLOCK_MAX_ITERS || timedOut)
+ if (nodeId == null || itersCnt++ >= cctx.tm().deadlockMaxIters ||
timedOut)
Review Comment:
Let's keep it as is.
This may cause refactoring in future :)
--
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]