Fail fast incase a lookup load fails (#12397)
authorRohan Garg <7731512+rohangarg@users.noreply.github.com>
Mon, 18 Apr 2022 07:44:02 +0000 (13:14 +0530)
committerGitHub <noreply@github.com>
Mon, 18 Apr 2022 07:44:02 +0000 (13:14 +0530)
commitde9f12b5c6d6b1a6096c0eec04097101e4792878
treeb3fa19e9d3e369528fe2528a33a1dde38a98e06e
parent1201c9b2e56fd39d3b5a4120360c115c2c4347fc
Fail fast incase a lookup load fails (#12397)

Currently while loading a lookup for the first time, loading threads blocks
for `waitForFirstRunMs` incase the lookup failed to load. If the `waitForFirstRunMs`
is long (like 10 minutes), such blocking can slow down the loading of other lookups.

This commit allows the thread to progress as soon as the loading of the lookup fails.
extensions-core/lookups-cached-global/src/main/java/org/apache/druid/server/lookup/namespace/cache/CacheScheduler.java
extensions-core/lookups-cached-global/src/test/java/org/apache/druid/server/lookup/namespace/cache/CacheSchedulerTest.java