LuciferYang opened a new pull request, #13770:
URL: https://github.com/apache/gluten/pull/13770

   ## What changes are proposed in this pull request?
   
   `VeloxBackend::tearDown` deleted leftover SSD cache files by iterating 
`cachePathPrefix_`, which is only set when the SSD cache is created. With the 
memory-only cache (`ssdCacheSize=0`) it was empty, so 
`std::filesystem::directory_iterator("")` threw at shutdown and 
`AsyncDataCache::shutdown()` was skipped.
   
   The file cleanup now runs only when `cachePathPrefix_` is set. 
`BoltBackend::tearDown` gets the same change.
   
   Fixes #13769.
   
   ## How was this patch tested?
   
   Added `VeloxBackendCacheTest.tearDownWithMemoryOnlyCache` to 
`velox_backend_test`. It creates the backend with the cache enabled and 
`ssdCacheSize=0` and checks that `tearDown` does not throw. It fails on the old 
code. The Bolt change has no test since no CI job builds the Bolt backend.
   
   ## Was this patch authored or co-authored using generative AI tooling?
   
   Yes. Generated-by: Claude Opus.
   


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