HDDS-139. Output of createVolume can be improved. Contributed by Shweta.

(cherry picked from commit f426b7ce8f)
This commit is contained in:
Shweta Yakkali 2019-03-26 19:01:49 -07:00 committed by Arpit Agarwal
parent 447d53476a
commit 299177eaa7
No known key found for this signature in database
GPG Key ID: E4B09E903FDF9E98
1 changed files with 6 additions and 2 deletions

View File

@ -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());
}