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