jerqi commented on code in PR #275:
URL: https://github.com/apache/incubator-uniffle/pull/275#discussion_r1005301935
##########
storage/src/main/java/org/apache/uniffle/storage/handler/impl/HdfsFileReader.java:
##########
@@ -92,4 +94,11 @@ public synchronized void close() throws IOException {
public Path getPath() {
return path;
}
+
+ public long getFileLen() throws IOException {
+ if (fileLen == -1) {
Review Comment:
We could call `getFileLen` multiple times. If the data is flushed after we
read the data at the first time. The length should vary.
--
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]