ChenSammi commented on code in PR #7015:
URL: https://github.com/apache/ozone/pull/7015#discussion_r1699934754


##########
hadoop-ozone/client/src/main/java/org/apache/hadoop/ozone/client/io/KeyOutputStream.java:
##########
@@ -457,6 +460,9 @@ public void hsync() throws IOException {
       throw new UnsupportedOperationException("The replication factor = "
           + replication.getRequiredNodes() + " <= 1");
     }
+    if (ozoneManagerVersion.compareTo(OzoneManagerVersion.HBASE_SUPPORT) < 0) {
+      throw new IOException("OzoneManager does not support hsync");

Review Comment:
   I feel the error message in below ListOpenFilesSubCommand.java carries more 
info. 
   
   "It requires OzoneManager version " +  
OzoneManagerVersion.HBASE_SUPPORT.name().



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