discivigour opened a new pull request, #11276:
URL: https://github.com/apache/paimon/pull/11276

   ### Purpose
   
   A catalog can publish committed snapshot metadata before the corresponding 
snapshot file is available. A concurrent commit that reloads that snapshot can 
then fail with `FileNotFoundException`.
   
   Retry missing snapshot files in `SnapshotManager.fromPath` with up to three 
read attempts, 300 ms apart. Preserve the existing error and cause after 
exhaustion and restore the interrupt flag when interrupted. Keep `tryFromPath` 
unchanged so callers that skip expired snapshots can still handle missing files 
immediately.
   
   ### Tests
   
   - `SnapshotManagerTest`: 51 tests passed, with no failures, errors, or 
skipped tests.
   - Covers delayed file availability followed by incomplete JSON, retry 
exhaustion, immediate failure from `tryFromPath`, non-retryable I/O errors, 
interruption, and expired snapshot traversal. The earliest-snapshot exhaustion 
test uses real file reads.
   - No Flink/Spark integration or production validation was run.
   
   ```shell
   mvn -pl paimon-core -am \
     -Dmaven.test.skip=false -DskipTests=false \
     -DfailIfNoTests=false -Dsurefire.failIfNoSpecifiedTests=false \
     -DwildcardSuites=none -Dtest=SnapshotManagerTest test
   ```
   


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