ChenSammi commented on code in PR #3392:
URL: https://github.com/apache/ozone/pull/3392#discussion_r868857338
##########
hadoop-hdds/container-service/src/main/java/org/apache/hadoop/ozone/container/common/volume/HddsVolume.java:
##########
@@ -178,13 +189,29 @@ public File getDbParentDir() {
return this.dbParentDir;
}
+ public boolean isDbLoaded() {
+ return dbLoaded.get();
+ }
+
+ @VisibleForTesting
+ public void setTest(boolean test) {
+ this.isTest = test;
+ }
+
public void loadDbStore() throws IOException {
// DN startup for the first time, not registered yet,
// so the DbVolume is not formatted.
if (!getStorageState().equals(VolumeState.NORMAL)) {
return;
}
+ // DB is already loaded
+ if (dbLoaded.get()) {
+ LOG.info("Db is already loaded from {} for volume {}", getDbParentDir(),
Review Comment:
Make sense.
--
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]