anuragp010 commented on code in PR #12112:
URL: https://github.com/apache/ozone/pull/12112#discussion_r4661952947
##########
hadoop-ozone/client/src/main/java/org/apache/hadoop/ozone/client/rpc/RpcClient.java:
##########
@@ -2654,13 +2669,13 @@ public OzoneOutputStream createFile(String volumeName,
String bucketName,
.setVolumeName(volumeName)
.setBucketName(bucketName)
.setKeyName(keyName)
- .setDataSize(size)
+ .setDataSize(options.getSize())
.setReplicationConfig(replicationConfig)
.setLatestVersionLocation(getLatestVersionLocation)
.setOwnerName(ownerName)
.build();
Review Comment:
Sure, I have removed `storagePolicy` from `createFileOptions` and also
mentions of storage policy in the comments for `createFile` overrides.
Yes, `OzoneManagerProtocolClientSideTranslatorPB.createFile` doesn't send
the field either. It has to be added as part of
[HDDS-16991](https://issues.apache.org/jira/browse/HDDS-16991) .
##########
hadoop-ozone/client/src/main/java/org/apache/hadoop/ozone/client/OzoneBucket.java:
##########
@@ -1317,6 +1307,23 @@ public OzoneOutputStream createFile(String keyName, long
size,
overWrite, recursive);
}
+ /**
+ * OzoneFS api to create an output stream for a file.
+ *
+ * @param keyName Key name
+ * @param options Size, replication config, overwrite, recursive flags and
storage policy of the file
Review Comment:
Yes, I have updated this comment to not mention storagePolicy for now.
--
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]