diqiu50 opened a new pull request, #10740: URL: https://github.com/apache/gravitino/pull/10740
### What changes were proposed in this pull request? Reorder cache invalidation in catalog and relational entity store write paths so concurrent reads do not refill cache with stale metadata. ### Why are the changes needed? Several write paths invalidate cache before the backend mutation completes. Under concurrent access, another thread can miss the cache, read old data from the backend, and write that stale result back into cache. This can leave outdated catalog or relation metadata visible after rename, drop, or relation updates. Fix: #10739 ### Does this PR introduce _any_ user-facing change? No. ### How was this patch tested? - added unit coverage in `TestCatalogManager` - added unit coverage in `TestRelationalEntityStore` -- 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]
