You are viewing a plain text version of this content. The canonical link for it is here.
Posted to common-commits@hadoop.apache.org by ar...@apache.org on 2019/03/27 02:03:22 UTC
[hadoop] branch ozone-0.4 updated: HDDS-139. Output of createVolume
can be improved. Contributed by Shweta.
This is an automated email from the ASF dual-hosted git repository.
arp pushed a commit to branch ozone-0.4
in repository https://gitbox.apache.org/repos/asf/hadoop.git
The following commit(s) were added to refs/heads/ozone-0.4 by this push:
new 299177e HDDS-139. Output of createVolume can be improved. Contributed by Shweta.
299177e is described below
commit 299177eaa74b839781f02f53e62c99269456f22f
Author: Shweta Yakkali <sh...@cloudera.com>
AuthorDate: Tue Mar 26 19:01:49 2019 -0700
HDDS-139. Output of createVolume can be improved. Contributed by Shweta.
(cherry picked from commit f426b7ce8fb33d57e4187484448b9e0bfc04ccfa)
---
.../main/java/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 a3214f3..d326cbc 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
@@ -269,8 +269,12 @@ public class RpcClient implements ClientProtocol, KeyProviderTokenIssuer {
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());
}
---------------------------------------------------------------------
To unsubscribe, e-mail: common-commits-unsubscribe@hadoop.apache.org
For additional commands, e-mail: common-commits-help@hadoop.apache.org