diqiu50 commented on code in PR #12374:
URL: https://github.com/apache/gravitino/pull/12374#discussion_r3766249306
##########
core/src/main/java/org/apache/gravitino/storage/relational/RelationalEntityStore.java:
##########
@@ -115,6 +120,14 @@ public void initialize(Config config) throws
RuntimeException {
TimeUnit.SECONDS.toMillis(config.get(Configs.ENTITY_CHANGE_LOG_RETENTION_SECS)),
TimeUnit.SECONDS.toMillis(config.get(Configs.ENTITY_CHANGE_LOG_CLEANUP_INTERVAL_SECS)),
TimeUnit.SECONDS.toMillis(config.get(Configs.ENTITY_CHANGE_LOG_POLL_INTERVAL_SECS)));
+
+ // The coherence gate: a LOCAL_PER_NODE cache keeps its own copy per node,
so changes made on
+ // other nodes must be replayed here through the change log. SHARED and
NONE caches have
+ // nothing per-node to invalidate, so no listener is registered.
+ if (cache.coherence() == Coherence.LOCAL_PER_NODE) {
Review Comment:
Add testers for enable Coherence
--
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]