prashantpogde commented on code in PR #4214:
URL: https://github.com/apache/ozone/pull/4214#discussion_r1091010552


##########
hadoop-hdds/framework/src/main/java/org/apache/hadoop/hdds/utils/db/RDBCheckpointManager.java:
##########
@@ -79,12 +85,17 @@ public RocksDBCheckpoint createCheckpoint(String parentDir, 
String name) {
       checkpoint.createCheckpoint(checkpointPath);
       //Best guesstimate here. Not accurate.
       final long latest = checkpoint.getLatestSequenceNumber();
-      Instant end = Instant.now();
 
+      Instant end = Instant.now();
       long duration = Duration.between(start, end).toMillis();
-      LOG.info("Created checkpoint at {} in {} milliseconds",
+      LOG.info("Created checkpoint in rocksDB at {} in {} milliseconds",
               checkpointPath, duration);
 
+      // Wait for checkpoint directory to be created if it doesn't exist.
+      if (!checkpointPath.toFile().exists()) {

Review Comment:
   redundant



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


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to