alpapad commented on a change in pull request #411:
URL: https://github.com/apache/incubator-ratis/pull/411#discussion_r567063376
##########
File path:
ratis-server/src/main/java/org/apache/ratis/server/storage/SnapshotManager.java
##########
@@ -130,10 +130,9 @@ public void installSnapshot(StateMachine stateMachine,
}
if (snapshotChunkRequest.getDone()) {
- LOG.info("Install snapshot is done, renaming tnp dir:{} to:{}",
- tmpDir, dir.getStateMachineDir());
- dir.getStateMachineDir().delete();
- tmpDir.renameTo(dir.getStateMachineDir());
+ LOG.info("Install snapshot is done, moving files from dir:{} to:{}",
tmpDir, dir.getStateMachineDir());
Review comment:
Handles the case where multiple files are copied
----------------------------------------------------------------
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]