swapneshgandhi commented on a change in pull request #8272: Support incremental 
load in Druid lookups
URL: https://github.com/apache/incubator-druid/pull/8272#discussion_r327358502
 
 

 ##########
 File path: 
extensions-core/lookups-cached-global/src/main/java/org/apache/druid/server/lookup/namespace/cache/CacheScheduler.java
 ##########
 @@ -232,7 +243,7 @@ private void tryUpdateCache(String currentVersion) throws 
Exception
           CacheState previousCacheState = swapCacheState(newVersionedCache);
           if (previousCacheState != NoCache.ENTRY_CLOSED) {
             updatedCacheSuccessfully = true;
-            if (previousCacheState instanceof VersionedCache) {
+            if (previousCacheState instanceof VersionedCache && 
!(newVersionedCache).incremental) {
 
 Review comment:
   Done, logged debug message instead of not calling close method.

----------------------------------------------------------------
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.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

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

Reply via email to