yuqi1129 commented on code in PR #7794:
URL: https://github.com/apache/gravitino/pull/7794#discussion_r2262298769
##########
clients/filesystem-hadoop3/src/main/java/org/apache/gravitino/filesystem/hadoop/DefaultGVFSOperations.java:
##########
@@ -63,6 +63,9 @@ public FSDataInputStream open(Path gvfsPath, int bufferSize)
throws IOException
FileSystem actualFs = getActualFileSystem(gvfsPath, currentLocationName());
Path actualFilePath =
getActualFilePath(gvfsPath, currentLocationName(),
FilesetDataOperation.OPEN);
+ if (actualFs.exists(actualFilePath) &&
!actualFs.getFileStatus(actualFilePath).isFile()) {
Review Comment:
I'm hesitant to do it as I'm not 100% sure whether all storage that supports
HCFS shares the same properties, that is:
It's prohibited to open a directory and append a directory
Another point is that I think the check needs to be passed by, and let the
specific storage handle it as we can't tell the difference between different
storage.
--
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]