zhoulii opened a new issue, #9026:
URL: https://github.com/apache/paimon/issues/9026

   ### Search before asking
   
   - [x] I searched in the [issues](https://github.com/apache/paimon/issues) 
and found nothing similar.
   
   
   ### Paimon version
   
   1.4
   
   ### Compute Engine
   
   flink
   
   ### Minimal reproduce step
   
   1. PyPaimon writes `snapshot-32494` atomically and leaves a temporary file:
   
     snapshot-32494d686aba1-b44a-40a4-a4f1-d854830aa5cb.tmp
   
   2. Java scans the snapshot directory through `SnapshotManager` or     
`FileUtils.listVersionedFiles`.
   
   3. Java treats the temporary file as a snapshot and throws:
   
     NumberFormatException: For input string:
     "32494d686aba1-b44a-40a4-a4f1-d854830aa5cb.tmp"
   
   <img width="983" height="427" alt="Image" 
src="https://github.com/user-attachments/assets/02376c41-de86-453b-a38b-f64eb6595b14";
 />
   
   ### What doesn't meet your expectations?
   
   Python and Java should use the same temporary-file naming convention. 
Temporary
     files should not be treated as versioned metadata files, and Java should 
skip
     invalid version filenames instead of throwing `NumberFormatException`.
   
   ### Anything else?
   
   _No response_
   
   ### Are you willing to submit a PR?
   
   - [x] I'm willing to submit a PR!


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