Re-enable segment metadata cache when using external schema (#12264)

This commit is contained in:
Jonathan Wei 2022-02-22 19:50:29 -06:00 committed by GitHub
parent b94390ba33
commit b1640a72ee
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 8 deletions

View File

@ -228,10 +228,8 @@ public class DruidSchema extends AbstractSchema
this.brokerInternalQueryConfig = brokerInternalQueryConfig;
this.druidSchemaManager = druidSchemaManager;
if (druidSchemaManager == null || druidSchemaManager instanceof NoopDruidSchemaManager) {
initServerViewTimelineCallback(serverView);
}
}
private void initServerViewTimelineCallback(final TimelineServerView serverView)
{
@ -375,11 +373,7 @@ public class DruidSchema extends AbstractSchema
@LifecycleStart
public void start() throws InterruptedException
{
if (druidSchemaManager == null || druidSchemaManager instanceof NoopDruidSchemaManager) {
startCacheExec();
} else {
initialized.countDown();
}
if (config.isAwaitInitializationOnStart()) {
final long startNanos = System.nanoTime();