From f426b7ce8fb33d57e4187484448b9e0bfc04ccfa Mon Sep 17 00:00:00 2001 From: Shweta Yakkali Date: Tue, 26 Mar 2019 19:01:49 -0700 Subject: [PATCH] HDDS-139. Output of createVolume can be improved. Contributed by Shweta. --- .../org/apache/hadoop/ozone/client/rpc/RpcClient.java | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/hadoop-ozone/client/src/main/java/org/apache/hadoop/ozone/client/rpc/RpcClient.java b/hadoop-ozone/client/src/main/java/org/apache/hadoop/ozone/client/rpc/RpcClient.java index 9ba07d3e1a..6ecda09081 100644 --- a/hadoop-ozone/client/src/main/java/org/apache/hadoop/ozone/client/rpc/RpcClient.java +++ b/hadoop-ozone/client/src/main/java/org/apache/hadoop/ozone/client/rpc/RpcClient.java @@ -270,8 +270,12 @@ public void createVolume(String volumeName, VolumeArgs volArgs) builder.addOzoneAcls(OMPBHelper.convertOzoneAcl(ozoneAcl)); } - LOG.info("Creating Volume: {}, with {} as owner and quota set to {} bytes.", - volumeName, owner, quota); + if (volArgs.getQuota() == null) { + LOG.info("Creating Volume: {}, with {} as owner.", volumeName, owner); + } else { + LOG.info("Creating Volume: {}, with {} as owner " + + "and quota set to {} bytes.", volumeName, owner, quota); + } ozoneManagerClient.createVolume(builder.build()); }