You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@ignite.apache.org by "Cyrill (via GitHub)" <gi...@apache.org> on 2024/04/02 13:42:47 UTC
[PR] IGNITE-21762 Run cleanup on primary reelection for all finished txns. [ignite-3]
Cyrill opened a new pull request, #3540:
URL: https://github.com/apache/ignite-3/pull/3540
https://issues.apache.org/jira/browse/IGNITE-21762
--
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: notifications-unsubscribe@ignite.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] IGNITE-21762 Run cleanup on primary reelection for all finished txns. [ignite-3]
Posted by "Cyrill (via GitHub)" <gi...@apache.org>.
Cyrill commented on code in PR #3540:
URL: https://github.com/apache/ignite-3/pull/3540#discussion_r1555380373
##########
modules/table/src/main/java/org/apache/ignite/internal/table/distributed/replicator/TransactionStateResolver.java:
##########
@@ -241,7 +242,7 @@ private void resolveTxStateFromCommitPartition(
* @param txId Transaction id.
*/
private void markAbandoned(UUID txId) {
- txManager.updateTxMeta(txId, TxStateMeta::abandoned);
+ txManager.updateTxMeta(txId, stateMeta -> stateMeta != null ? stateMeta.abandoned() : null);
Review Comment:
Yes
--
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: notifications-unsubscribe@ignite.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] IGNITE-21762 Run cleanup on primary reelection for all finished txns. [ignite-3]
Posted by "sanpwc (via GitHub)" <gi...@apache.org>.
sanpwc commented on code in PR #3540:
URL: https://github.com/apache/ignite-3/pull/3540#discussion_r1558991286
##########
modules/core/src/main/java/org/apache/ignite/internal/thread/ThreadOperation.java:
##########
@@ -25,8 +25,8 @@ public enum ThreadOperation {
STORAGE_READ,
/** Storage write. */
STORAGE_WRITE,
- /** Take replication protocol snapshot meta (used when initiating a full state transfer of a partition). */
- TAKE_SNAPSHOT_META,
+ /** Read TX State storage. */
+ TX_METASTORAGE_READ,
Review Comment:
TX_METASTORAGE isn't a canonical name, I believe it'll be confused with common meta storage. TX_STATE_STRORAGE fits better from my point of view.
Anyway, do re really need special operation to read from tx state storage? If we do we probably should also have TX_STATE_STORAGE_WRITE. All in all, I believe that from the treads perspective it doesn't really matter which storage it is, it's just an ability to perform long running storage related actions.
--
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: notifications-unsubscribe@ignite.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] IGNITE-21762 Run cleanup on primary reelection for all finished txns. [ignite-3]
Posted by "sanpwc (via GitHub)" <gi...@apache.org>.
sanpwc commented on code in PR #3540:
URL: https://github.com/apache/ignite-3/pull/3540#discussion_r1559002608
##########
modules/table/src/main/java/org/apache/ignite/internal/table/distributed/replicator/PartitionReplicaListener.java:
##########
@@ -394,6 +395,28 @@ public PartitionReplicaListener(
prepareIndexBuilderTxRwOperationTracker();
}
+ private void runPersistentStorageScan() {
+ try (Cursor<IgniteBiTuple<UUID, TxMeta>> txs = txStateStorage.scan()) {
+ for (IgniteBiTuple<UUID, TxMeta> tx : txs) {
Review Comment:
Could you please also add [DEBUG] logging on each primary replica start, that will print the number of transactions grouped per each state.
--
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: notifications-unsubscribe@ignite.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] IGNITE-21762 Run cleanup on primary reelection for all finished txns. [ignite-3]
Posted by "sanpwc (via GitHub)" <gi...@apache.org>.
sanpwc commented on code in PR #3540:
URL: https://github.com/apache/ignite-3/pull/3540#discussion_r1553906722
##########
modules/transactions/src/main/java/org/apache/ignite/internal/tx/TxManager.java:
##########
@@ -155,6 +156,22 @@ CompletableFuture<Void> cleanup(
UUID txId
);
+ /**
+ * Sends cleanup request to the cluster nodes that hosts primary replicas for the enlisted partitions.
+ *
+ * @param enlistedPartitions Enlisted partition groups.
Review Comment:
It would be nice to explain through javadoc, why sometimes it's just TableParitionIds and sometimes Map<TablePartitionId, String>.
--
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: notifications-unsubscribe@ignite.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] IGNITE-21762 Run cleanup on primary reelection for all finished txns. [ignite-3]
Posted by "zstan (via GitHub)" <gi...@apache.org>.
zstan commented on code in PR #3540:
URL: https://github.com/apache/ignite-3/pull/3540#discussion_r1552048465
##########
modules/transactions/src/main/java/org/apache/ignite/internal/tx/impl/TxManagerImpl.java:
##########
@@ -666,7 +673,7 @@ private CompletableFuture<Void> makeFinishRequest(
new TxStateMeta(
txResult.transactionState(),
localNodeId,
- old.commitPartitionId(),
+ old == null ? null : old.commitPartitionId(),
Review Comment:

and voila )
--
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: notifications-unsubscribe@ignite.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] IGNITE-21762 Run cleanup on primary reelection for all finished txns. [ignite-3]
Posted by "Cyrill (via GitHub)" <gi...@apache.org>.
Cyrill commented on code in PR #3540:
URL: https://github.com/apache/ignite-3/pull/3540#discussion_r1555932757
##########
modules/table/src/main/java/org/apache/ignite/internal/table/distributed/replicator/PartitionReplicaListener.java:
##########
@@ -394,6 +396,52 @@ public PartitionReplicaListener(
prepareIndexBuilderTxRwOperationTracker();
}
+ @Override
+ public CompletableFuture<Boolean> onPrimaryElected(PrimaryReplicaEventParameters evt) {
+ assert replicationGroupId.equals(evt.groupId()) : format(
+ "The replication group listener does not match the event [grp={}, eventGrp={}]",
+ replicationGroupId,
+ evt.groupId()
+ );
+
+ if (!localNode.id().equals(evt.leaseholderId())) {
+ return falseCompletedFuture();
+ }
+
+ schedulePersistentStorageScan();
+
+ // The future returned by this event handler can't wait for all cleanups because it's not necessary and it can block
+ // meta storage notification thread for a while, preventing it from delivering further updates (including leases) and therefore
+ // causing deadlock on primary replica waiting.
+ return falseCompletedFuture();
+ }
+
+ private void schedulePersistentStorageScan() {
+ txManager.executeWriteIntentSwitchAsync(this::runPersistentStorageScan);
+ }
+
+ private void runPersistentStorageScan() {
+ try (Cursor<IgniteBiTuple<UUID, TxMeta>> txs = txStateStorage.scan()) {
+ for (IgniteBiTuple<UUID, TxMeta> tx : txs) {
+ UUID txId = tx.getKey();
+ TxMeta txMeta = tx.getValue();
+
+ assert !txMeta.enlistedPartitions().isEmpty();
Review Comment:
yes we do
--
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: notifications-unsubscribe@ignite.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] IGNITE-21762 Run cleanup on primary reelection for all finished txns. [ignite-3]
Posted by "zstan (via GitHub)" <gi...@apache.org>.
zstan commented on code in PR #3540:
URL: https://github.com/apache/ignite-3/pull/3540#discussion_r1552045112
##########
modules/transactions/src/main/java/org/apache/ignite/internal/tx/impl/TxManagerImpl.java:
##########
@@ -666,7 +673,7 @@ private CompletableFuture<Void> makeFinishRequest(
new TxStateMeta(
txResult.transactionState(),
localNodeId,
- old.commitPartitionId(),
+ old == null ? null : old.commitPartitionId(),
Review Comment:
seems you need change your interface :
<T extends TxStateMeta> T updateTxMeta(UUID txId, Function<@Nullable TxStateMeta, TxStateMeta> updater); and further implementation method.
--
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: notifications-unsubscribe@ignite.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] IGNITE-21762 Run cleanup on primary reelection for all finished txns. [ignite-3]
Posted by "sanpwc (via GitHub)" <gi...@apache.org>.
sanpwc commented on code in PR #3540:
URL: https://github.com/apache/ignite-3/pull/3540#discussion_r1553849374
##########
modules/replicator/src/main/java/org/apache/ignite/internal/replicator/ReplicaManager.java:
##########
@@ -227,6 +230,8 @@ public ReplicaManager(
new LinkedBlockingQueue<>(),
NamedThreadFactory.create(nodeName, "replica", LOG)
);
+
+ placementDriver.listen(PrimaryReplicaEvent.PRIMARY_REPLICA_ELECTED, this::onPrimaryReplicaElected);
Review Comment:
I don't think that it's the proper place. I'd rather expect TxManager to listen PRIMARY_REPLICA_ELECTED and send cleanupRecoveryRequest to the one. Internally cleanupRecoveryRequest will scan corresponding TxStateStorage and trigger the common cleanup. Something like that.
##########
modules/client/src/test/java/org/apache/ignite/client/fakes/FakeTxManager.java:
##########
@@ -195,6 +196,15 @@ public CompletableFuture<Void> cleanup(
return nullCompletedFuture();
}
+ @Override
+ public CompletableFuture<Void> cleanup(
+ Collection<TablePartitionId> enlistedPartitions,
+ boolean commit,
+ @Nullable HybridTimestamp commitTimestamp, UUID txId
Review Comment:
Please move txId to the separate line.
##########
modules/replicator/src/main/java/org/apache/ignite/internal/replicator/Replica.java:
##########
@@ -128,6 +128,13 @@ public Replica(
raftClient.subscribeLeader(this::onLeaderElected);
}
+ /**
+ * Returns an instance of replica listener, associated with current replica.
+ */
+ ReplicaListener replicaListener() {
Review Comment:
No way. We should not expose the listener.
--
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: notifications-unsubscribe@ignite.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] IGNITE-21762 Run cleanup on primary reelection for all finished txns. [ignite-3]
Posted by "Cyrill (via GitHub)" <gi...@apache.org>.
Cyrill commented on code in PR #3540:
URL: https://github.com/apache/ignite-3/pull/3540#discussion_r1559034238
##########
modules/table/src/main/java/org/apache/ignite/internal/table/distributed/raft/PartitionListener.java:
##########
@@ -401,6 +404,15 @@ private UpdateCommandResult handleUpdateAllCommand(UpdateAllCommand cmd, long co
return new TransactionResult(stateToSet, cmd.commitTimestamp());
}
+ private static List<TablePartitionId> fromPartitionIdMessage(List<TablePartitionIdMessage> partitionIds) {
+ List<TablePartitionId> list = new ArrayList<>();
Review Comment:
done
--
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: notifications-unsubscribe@ignite.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] IGNITE-21762 Run cleanup on primary reelection for all finished txns. [ignite-3]
Posted by "Cyrill (via GitHub)" <gi...@apache.org>.
Cyrill commented on code in PR #3540:
URL: https://github.com/apache/ignite-3/pull/3540#discussion_r1552838410
##########
modules/transactions/src/main/java/org/apache/ignite/internal/tx/impl/TxManagerImpl.java:
##########
@@ -666,7 +673,7 @@ private CompletableFuture<Void> makeFinishRequest(
new TxStateMeta(
txResult.transactionState(),
localNodeId,
- old.commitPartitionId(),
+ old == null ? null : old.commitPartitionId(),
Review Comment:
Thank you. Added.
--
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: notifications-unsubscribe@ignite.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] IGNITE-21762 Run cleanup on primary reelection for all finished txns. [ignite-3]
Posted by "Cyrill (via GitHub)" <gi...@apache.org>.
Cyrill commented on code in PR #3540:
URL: https://github.com/apache/ignite-3/pull/3540#discussion_r1552838410
##########
modules/transactions/src/main/java/org/apache/ignite/internal/tx/impl/TxManagerImpl.java:
##########
@@ -666,7 +673,7 @@ private CompletableFuture<Void> makeFinishRequest(
new TxStateMeta(
txResult.transactionState(),
localNodeId,
- old.commitPartitionId(),
+ old == null ? null : old.commitPartitionId(),
Review Comment:
thank you
--
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: notifications-unsubscribe@ignite.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] IGNITE-21762 Run cleanup on primary reelection for all finished txns. [ignite-3]
Posted by "sanpwc (via GitHub)" <gi...@apache.org>.
sanpwc commented on code in PR #3540:
URL: https://github.com/apache/ignite-3/pull/3540#discussion_r1553879420
##########
modules/table/src/main/java/org/apache/ignite/internal/table/distributed/replicator/PartitionReplicaListener.java:
##########
@@ -394,6 +396,52 @@ public PartitionReplicaListener(
prepareIndexBuilderTxRwOperationTracker();
}
+ @Override
+ public CompletableFuture<Boolean> onPrimaryElected(PrimaryReplicaEventParameters evt) {
+ assert replicationGroupId.equals(evt.groupId()) : format(
+ "The replication group listener does not match the event [grp={}, eventGrp={}]",
+ replicationGroupId,
+ evt.groupId()
+ );
+
+ if (!localNode.id().equals(evt.leaseholderId())) {
+ return falseCompletedFuture();
+ }
+
+ schedulePersistentStorageScan();
+
+ // The future returned by this event handler can't wait for all cleanups because it's not necessary and it can block
+ // meta storage notification thread for a while, preventing it from delivering further updates (including leases) and therefore
+ // causing deadlock on primary replica waiting.
+ return falseCompletedFuture();
+ }
+
+ private void schedulePersistentStorageScan() {
+ txManager.executeWriteIntentSwitchAsync(this::runPersistentStorageScan);
Review Comment:
Why we need to executeWriteIntentSwitchAync()?
--
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: notifications-unsubscribe@ignite.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] IGNITE-21762 Run cleanup on primary reelection for all finished txns. [ignite-3]
Posted by "Cyrill (via GitHub)" <gi...@apache.org>.
Cyrill commented on code in PR #3540:
URL: https://github.com/apache/ignite-3/pull/3540#discussion_r1557203182
##########
modules/transactions/src/main/java/org/apache/ignite/internal/tx/TxManager.java:
##########
@@ -155,6 +156,22 @@ CompletableFuture<Void> cleanup(
UUID txId
);
+ /**
+ * Sends cleanup request to the cluster nodes that hosts primary replicas for the enlisted partitions.
+ *
+ * @param enlistedPartitions Enlisted partition groups.
Review Comment:
done
--
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: notifications-unsubscribe@ignite.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] IGNITE-21762 Run cleanup on primary reelection for all finished txns. [ignite-3]
Posted by "Cyrill (via GitHub)" <gi...@apache.org>.
Cyrill commented on code in PR #3540:
URL: https://github.com/apache/ignite-3/pull/3540#discussion_r1555931057
##########
modules/replicator/src/main/java/org/apache/ignite/internal/replicator/Replica.java:
##########
@@ -128,6 +128,13 @@ public Replica(
raftClient.subscribeLeader(this::onLeaderElected);
}
+ /**
+ * Returns an instance of replica listener, associated with current replica.
+ */
+ ReplicaListener replicaListener() {
Review Comment:
removed
##########
modules/replicator/src/main/java/org/apache/ignite/internal/replicator/ReplicaManager.java:
##########
@@ -227,6 +230,8 @@ public ReplicaManager(
new LinkedBlockingQueue<>(),
NamedThreadFactory.create(nodeName, "replica", LOG)
);
+
+ placementDriver.listen(PrimaryReplicaEvent.PRIMARY_REPLICA_ELECTED, this::onPrimaryReplicaElected);
Review Comment:
moved to TxManager
--
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: notifications-unsubscribe@ignite.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] IGNITE-21762 Run cleanup on primary reelection for all finished txns. [ignite-3]
Posted by "sanpwc (via GitHub)" <gi...@apache.org>.
sanpwc commented on code in PR #3540:
URL: https://github.com/apache/ignite-3/pull/3540#discussion_r1558998788
##########
modules/table/src/main/java/org/apache/ignite/internal/table/distributed/replicator/PartitionReplicaListener.java:
##########
@@ -394,6 +395,28 @@ public PartitionReplicaListener(
prepareIndexBuilderTxRwOperationTracker();
}
+ private void runPersistentStorageScan() {
+ try (Cursor<IgniteBiTuple<UUID, TxMeta>> txs = txStateStorage.scan()) {
+ for (IgniteBiTuple<UUID, TxMeta> tx : txs) {
+ UUID txId = tx.getKey();
+ TxMeta txMeta = tx.getValue();
+
+ assert !txMeta.enlistedPartitions().isEmpty();
+
+ if (isFinalState(txMeta.txState())) {
+ txManager.cleanup(
Review Comment:
Let's handle the future in order to log the expcetion if any. I understand that we really do not expect ones because of durable cleanup, however simple no-op may hide the problem.
--
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: notifications-unsubscribe@ignite.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] IGNITE-21762 Run cleanup on primary reelection for all finished txns. [ignite-3]
Posted by "Cyrill (via GitHub)" <gi...@apache.org>.
Cyrill commented on code in PR #3540:
URL: https://github.com/apache/ignite-3/pull/3540#discussion_r1559047295
##########
modules/table/src/main/java/org/apache/ignite/internal/table/distributed/replicator/PartitionReplicaListener.java:
##########
@@ -394,6 +395,28 @@ public PartitionReplicaListener(
prepareIndexBuilderTxRwOperationTracker();
}
+ private void runPersistentStorageScan() {
+ try (Cursor<IgniteBiTuple<UUID, TxMeta>> txs = txStateStorage.scan()) {
+ for (IgniteBiTuple<UUID, TxMeta> tx : txs) {
+ UUID txId = tx.getKey();
+ TxMeta txMeta = tx.getValue();
+
+ assert !txMeta.enlistedPartitions().isEmpty();
+
+ if (isFinalState(txMeta.txState())) {
+ txManager.cleanup(
Review Comment:
added
--
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: notifications-unsubscribe@ignite.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] IGNITE-21762 Run cleanup on primary reelection for all finished txns. [ignite-3]
Posted by "sanpwc (via GitHub)" <gi...@apache.org>.
sanpwc merged PR #3540:
URL: https://github.com/apache/ignite-3/pull/3540
--
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: notifications-unsubscribe@ignite.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] IGNITE-21762 Run cleanup on primary reelection for all finished txns. [ignite-3]
Posted by "sanpwc (via GitHub)" <gi...@apache.org>.
sanpwc commented on code in PR #3540:
URL: https://github.com/apache/ignite-3/pull/3540#discussion_r1559005740
##########
modules/transactions/src/main/java/org/apache/ignite/internal/tx/impl/TxManagerImpl.java:
##########
@@ -329,20 +334,35 @@ public TxManagerImpl(
new TxCleanupRequestSender(txMessageSender, placementDriverHelper, txStateVolatileStorage);
}
- private CompletableFuture<Boolean> primaryReplicaEventListener(PrimaryReplicaEventParameters eventParameters) {
+ private CompletableFuture<Boolean> primaryReplicaEventListener(
+ PrimaryReplicaEventParameters eventParameters,
+ Consumer<TablePartitionId> action
+ ) {
return inBusyLock(busyLock, () -> {
if (!(eventParameters.groupId() instanceof TablePartitionId)) {
return falseCompletedFuture();
}
TablePartitionId groupId = (TablePartitionId) eventParameters.groupId();
- transactionInflights.cancelWaitingInflights(groupId);
+ action.accept(groupId);
return falseCompletedFuture();
});
}
+ private CompletableFuture<Boolean> primaryReplicaElectedListener(PrimaryReplicaEventParameters eventParameters) {
+ return primaryReplicaEventListener(eventParameters, groupId -> {
Review Comment:
Busy lock is missing.
--
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: notifications-unsubscribe@ignite.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] IGNITE-21762 Run cleanup on primary reelection for all finished txns. [ignite-3]
Posted by "Cyrill (via GitHub)" <gi...@apache.org>.
Cyrill commented on code in PR #3540:
URL: https://github.com/apache/ignite-3/pull/3540#discussion_r1559089373
##########
modules/table/src/main/java/org/apache/ignite/internal/table/distributed/replicator/PartitionReplicaListener.java:
##########
@@ -394,6 +395,28 @@ public PartitionReplicaListener(
prepareIndexBuilderTxRwOperationTracker();
}
+ private void runPersistentStorageScan() {
+ try (Cursor<IgniteBiTuple<UUID, TxMeta>> txs = txStateStorage.scan()) {
+ for (IgniteBiTuple<UUID, TxMeta> tx : txs) {
Review Comment:
added
--
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: notifications-unsubscribe@ignite.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] IGNITE-21762 Run cleanup on primary reelection for all finished txns. [ignite-3]
Posted by "sanpwc (via GitHub)" <gi...@apache.org>.
sanpwc commented on code in PR #3540:
URL: https://github.com/apache/ignite-3/pull/3540#discussion_r1553896678
##########
modules/table/src/main/java/org/apache/ignite/internal/table/distributed/replicator/PartitionReplicaListener.java:
##########
@@ -1665,7 +1714,10 @@ private CompletableFuture<TransactionResult> finishTransaction(
txId,
commit,
commitTimestamp,
- catalogVersion
+ catalogVersion,
+ aggregatedGroupIds.stream()
+ .map(PartitionReplicaListener::tablePartitionId)
Review Comment:
Here and there: I'd rather skip using table in tablePartitionId because later it'll be zonePartitionId, so that, simple partitionId seems enough to me.
--
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: notifications-unsubscribe@ignite.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] IGNITE-21762 Run cleanup on primary reelection for all finished txns. [ignite-3]
Posted by "sanpwc (via GitHub)" <gi...@apache.org>.
sanpwc commented on code in PR #3540:
URL: https://github.com/apache/ignite-3/pull/3540#discussion_r1559156563
##########
modules/table/src/main/java/org/apache/ignite/internal/table/distributed/replicator/PartitionReplicaListener.java:
##########
@@ -440,6 +467,12 @@ private CompletableFuture<?> processRequest(ReplicaRequest request, @Nullable Bo
processOperationRequestWithTxRwCounter(senderId, request, isPrimary, opTsIfDirectRo, leaseStartTime));
}
+ private CompletableFuture<Void> processCleanupRecoveryMessage(TxCleanupRecoveryRequest request) {
+ runPersistentStorageScan();
Review Comment:
No, it's ok for now.
--
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: notifications-unsubscribe@ignite.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] IGNITE-21762 Run cleanup on primary reelection for all finished txns. [ignite-3]
Posted by "zstan (via GitHub)" <gi...@apache.org>.
zstan commented on code in PR #3540:
URL: https://github.com/apache/ignite-3/pull/3540#discussion_r1552045112
##########
modules/transactions/src/main/java/org/apache/ignite/internal/tx/impl/TxManagerImpl.java:
##########
@@ -666,7 +673,7 @@ private CompletableFuture<Void> makeFinishRequest(
new TxStateMeta(
txResult.transactionState(),
localNodeId,
- old.commitPartitionId(),
+ old == null ? null : old.commitPartitionId(),
Review Comment:
seems you need change your interface :
<T extends TxStateMeta> T updateTxMeta(UUID txId, Function<@Nullable TxStateMeta, TxStateMeta> updater);
--
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: notifications-unsubscribe@ignite.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] IGNITE-21762 Run cleanup on primary reelection for all finished txns. [ignite-3]
Posted by "Cyrill (via GitHub)" <gi...@apache.org>.
Cyrill commented on code in PR #3540:
URL: https://github.com/apache/ignite-3/pull/3540#discussion_r1557217727
##########
modules/table/src/main/java/org/apache/ignite/internal/table/distributed/replicator/PartitionReplicaListener.java:
##########
@@ -1665,7 +1714,10 @@ private CompletableFuture<TransactionResult> finishTransaction(
txId,
commit,
commitTimestamp,
- catalogVersion
+ catalogVersion,
+ aggregatedGroupIds.stream()
+ .map(PartitionReplicaListener::tablePartitionId)
Review Comment:
renamed
--
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: notifications-unsubscribe@ignite.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] IGNITE-21762 Run cleanup on primary reelection for all finished txns. [ignite-3]
Posted by "Cyrill (via GitHub)" <gi...@apache.org>.
Cyrill commented on code in PR #3540:
URL: https://github.com/apache/ignite-3/pull/3540#discussion_r1555929883
##########
modules/table/src/main/java/org/apache/ignite/internal/table/distributed/replicator/PartitionReplicaListener.java:
##########
@@ -394,6 +396,52 @@ public PartitionReplicaListener(
prepareIndexBuilderTxRwOperationTracker();
}
+ @Override
+ public CompletableFuture<Boolean> onPrimaryElected(PrimaryReplicaEventParameters evt) {
+ assert replicationGroupId.equals(evt.groupId()) : format(
+ "The replication group listener does not match the event [grp={}, eventGrp={}]",
+ replicationGroupId,
+ evt.groupId()
+ );
+
+ if (!localNode.id().equals(evt.leaseholderId())) {
+ return falseCompletedFuture();
+ }
+
+ schedulePersistentStorageScan();
+
+ // The future returned by this event handler can't wait for all cleanups because it's not necessary and it can block
+ // meta storage notification thread for a while, preventing it from delivering further updates (including leases) and therefore
+ // causing deadlock on primary replica waiting.
+ return falseCompletedFuture();
+ }
+
+ private void schedulePersistentStorageScan() {
+ txManager.executeWriteIntentSwitchAsync(this::runPersistentStorageScan);
Review Comment:
to avoid scanning in the message thread. If it's not an issue I can remove the proxying.
--
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: notifications-unsubscribe@ignite.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] IGNITE-21762 Run cleanup on primary reelection for all finished txns. [ignite-3]
Posted by "Cyrill (via GitHub)" <gi...@apache.org>.
Cyrill commented on code in PR #3540:
URL: https://github.com/apache/ignite-3/pull/3540#discussion_r1555931765
##########
modules/table/src/main/java/org/apache/ignite/internal/table/distributed/replicator/PartitionReplicaListener.java:
##########
@@ -394,6 +396,52 @@ public PartitionReplicaListener(
prepareIndexBuilderTxRwOperationTracker();
}
+ @Override
+ public CompletableFuture<Boolean> onPrimaryElected(PrimaryReplicaEventParameters evt) {
+ assert replicationGroupId.equals(evt.groupId()) : format(
+ "The replication group listener does not match the event [grp={}, eventGrp={}]",
+ replicationGroupId,
+ evt.groupId()
+ );
+
+ if (!localNode.id().equals(evt.leaseholderId())) {
Review Comment:
changed the code
--
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: notifications-unsubscribe@ignite.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] IGNITE-21762 Run cleanup on primary reelection for all finished txns. [ignite-3]
Posted by "sanpwc (via GitHub)" <gi...@apache.org>.
sanpwc commented on code in PR #3540:
URL: https://github.com/apache/ignite-3/pull/3540#discussion_r1558995916
##########
modules/table/src/main/java/org/apache/ignite/internal/table/distributed/raft/PartitionListener.java:
##########
@@ -401,6 +404,15 @@ private UpdateCommandResult handleUpdateAllCommand(UpdateAllCommand cmd, long co
return new TransactionResult(stateToSet, cmd.commitTimestamp());
}
+ private static List<TablePartitionId> fromPartitionIdMessage(List<TablePartitionIdMessage> partitionIds) {
+ List<TablePartitionId> list = new ArrayList<>();
Review Comment:
Minor: you know the size, let's propagate it to the constructor.
--
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: notifications-unsubscribe@ignite.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] IGNITE-21762 Run cleanup on primary reelection for all finished txns. [ignite-3]
Posted by "Cyrill (via GitHub)" <gi...@apache.org>.
Cyrill commented on code in PR #3540:
URL: https://github.com/apache/ignite-3/pull/3540#discussion_r1559001467
##########
modules/core/src/main/java/org/apache/ignite/internal/thread/ThreadOperation.java:
##########
@@ -25,8 +25,8 @@ public enum ThreadOperation {
STORAGE_READ,
/** Storage write. */
STORAGE_WRITE,
- /** Take replication protocol snapshot meta (used when initiating a full state transfer of a partition). */
- TAKE_SNAPSHOT_META,
Review Comment:
The proper name was supposed to be TX_METASTORAGE_READ.
--
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: notifications-unsubscribe@ignite.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] IGNITE-21762 Run cleanup on primary reelection for all finished txns. [ignite-3]
Posted by "sanpwc (via GitHub)" <gi...@apache.org>.
sanpwc commented on code in PR #3540:
URL: https://github.com/apache/ignite-3/pull/3540#discussion_r1553898357
##########
modules/table/src/main/java/org/apache/ignite/internal/table/distributed/replicator/TransactionStateResolver.java:
##########
@@ -241,7 +242,7 @@ private void resolveTxStateFromCommitPartition(
* @param txId Transaction id.
*/
private void markAbandoned(UUID txId) {
- txManager.updateTxMeta(txId, TxStateMeta::abandoned);
+ txManager.updateTxMeta(txId, stateMeta -> stateMeta != null ? stateMeta.abandoned() : null);
Review Comment:
It's the one related to NPE and not the ticket itself, right?
--
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: notifications-unsubscribe@ignite.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] IGNITE-21762 Run cleanup on primary reelection for all finished txns. [ignite-3]
Posted by "Cyrill (via GitHub)" <gi...@apache.org>.
Cyrill commented on code in PR #3540:
URL: https://github.com/apache/ignite-3/pull/3540#discussion_r1559039699
##########
modules/core/src/main/java/org/apache/ignite/internal/thread/ThreadOperation.java:
##########
@@ -25,8 +25,8 @@ public enum ThreadOperation {
STORAGE_READ,
/** Storage write. */
STORAGE_WRITE,
- /** Take replication protocol snapshot meta (used when initiating a full state transfer of a partition). */
- TAKE_SNAPSHOT_META,
+ /** Read TX State storage. */
+ TX_METASTORAGE_READ,
Review Comment:
Changed
--
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: notifications-unsubscribe@ignite.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] IGNITE-21762 Run cleanup on primary reelection for all finished txns. [ignite-3]
Posted by "sanpwc (via GitHub)" <gi...@apache.org>.
sanpwc commented on code in PR #3540:
URL: https://github.com/apache/ignite-3/pull/3540#discussion_r1559034721
##########
modules/table/src/main/java/org/apache/ignite/internal/table/distributed/replicator/PartitionReplicaListener.java:
##########
@@ -440,6 +467,12 @@ private CompletableFuture<?> processRequest(ReplicaRequest request, @Nullable Bo
processOperationRequestWithTxRwCounter(senderId, request, isPrimary, opTsIfDirectRo, leaseStartTime));
}
+ private CompletableFuture<Void> processCleanupRecoveryMessage(TxCleanupRecoveryRequest request) {
+ runPersistentStorageScan();
Review Comment:
What thread are we going to use here?
--
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: notifications-unsubscribe@ignite.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] IGNITE-21762 Run cleanup on primary reelection for all finished txns. [ignite-3]
Posted by "sanpwc (via GitHub)" <gi...@apache.org>.
sanpwc commented on code in PR #3540:
URL: https://github.com/apache/ignite-3/pull/3540#discussion_r1556998361
##########
modules/table/src/main/java/org/apache/ignite/internal/table/distributed/replicator/PartitionReplicaListener.java:
##########
@@ -394,6 +396,52 @@ public PartitionReplicaListener(
prepareIndexBuilderTxRwOperationTracker();
}
+ @Override
+ public CompletableFuture<Boolean> onPrimaryElected(PrimaryReplicaEventParameters evt) {
+ assert replicationGroupId.equals(evt.groupId()) : format(
+ "The replication group listener does not match the event [grp={}, eventGrp={}]",
+ replicationGroupId,
+ evt.groupId()
+ );
+
+ if (!localNode.id().equals(evt.leaseholderId())) {
+ return falseCompletedFuture();
+ }
+
+ schedulePersistentStorageScan();
+
+ // The future returned by this event handler can't wait for all cleanups because it's not necessary and it can block
+ // meta storage notification thread for a while, preventing it from delivering further updates (including leases) and therefore
+ // causing deadlock on primary replica waiting.
+ return falseCompletedFuture();
+ }
+
+ private void schedulePersistentStorageScan() {
+ txManager.executeWriteIntentSwitchAsync(this::runPersistentStorageScan);
Review Comment:
So, you are using `executeWriteIntentSwitchAync` only in order to have a thread switching side-effect, aren't you?
If true, there should be a better option.
--
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: notifications-unsubscribe@ignite.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] IGNITE-21762 Run cleanup on primary reelection for all finished txns. [ignite-3]
Posted by "Cyrill (via GitHub)" <gi...@apache.org>.
Cyrill commented on code in PR #3540:
URL: https://github.com/apache/ignite-3/pull/3540#discussion_r1555372019
##########
modules/client/src/test/java/org/apache/ignite/client/fakes/FakeTxManager.java:
##########
@@ -195,6 +196,15 @@ public CompletableFuture<Void> cleanup(
return nullCompletedFuture();
}
+ @Override
+ public CompletableFuture<Void> cleanup(
+ Collection<TablePartitionId> enlistedPartitions,
+ boolean commit,
+ @Nullable HybridTimestamp commitTimestamp, UUID txId
Review Comment:
Done
--
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: notifications-unsubscribe@ignite.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] IGNITE-21762 Run cleanup on primary reelection for all finished txns. [ignite-3]
Posted by "Cyrill (via GitHub)" <gi...@apache.org>.
Cyrill commented on code in PR #3540:
URL: https://github.com/apache/ignite-3/pull/3540#discussion_r1557237309
##########
modules/table/src/main/java/org/apache/ignite/internal/table/distributed/raft/PartitionListener.java:
##########
@@ -377,6 +379,10 @@ private UpdateCommandResult handleUpdateAllCommand(UpdateAllCommand cmd, long co
TxMeta txMetaToSet = new TxMeta(
stateToSet,
+ cmd.tablePartitionIds()
Review Comment:
replaced stream api
--
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: notifications-unsubscribe@ignite.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] IGNITE-21762 Run cleanup on primary reelection for all finished txns. [ignite-3]
Posted by "sanpwc (via GitHub)" <gi...@apache.org>.
sanpwc commented on code in PR #3540:
URL: https://github.com/apache/ignite-3/pull/3540#discussion_r1553866201
##########
modules/table/src/main/java/org/apache/ignite/internal/table/distributed/replicator/PartitionReplicaListener.java:
##########
@@ -394,6 +396,52 @@ public PartitionReplicaListener(
prepareIndexBuilderTxRwOperationTracker();
}
+ @Override
+ public CompletableFuture<Boolean> onPrimaryElected(PrimaryReplicaEventParameters evt) {
+ assert replicationGroupId.equals(evt.groupId()) : format(
+ "The replication group listener does not match the event [grp={}, eventGrp={}]",
+ replicationGroupId,
+ evt.groupId()
+ );
+
+ if (!localNode.id().equals(evt.leaseholderId())) {
Review Comment:
Is it really possible? Primary replica elected is a local event.
--
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: notifications-unsubscribe@ignite.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] IGNITE-21762 Run cleanup on primary reelection for all finished txns. [ignite-3]
Posted by "sanpwc (via GitHub)" <gi...@apache.org>.
sanpwc commented on code in PR #3540:
URL: https://github.com/apache/ignite-3/pull/3540#discussion_r1553861706
##########
modules/table/src/main/java/org/apache/ignite/internal/table/distributed/raft/PartitionListener.java:
##########
@@ -377,6 +379,10 @@ private UpdateCommandResult handleUpdateAllCommand(UpdateAllCommand cmd, long co
TxMeta txMetaToSet = new TxMeta(
stateToSet,
+ cmd.tablePartitionIds()
Review Comment:
We have a rule of thumb not to use stream API on the hot path if it's possible.
--
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: notifications-unsubscribe@ignite.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] IGNITE-21762 Run cleanup on primary reelection for all finished txns. [ignite-3]
Posted by "sanpwc (via GitHub)" <gi...@apache.org>.
sanpwc commented on code in PR #3540:
URL: https://github.com/apache/ignite-3/pull/3540#discussion_r1553886872
##########
modules/table/src/main/java/org/apache/ignite/internal/table/distributed/replicator/PartitionReplicaListener.java:
##########
@@ -394,6 +396,52 @@ public PartitionReplicaListener(
prepareIndexBuilderTxRwOperationTracker();
}
+ @Override
+ public CompletableFuture<Boolean> onPrimaryElected(PrimaryReplicaEventParameters evt) {
+ assert replicationGroupId.equals(evt.groupId()) : format(
+ "The replication group listener does not match the event [grp={}, eventGrp={}]",
+ replicationGroupId,
+ evt.groupId()
+ );
+
+ if (!localNode.id().equals(evt.leaseholderId())) {
+ return falseCompletedFuture();
+ }
+
+ schedulePersistentStorageScan();
+
+ // The future returned by this event handler can't wait for all cleanups because it's not necessary and it can block
+ // meta storage notification thread for a while, preventing it from delivering further updates (including leases) and therefore
+ // causing deadlock on primary replica waiting.
+ return falseCompletedFuture();
+ }
+
+ private void schedulePersistentStorageScan() {
+ txManager.executeWriteIntentSwitchAsync(this::runPersistentStorageScan);
+ }
+
+ private void runPersistentStorageScan() {
+ try (Cursor<IgniteBiTuple<UUID, TxMeta>> txs = txStateStorage.scan()) {
+ for (IgniteBiTuple<UUID, TxMeta> tx : txs) {
+ UUID txId = tx.getKey();
+ TxMeta txMeta = tx.getValue();
+
+ assert !txMeta.enlistedPartitions().isEmpty();
Review Comment:
What about ABANDONED -> ABORTED, do we adjust enlistedPartitions with the one that triggered the recovery?
--
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: notifications-unsubscribe@ignite.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] IGNITE-21762 Run cleanup on primary reelection for all finished txns. [ignite-3]
Posted by "Cyrill (via GitHub)" <gi...@apache.org>.
Cyrill commented on code in PR #3540:
URL: https://github.com/apache/ignite-3/pull/3540#discussion_r1559036134
##########
modules/transactions/src/main/java/org/apache/ignite/internal/tx/impl/TxManagerImpl.java:
##########
@@ -329,20 +334,35 @@ public TxManagerImpl(
new TxCleanupRequestSender(txMessageSender, placementDriverHelper, txStateVolatileStorage);
}
- private CompletableFuture<Boolean> primaryReplicaEventListener(PrimaryReplicaEventParameters eventParameters) {
+ private CompletableFuture<Boolean> primaryReplicaEventListener(
+ PrimaryReplicaEventParameters eventParameters,
+ Consumer<TablePartitionId> action
+ ) {
return inBusyLock(busyLock, () -> {
if (!(eventParameters.groupId() instanceof TablePartitionId)) {
return falseCompletedFuture();
}
TablePartitionId groupId = (TablePartitionId) eventParameters.groupId();
- transactionInflights.cancelWaitingInflights(groupId);
+ action.accept(groupId);
return falseCompletedFuture();
});
}
+ private CompletableFuture<Boolean> primaryReplicaElectedListener(PrimaryReplicaEventParameters eventParameters) {
+ return primaryReplicaEventListener(eventParameters, groupId -> {
Review Comment:
The busylock is actually used in primaryReplicaEventListener, no need to have it twice
--
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: notifications-unsubscribe@ignite.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] IGNITE-21762 Run cleanup on primary reelection for all finished txns. [ignite-3]
Posted by "Cyrill (via GitHub)" <gi...@apache.org>.
Cyrill commented on code in PR #3540:
URL: https://github.com/apache/ignite-3/pull/3540#discussion_r1559091500
##########
modules/table/src/main/java/org/apache/ignite/internal/table/distributed/replicator/PartitionReplicaListener.java:
##########
@@ -440,6 +467,12 @@ private CompletableFuture<?> processRequest(ReplicaRequest request, @Nullable Bo
processOperationRequestWithTxRwCounter(senderId, request, isPrimary, opTsIfDirectRo, leaseStartTime));
}
+ private CompletableFuture<Void> processCleanupRecoveryMessage(TxCleanupRecoveryRequest request) {
+ runPersistentStorageScan();
Review Comment:
A thread from ReplicaManager.requestsExecutor pool. Do you believe we need to offload it to a separate pool?
--
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: notifications-unsubscribe@ignite.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] IGNITE-21762 Run cleanup on primary reelection for all finished txns. [ignite-3]
Posted by "sanpwc (via GitHub)" <gi...@apache.org>.
sanpwc commented on code in PR #3540:
URL: https://github.com/apache/ignite-3/pull/3540#discussion_r1558985368
##########
modules/core/src/main/java/org/apache/ignite/internal/thread/ThreadOperation.java:
##########
@@ -25,8 +25,8 @@ public enum ThreadOperation {
STORAGE_READ,
/** Storage write. */
STORAGE_WRITE,
- /** Take replication protocol snapshot meta (used when initiating a full state transfer of a partition). */
- TAKE_SNAPSHOT_META,
Review Comment:
Do you mean that TAKE_SNAPHOT_META is the same as TX_METASTORAGE_READ?
--
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: notifications-unsubscribe@ignite.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org