You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@paimon.apache.org by "cxzl25 (via GitHub)" <gi...@apache.org> on 2025/10/22 13:34:27 UTC
[PR] [core] check exists before open file [paimon]
cxzl25 opened a new pull request, #6457:
URL: https://github.com/apache/paimon/pull/6457
<!-- Please specify the module before the PR name: [core] ... or [flink] ... -->
### Purpose
<!-- Linking this pull request to the issue -->
Linked issue: close #xxx
<!-- What is the purpose of the change -->
When writing an empty table, in the commit stage, some exceptions of FileNotFoundException are always thrown, although it does not affect the final execution result.
```
Caused by: org.apache.hadoop.ipc.RemoteException(java.io.FileNotFoundException): File does not exist: /user/hive/warehouse/xx.db/xxx/snapshot/EARLIEST
```
```
Caused by: org.apache.hadoop.ipc.RemoteException(java.io.FileNotFoundException): File does not exist: /user/hive/warehouse/xx.db/xxx/snapshot/LATEST
```
### Tests
<!-- List UT and IT cases to verify this change -->
### API and Format
<!-- Does this change affect API or storage format -->
### Documentation
<!-- Does this change introduce a new feature -->
--
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: issues-unsubscribe@paimon.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] [core] check exists before open file [paimon]
Posted by "cxzl25 (via GitHub)" <gi...@apache.org>.
cxzl25 closed pull request #6457: [core] check exists before open file
URL: https://github.com/apache/paimon/pull/6457
--
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: issues-unsubscribe@paimon.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] [core] check exists before open file [paimon]
Posted by "cxzl25 (via GitHub)" <gi...@apache.org>.
cxzl25 closed pull request #6457: [core] check exists before open file
URL: https://github.com/apache/paimon/pull/6457
--
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: issues-unsubscribe@paimon.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] [core] check exists before open file [paimon]
Posted by "JingsongLi (via GitHub)" <gi...@apache.org>.
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: issues-unsubscribe@paimon.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] [core] check exists before open file [paimon]
Posted by "cxzl25 (via GitHub)" <gi...@apache.org>.
cxzl25 commented on PR #6457:
URL: https://github.com/apache/paimon/pull/6457#issuecomment-3435003655
Thanks for review.
--
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: issues-unsubscribe@paimon.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org