anuragp010 commented on code in PR #12112:
URL: https://github.com/apache/ozone/pull/12112#discussion_r4676235485
##########
hadoop-ozone/client/src/main/java/org/apache/hadoop/ozone/client/rpc/RpcClient.java:
##########
@@ -1447,27 +1449,27 @@ public OzoneOutputStream createKey(
ReplicationConfig replicationConfig,
Map<String, String> metadata, Map<String, String> tags,
boolean derivedKeyPiggyBacking) throws IOException {
- String ownerName = getRealUserInfo().getShortUserName();
- OmKeyArgs.Builder builder = createWriteKeyArgsBuilder(volumeName,
- bucketName, keyName, size, replicationConfig, metadata, tags);
- builder.setOwnerName(ownerName);
-
builder.setDerivedKeyPiggyBacking(shouldPiggybackDerivedKey(derivedKeyPiggyBacking));
- return openOutputStream(builder.build(), size);
+ return createKey(volumeName, bucketName, keyName, new
CreateKeyOptions.Builder()
Review Comment:
Done. Updated `CreateKeyOptions`, `CreateFileOptions` and
`MultipartUploadOptions` and the callers.
--
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]