You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ignite.apache.org by sk...@apache.org on 2022/08/08 17:32:11 UTC
[ignite-3] branch main updated: IGNITE-17493 Updated TODO in CmgRaftService
This is an automated email from the ASF dual-hosted git repository.
sk0x50 pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/ignite-3.git
The following commit(s) were added to refs/heads/main by this push:
new dc71e4172 IGNITE-17493 Updated TODO in CmgRaftService
dc71e4172 is described below
commit dc71e4172a0048fd2dffce8b878e2bd0f1a73b77
Author: Slava Koptilin <sl...@gmail.com>
AuthorDate: Mon Aug 8 20:31:13 2022 +0300
IGNITE-17493 Updated TODO in CmgRaftService
---
.../internal/cluster/management/raft/CmgRaftService.java | 2 +-
.../org/apache/ignite/internal/tx/impl/TxManagerImpl.java | 14 ++++----------
2 files changed, 5 insertions(+), 11 deletions(-)
diff --git a/modules/cluster-management/src/main/java/org/apache/ignite/internal/cluster/management/raft/CmgRaftService.java b/modules/cluster-management/src/main/java/org/apache/ignite/internal/cluster/management/raft/CmgRaftService.java
index cbebf6d9a..0ecd9b3fc 100644
--- a/modules/cluster-management/src/main/java/org/apache/ignite/internal/cluster/management/raft/CmgRaftService.java
+++ b/modules/cluster-management/src/main/java/org/apache/ignite/internal/cluster/management/raft/CmgRaftService.java
@@ -70,7 +70,7 @@ public class CmgRaftService {
*
* @return {@code true} if the current node is the CMG leader.
*/
- // TODO: replace with onLeaderElected callback after https://issues.apache.org/jira/browse/IGNITE-16379 is implemented
+ // TODO: replace with onLeaderElected callback https://issues.apache.org/jira/browse/IGNITE-17493
public CompletableFuture<Boolean> isCurrentNodeLeader() {
ClusterNode thisNode = clusterService.topologyService().localMember();
diff --git a/modules/transactions/src/main/java/org/apache/ignite/internal/tx/impl/TxManagerImpl.java b/modules/transactions/src/main/java/org/apache/ignite/internal/tx/impl/TxManagerImpl.java
index e53954276..ff61bf71a 100644
--- a/modules/transactions/src/main/java/org/apache/ignite/internal/tx/impl/TxManagerImpl.java
+++ b/modules/transactions/src/main/java/org/apache/ignite/internal/tx/impl/TxManagerImpl.java
@@ -70,18 +70,12 @@ public class TxManagerImpl implements TxManager, NetworkMessageHandler {
/** Lock manager. */
private final LockManager lockManager;
- /**
- * The storage for tx states.
- *
- * <p>TODO <MUTED> IGNITE-15931 use Storage for states, implement max size, implement replication.
- */
+ // TODO <MUTED> IGNITE-15931 use Storage for states, implement max size, implement replication.
+ /** The storage for tx states. */
private final ConcurrentHashMap<UUID, TxState> states = new ConcurrentHashMap<>();
- /**
- * The storage for locks acquired by transactions. Each key is mapped to lock type where true is for read.
- *
- * <p>TODO <MUTED> IGNITE-15932 use Storage for locks. Introduce limits, deny lock operation if the limit is exceeded.
- */
+ // TODO <MUTED> IGNITE-15932 use Storage for locks. Introduce limits, deny lock operation if the limit is exceeded.
+ /** The storage for locks acquired by transactions. Each key is mapped to lock type where true is for read. */
private final ConcurrentHashMap<UUID, Map<LockKey, Boolean>> locks = new ConcurrentHashMap<>();
/**