anishshri-db opened a new pull request, #47860:
URL: https://github.com/apache/spark/pull/47860

   ### What changes were proposed in this pull request?
   Ensure that latestSnapshot is set to none on close to avoid subsequent use
   
   
   ### Why are the changes needed?
   Changes are needed to ensure that latestSnapshot is not used after db close 
since it might throw an exception in the context of the maint thread
   
   
   ### Does this PR introduce _any_ user-facing change?
   No
   
   
   ### How was this patch tested?
   Added unit tests
   
   Before the fix:
   ```
   [info] Run completed in 5 seconds, 666 milliseconds.
   [info] Total number of tests run: 8
   [info] Suites: completed 1, aborted 0
   [info] Tests: succeeded 6, failed 2, canceled 0, ignored 0, pending 0
   [info] *** 2 TESTS FAILED ***
   ```
   
   After the fix:
   ```
   [info] Run completed in 5 seconds, 661 milliseconds.
   [info] Total number of tests run: 8
   [info] Suites: completed 1, aborted 0
   [info] Tests: succeeded 8, failed 0, canceled 0, ignored 0, pending 0
   [info] All tests passed.
   ```
   
   
   ### Was this patch authored or co-authored using generative AI tooling?
   No
   


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


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to