You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@druid.apache.org by GitBox <gi...@apache.org> on 2022/04/12 04:42:05 UTC

[GitHub] [druid] kfaraz commented on a diff in pull request #12397: Fail fast incase a lookup load fails

kfaraz commented on code in PR #12397:
URL: https://github.com/apache/druid/pull/12397#discussion_r847960781


##########
extensions-core/lookups-cached-global/src/main/java/org/apache/druid/server/lookup/namespace/cache/CacheScheduler.java:
##########
@@ -253,6 +259,11 @@ private void tryUpdateCache(String currentVersion) throws Exception
           throw t;
         }
       }
+      finally {

Review Comment:
   Nit: @rohangarg , do you think it would be cleaner if we return the state of `updatedCacheSuccessfully` from `tryUpdateCache` and use that value to update the future `firstLoadFinishedSuccessfully` in `updateCache`.
   
   I think it would help us avoid updating the future in both `updateCache` and `tryUpdateCache`.



-- 
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: commits-unsubscribe@druid.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@druid.apache.org
For additional commands, e-mail: commits-help@druid.apache.org