ivanzlenko commented on code in PR #7260:
URL: https://github.com/apache/ignite-3/pull/7260#discussion_r2626608193


##########
modules/partition-replicator/src/main/java/org/apache/ignite/internal/partition/replicator/raft/snapshot/incoming/IncomingSnapshotReader.java:
##########
@@ -22,25 +22,26 @@
 import org.apache.ignite.raft.jraft.entity.RaftOutter.SnapshotMeta;
 import org.apache.ignite.raft.jraft.rpc.Message;
 import org.apache.ignite.raft.jraft.storage.snapshot.SnapshotReader;
+import org.jetbrains.annotations.Nullable;
 
 /**
  * Snapshot reader implementation to read the metadata of downloaded snapshot.
  */
 class IncomingSnapshotReader extends SnapshotReader {
     /** Snapshot meta. */
-    private final PartitionSnapshotMeta snapshotMeta;
+    private final @Nullable PartitionSnapshotMeta snapshotMeta;

Review Comment:
   https://github.com/apache/ignite-3/pull/7259



##########
modules/raft/src/main/java/org/apache/ignite/raft/jraft/storage/snapshot/SnapshotReader.java:
##########
@@ -28,7 +28,7 @@ public abstract class SnapshotReader extends Snapshot 
implements Closeable, Life
     /**
      * Load the snapshot metadata.
      */
-    public abstract SnapshotMeta load();
+    public abstract @Nullable SnapshotMeta load();

Review Comment:
   https://github.com/apache/ignite-3/pull/7259



-- 
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]

Reply via email to