jojochuang commented on code in PR #4104:
URL: https://github.com/apache/ozone/pull/4104#discussion_r1061185932
##########
hadoop-ozone/client/src/main/java/org/apache/hadoop/ozone/client/io/KeyOutputStream.java:
##########
@@ -440,6 +441,19 @@ public void flush() throws IOException {
handleFlushOrClose(StreamAction.FLUSH);
}
+ @Override
+ public void hflush() throws IOException {
+ hsync();
+ }
+
+ @Override
+ public void hsync() throws IOException {
+ checkNotClosed();
+ handleFlushOrClose(StreamAction.HSYNC);
+ //TODO send hsyncKey to update length;
+ // see blockOutputStreamEntryPool.commitKey(offset);
Review Comment:
I think, later we can add a blockOutputStreamEntryPool.hsync(), which is
mostly the same as commitKey except that it does not support multi part upload.
--
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]