ascherbakoff commented on code in PR #937:
URL: https://github.com/apache/ignite-3/pull/937#discussion_r930777368


##########
modules/raft/src/main/java/org/apache/ignite/internal/raft/server/impl/JraftServerImpl.java:
##########
@@ -543,9 +554,13 @@ public void onSnapshotSave(SnapshotWriter writer, Closure 
done) {
                     if (res == null) {
                         File file = new File(writer.getPath());
 
-                        for (File file0 : file.listFiles()) {
-                            if (file0.isFile()) {
-                                writer.addFile(file0.getName(), null);
+                        File[] snapshotFiles = file.listFiles();
+
+                        if (snapshotFiles != null) {

Review Comment:
   ok, I would rephrase a comment then, like "files are not created in the 
in-place snapshot scheme"



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