ChenSammi commented on code in PR #8181:
URL: https://github.com/apache/ozone/pull/8181#discussion_r2022495309
##########
hadoop-hdds/container-service/src/main/java/org/apache/hadoop/ozone/container/common/volume/DbVolume.java:
##########
@@ -55,11 +55,10 @@ protected DbVolume(Builder b) throws IOException {
super(b);
this.hddsDbStorePathMap = new HashMap<>();
- if (!b.getFailedVolume()) {
- LOG.info("Creating DbVolume: {} of storage type: {}, {}",
- getStorageDir(), b.getStorageType(),
- getCurrentUsage());
+ LOG.info("Creating DbVolume: {}", getReport());
Review Comment:
Then how about log the message at the end of the function, and remove the id
null check?
--
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]