keepConcentration opened a new pull request, #8695: URL: https://github.com/apache/gravitino/pull/8695
### What changes were proposed in this pull request? This PR addresses an issue in `CaffeineEntityCache.java` where entities with a non-null `relationType` were not being cached as intended. The problem was traced to a `return` statement in the `syncEntitiesToCache` method that incorrectly prevented the caching of relation-based data. This change removes the aforementioned statement. ### Why are the changes needed? The previous behavior caused the cache to be bypassed for these operations, leading to unnecessary backend requests and preventing intended performance benefits. This fix ensures the caching mechanism now operates as designed. Fix: #8662 ### Does this PR introduce _any_ user-facing change? No user-facing changes. ### How was this patch tested? Executed existing unit tests. Added a new unit test (`testPutAndMergeWithRelationType`) to verify that the fix works as expected. -- 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]
