smengcl commented on a change in pull request #2857:
URL: https://github.com/apache/ozone/pull/2857#discussion_r760405697
##########
File path:
hadoop-ozone/client/src/main/java/org/apache/hadoop/ozone/client/rpc/RpcClient.java
##########
@@ -668,29 +670,63 @@ public void revokeS3Secret(String kerberosID) throws
IOException {
* {@inheritDoc}
*/
@Override
- public void createTenant(String tenantName) throws IOException {
- Preconditions.checkArgument(Strings.isNotBlank(tenantName),
+ public void createTenant(String tenantId) throws IOException {
+ Preconditions.checkArgument(Strings.isNotBlank(tenantId),
"tenantName cannot be null or empty.");
- ozoneManagerClient.createTenant(tenantName);
+ ozoneManagerClient.createTenant(tenantId);
+ }
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ public void createTenant(String tenantId, OmTenantArgs omTenantArgs)
Review comment:
Will add `TenantArgs`. Though I am not entirely sure why the client
wouldn't just use `OmVolumeArgs` for `createVolume`. It might have something to
do with the extra metadata (ObjectID/UpdateID).
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]