z-bb commented on code in PR #4929:
URL: https://github.com/apache/ozone/pull/4929#discussion_r1233895410


##########
hadoop-ozone/ozonefs-common/src/main/java/org/apache/hadoop/fs/ozone/OzoneClientAdapter.java:
##########
@@ -46,9 +46,17 @@ public interface OzoneClientAdapter {
   OzoneFSOutputStream createFile(String key, short replication,
       boolean overWrite, boolean recursive) throws IOException;
 
+  OzoneFSOutputStream createFile(String key, short replication,
+      boolean overWrite, boolean recursive,
+      String ecPolicyName) throws IOException;

Review Comment:
   @sodonnel My idea is to keep all the previous parameters and only add an 
ecPolicyName attribute. Maybe the previous parameters will be useful later. 
Forcibly convert fs to RootedOzoneFileSystem in hadoop, and then call the 
createFile method, which is similar to forcibly converting fs to 
DistributedFileSystem above.



-- 
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]

Reply via email to