GeorgeJahad commented on code in PR #3652:
URL: https://github.com/apache/ozone/pull/3652#discussion_r949196563
##########
hadoop-hdds/framework/src/main/java/org/apache/hadoop/hdds/utils/db/RDBStore.java:
##########
@@ -104,6 +107,17 @@ public RDBStore(File dbFile, ManagedDBOptions dbOptions,
}
}
+ //create snapshot directory if does not exist.
+ snapshotsParentDir = Paths.get(dbLocation.getParent(),
+ OM_SNAPSHOT_DIR).toString();
+ File snapshotsDir = new File(snapshotsParentDir);
+ if (!snapshotsDir.exists()) {
+ boolean success = snapshotsDir.mkdir();
+ if (!success) {
+ LOG.warn("Unable to create RocksDB snapshot directory");
Review Comment:
I was just imitating the code above that creates the checkpoint directory:
https://github.com/apache/ozone/blob/d551aa4635e4d33b0080d46d49d8d5b26aead820/hadoop-hdds/framework/src/main/java/org/apache/hadoop/hdds/utils/db/RDBStore.java#L99-L108
--
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]