timoninmaxim commented on code in PR #11495:
URL: https://github.com/apache/ignite/pull/11495#discussion_r1759752136
##########
modules/core/src/main/java/org/apache/ignite/internal/processors/cache/persistence/snapshot/SnapshotChecker.java:
##########
@@ -872,4 +1277,78 @@ private SnapshotEncryptionKeyProvider(GridKernalContext
ctx, Map<Integer, File>
return key != null && key.id() == keyId ? key : null;
}
}
+
+ /** */
+ public static class IncrementalSnapshotResult implements Serializable {
+ /** */
+ private static final long serialVersionUID = 0L;
+
+ /** Transaction hashes collection. */
+ private Map<Object, TransactionsHashRecord> txHashRes;
+
+ /**
+ * Partition hashes collection. Value is a hash of data entries {@link
DataEntry} from WAL segments included
+ * into the incremental snapshot.
+ */
+ private Map<PartitionKeyV2, PartitionHashRecordV2> partHashRes;
+
+ /** Partially committed transactions' collection. */
+ private Collection<GridCacheVersion> partiallyCommittedTxs;
+
+ /** Occurred exceptions. */
+ private Collection<Exception> exceptions;
+
+ /** */
+ public IncrementalSnapshotResult() {
+ // No-op.
+ }
+
+ /** */
+ private IncrementalSnapshotResult(
+ Map<Object, TransactionsHashRecord> txHashRes,
+ Map<PartitionKeyV2, PartitionHashRecordV2> partHashRes,
+ Collection<GridCacheVersion> partiallyCommittedTxs,
+ Collection<Exception> exceptions
+ ) {
+ this.txHashRes = txHashRes;
+ this.partHashRes = partHashRes;
+ this.partiallyCommittedTxs = partiallyCommittedTxs;
+ this.exceptions = exceptions;
+ }
+
+ /** */
+ public Map<PartitionKeyV2, PartitionHashRecordV2> partHashRes() {
+ return partHashRes;
+ }
+
+ /** */
+ public Map<Object, TransactionsHashRecord> txHashRes() {
+ return txHashRes;
+ }
+
+ /** */
+ public Collection<GridCacheVersion> partiallyCommittedTxs() {
+ return partiallyCommittedTxs;
+ }
+
+ /** */
+ public Collection<Exception> exceptions() {
Review Comment:
never used
--
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]