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 <[email protected]>
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: [email protected]
For additional commands, e-mail: [email protected]