NSAmelchev commented on code in PR #10820:
URL: https://github.com/apache/ignite/pull/10820#discussion_r1251724179
##########
modules/core/src/main/java/org/apache/ignite/internal/processors/cache/persistence/snapshot/IgniteSnapshotManager.java:
##########
@@ -464,6 +465,9 @@ public class IgniteSnapshotManager extends
GridCacheSharedManagerAdapter
private final boolean sequentialWrite =
IgniteSystemProperties.getBoolean(IGNITE_SNAPSHOT_SEQUENTIAL_WRITE,
DFLT_IGNITE_SNAPSHOT_SEQUENTIAL_WRITE);
+ /** Status of snapshot check operations. */
+ private final List<CheckOperationStatus> checkOpsStatus = new
CopyOnWriteArrayList<>();
Review Comment:
Fixed
##########
modules/core/src/main/java/org/apache/ignite/internal/processors/cache/persistence/snapshot/IgniteSnapshotManager.java:
##########
@@ -4611,6 +4630,61 @@ public
IgniteSnapshotFutureImpl(IgniteInternalFuture<Void> fut) {
}
}
+ /** Snapshot check operation status. */
+ public class CheckOperationStatus implements AutoCloseable {
+ /** Snapshot metadata. */
+ private final SnapshotMetadata meta;
+
+ /** Operation request ID. */
+ private final UUID reqId;
+
+ /** Start time. */
+ private final long startTime = U.currentTimeMillis();
+
+ /** Processed partitions. */
+ private final AtomicInteger processedParts = new AtomicInteger();
+
+ /** Total partitions. */
+ private final Integer totalParts;
+
+ /** */
+ CheckOperationStatus(SnapshotMetadata meta, Integer totalParts, UUID
reqId) {
+ this.meta = meta;
+ this.totalParts = totalParts;
+ this.reqId = reqId;
+ }
+
+ /** @return Snapshot metadata. */
+ public SnapshotMetadata metadata() {
+ return meta;
+ }
+
+ /** @return Operation request ID. */
+ public UUID requestId() {
+ return reqId;
+ }
+
+ /** @return Start time. */
+ public long startTime() {
+ return startTime;
+ }
+
+ /** @return Processed partitions. */
+ public AtomicInteger processedPartitions() {
Review Comment:
Fixed
##########
modules/core/src/main/java/org/apache/ignite/internal/processors/cache/persistence/snapshot/IgniteSnapshotManager.java:
##########
@@ -4611,6 +4630,61 @@ public
IgniteSnapshotFutureImpl(IgniteInternalFuture<Void> fut) {
}
}
+ /** Snapshot check operation status. */
+ public class CheckOperationStatus implements AutoCloseable {
+ /** Snapshot metadata. */
+ private final SnapshotMetadata meta;
+
+ /** Operation request ID. */
+ private final UUID reqId;
+
+ /** Start time. */
+ private final long startTime = U.currentTimeMillis();
+
+ /** Processed partitions. */
+ private final AtomicInteger processedParts = new AtomicInteger();
+
+ /** Total partitions. */
+ private final Integer totalParts;
Review Comment:
Fixed
##########
modules/core/src/main/java/org/apache/ignite/internal/processors/cache/persistence/snapshot/IgniteSnapshotManager.java:
##########
@@ -4611,6 +4630,61 @@ public
IgniteSnapshotFutureImpl(IgniteInternalFuture<Void> fut) {
}
}
+ /** Snapshot check operation status. */
+ public class CheckOperationStatus implements AutoCloseable {
Review Comment:
Fixed
--
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]