JingsongLi commented on code in PR #6457:
URL: https://github.com/apache/paimon/pull/6457#discussion_r2453856351


##########
paimon-core/src/main/java/org/apache/paimon/utils/HintFileUtils.java:
##########
@@ -71,7 +71,9 @@ public static Long readHint(FileIO fileIO, String fileName, 
Path dir) {
         int retryNumber = 0;
         while (retryNumber++ < READ_HINT_RETRY_NUM) {
             try {
-                return 
fileIO.readOverwrittenFileUtf8(path).map(Long::parseLong).orElse(null);
+                if (fileIO.exists(path)) {

Review Comment:
   This will bring another file io.



##########
paimon-core/src/main/java/org/apache/paimon/utils/HintFileUtils.java:
##########
@@ -71,7 +71,9 @@ public static Long readHint(FileIO fileIO, String fileName, 
Path dir) {
         int retryNumber = 0;
         while (retryNumber++ < READ_HINT_RETRY_NUM) {
             try {
-                return 
fileIO.readOverwrittenFileUtf8(path).map(Long::parseLong).orElse(null);
+                if (fileIO.exists(path)) {

Review Comment:
   This will bring another file io.



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

Reply via email to