tanvipenumudy commented on code in PR #3561:
URL: https://github.com/apache/ozone/pull/3561#discussion_r908011702
##########
hadoop-ozone/client/src/main/java/org/apache/hadoop/ozone/client/rpc/RpcClient.java:
##########
@@ -663,11 +667,20 @@ public void createBucket(
builder.setDefaultReplicationConfig(defaultReplicationConfig);
}
- LOG.info("Creating Bucket: {}/{}, with the Bucket Layout {}, {} as " +
- "owner, Versioning {}, Storage Type set to {} and Encryption set "
+
- "to {} ",
- volumeName, bucketName, bucketLayout, owner, isVersionEnabled,
- storageType, bek != null);
+ if (bucketLayout != null) {
+ LOG.info("Creating Bucket: {}/{}, with the Bucket Layout {}, {} as " +
+ "owner, Versioning {}, Storage Type set to {} and Encryption " +
+ "set to {} ",
+ volumeName, bucketName, bucketLayout, owner, isVersionEnabled,
+ storageType, bek != null);
+ } else {
+ LOG.info("Creating Bucket: {}/{}, with the Bucket Layout {} - set to" +
+ "OM server default using the configuration: " +
+ "ozone.default.bucket.layout, {} as owner, Versioning {}, " +
+ "Storage Type set to {} and Encryption set to {} ",
+ volumeName, bucketName, defaultBucketLayout, owner, isVersionEnabled,
+ storageType, bek != null);
+ }
Review Comment:
I have made the changes, thank you for reviewing!
--
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]