alpapad commented on a change in pull request #411:
URL: https://github.com/apache/incubator-ratis/pull/411#discussion_r567062731



##########
File path: 
ratis-server/src/main/java/org/apache/ratis/server/storage/SnapshotManager.java
##########
@@ -61,22 +60,23 @@ public void installSnapshot(StateMachine stateMachine,
     final long lastIncludedIndex = 
snapshotChunkRequest.getTermIndex().getIndex();
     final RaftStorageDirectory dir = storage.getStorageDir();
 
-    // create a unique temporary directory
-    final File tmpDir =  new File(dir.getTmpDir(), 
UUID.randomUUID().toString());

Review comment:
       when receiving a snapshot which does not fit in a single chunk, then 
multiple directories are created, each having a chunk of the snapshot




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

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to