yuqi1129 opened a new pull request, #14985:
URL: https://github.com/apache/gravitino/pull/14985

   ### What changes were proposed in this pull request?
   
   Make the async-purge integration test retry a complete file scan when 
concurrent deletion interrupts it with `NoSuchFileException`. Other I/O 
failures still fail immediately. Add deterministic regression coverage, 
repeating the retry sequence 20 times and verifying that incomplete scans 
cannot be mistaken for an empty directory.
   
   ### Why are the changes needed?
   
   [This CI 
run](https://github.com/yuqi1129/gravitino/actions/runs/43838465137/job/133218383937)
 failed because the cleanup worker removed a manifest while the test was 
traversing its directory. The resulting `UncheckedIOException` aborted 
Awaitility instead of allowing another poll.
   
   This fixes the observed traversal race. The existing poll-interval-based 
in-flight assertions remain unchanged.
   
   ### Does this PR introduce _any_ user-facing change?
   
   No. Test-only changes.
   
   ### How was this patch tested?
   
   - 25 focused regression tests passed, including 20 repetitions of the 
interrupted/nonempty/empty scan sequence.
   - `IcebergRESTAsyncPurgeIT` passed with Docker enabled, embedded mode and 
PostgreSQL; one test executed with no skips.
   - Removing the retry or treating an interrupted scan as empty each failed 
all 20 regression repetitions.
   - Relevant Spotless checks passed.
   


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