Skip to content

Commit

Permalink
cleaning DruidProcessingConfig bindings (#14927)
Browse files Browse the repository at this point in the history
  • Loading branch information
clintropolis authored Aug 31, 2023
1 parent 680669f commit dea9d4f
Show file tree
Hide file tree
Showing 4 changed files with 1 addition and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,6 @@
import org.apache.druid.query.ExecutorServiceMonitor;
import org.apache.druid.query.ForwardingQueryProcessingPool;
import org.apache.druid.query.QueryProcessingPool;
import org.apache.druid.segment.column.ColumnConfig;
import org.apache.druid.server.metrics.MetricsModule;
import org.apache.druid.utils.JvmUtils;

Expand All @@ -70,7 +69,6 @@ public void configure(Binder binder)
{
JsonConfigProvider.bind(binder, "druid.processing.merge", BrokerParallelMergeConfig.class);
JsonConfigProvider.bind(binder, "druid.processing", DruidProcessingConfig.class);
binder.bind(ColumnConfig.class).to(DruidProcessingConfig.class);
MetricsModule.register(binder, ExecutorServiceMonitor.class);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,6 @@
import org.apache.druid.query.MetricsEmittingQueryProcessingPool;
import org.apache.druid.query.PrioritizedExecutorService;
import org.apache.druid.query.QueryProcessingPool;
import org.apache.druid.segment.column.ColumnConfig;
import org.apache.druid.server.metrics.MetricsModule;
import org.apache.druid.utils.JvmUtils;

Expand All @@ -64,7 +63,6 @@ public class DruidProcessingModule implements Module
public void configure(Binder binder)
{
JsonConfigProvider.bind(binder, "druid.processing", DruidProcessingConfig.class);
binder.bind(ColumnConfig.class).to(DruidProcessingConfig.class);
MetricsModule.register(binder, ExecutorServiceMonitor.class);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,6 @@
import org.apache.druid.query.ExecutorServiceMonitor;
import org.apache.druid.query.ForwardingQueryProcessingPool;
import org.apache.druid.query.QueryProcessingPool;
import org.apache.druid.segment.column.ColumnConfig;
import org.apache.druid.server.metrics.MetricsModule;

import java.nio.ByteBuffer;
Expand All @@ -54,7 +53,6 @@ public class RouterProcessingModule implements Module
public void configure(Binder binder)
{
JsonConfigProvider.bind(binder, "druid.processing", DruidProcessingConfig.class);
binder.bind(ColumnConfig.class).to(DruidProcessingConfig.class);
MetricsModule.register(binder, ExecutorServiceMonitor.class);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ public void configure(Binder binder)
JsonConfigProvider.bind(binder, "druid.segmentCache", SegmentLoaderConfig.class);
bindLocationSelectorStrategy(binder);
binder.bind(ServerTypeConfig.class).toProvider(Providers.of(null));
binder.bind(ColumnConfig.class).to(DruidProcessingConfig.class);
binder.bind(ColumnConfig.class).to(DruidProcessingConfig.class).in(LazySingleton.class);
}

@Provides
Expand Down

0 comments on commit dea9d4f

Please sign in to comment.