ascherbakoff commented on code in PR #4227:
URL: https://github.com/apache/ignite-3/pull/4227#discussion_r1721495261
##########
modules/transactions/src/main/java/org/apache/ignite/internal/tx/impl/ReadWriteTransactionImpl.java:
##########
@@ -101,9 +101,11 @@ public IgniteBiTuple<ClusterNode, Long> enlist(
TablePartitionId tablePartitionId,
IgniteBiTuple<ClusterNode, Long> nodeAndConsistencyToken
) {
- checkEnlistPossibility();
-
- enlistPartitionLock.readLock().lock();
+ // No need to wait for lock if commit is in progress.
Review Comment:
Because if a lock is not taken immediately, it means it's held by commit
execution.
--
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]