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

   ### What changes were proposed in this pull request?
   Reverts #10627 ([#10623] fix(core): reverse cleanup ordering in 
JobManager.cleanUpStagingDirs).
   
   ### Why are the changes needed?
   PR #10627 introduced a regression that causes 
`TestJobManager#testCleanUpStagingDirsDeletesDirectoryBeforeEntity` to fail in 
CI. The test expects `entityStore.delete()` to never be called at a specific 
point, but after reversing the cleanup ordering, the entity delete is being 
called repeatedly, causing a `ConditionTimeoutException`.
   
   Fix: #10728
   
   ### Does this PR introduce _any_ user-facing change?
   No.
   
   ### How was this patch tested?
   Reverts to the previous behavior. The existing unit test 
`TestJobManager#testCleanUpStagingDirsDeletesDirectoryBeforeEntity` should pass 
once this revert is applied.


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