This is an automated email from the ASF dual-hosted git repository.
arp pushed a commit to branch trunk
in repository https://gitbox.apache.org/repos/asf/hadoop.git
The following commit(s) were added to refs/heads/trunk by this push:
new f426b7c HDDS-139. Output of createVolume can be improved. Contributed
by Shweta.
f426b7c is described below
commit f426b7ce8fb33d57e4187484448b9e0bfc04ccfa
Author: Shweta Yakkali <[email protected]>
AuthorDate: Tue Mar 26 19:01:49 2019 -0700
HDDS-139. Output of createVolume can be improved. Contributed by Shweta.
---
.../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 9ba07d3..6ecda09 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 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: [email protected]
For additional commands, e-mail: [email protected]