Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Compaction with MSQ #14810

Closed
wants to merge 4 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions indexing-service/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,11 @@
<artifactId>druid-indexing-hadoop</artifactId>
<version>${project.parent.version}</version>
</dependency>
<dependency>
<groupId>org.apache.druid</groupId>
<artifactId>druid-sql</artifactId>
<version>${project.parent.version}</version>
</dependency>
<dependency>
<groupId>io.dropwizard.metrics</groupId>
<artifactId>metrics-core</artifactId>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@
import org.apache.druid.query.QueryProcessingPool;
import org.apache.druid.query.QueryRunnerFactoryConglomerate;
import org.apache.druid.rpc.indexing.OverlordClient;
import org.apache.druid.rpc.indexing.RouterClient;
import org.apache.druid.segment.IndexIO;
import org.apache.druid.segment.IndexMergerV9;
import org.apache.druid.segment.handoff.SegmentHandoffNotifierFactory;
Expand Down Expand Up @@ -120,6 +121,7 @@ public class TaskToolbox
private final AppenderatorsManager appenderatorsManager;
private final OverlordClient overlordClient;
private final CoordinatorClient coordinatorClient;
private final RouterClient routerClient;

// Used by only native parallel tasks
private final IntermediaryDataManager intermediaryDataManager;
Expand Down Expand Up @@ -165,6 +167,7 @@ public TaskToolbox(
AppenderatorsManager appenderatorsManager,
OverlordClient overlordClient,
CoordinatorClient coordinatorClient,
RouterClient routerClient,
ParallelIndexSupervisorTaskClientProvider supervisorTaskClientProvider,
ShuffleClient shuffleClient,
TaskLogPusher taskLogPusher,
Expand Down Expand Up @@ -207,6 +210,7 @@ public TaskToolbox(
this.appenderatorsManager = appenderatorsManager;
this.overlordClient = overlordClient;
this.coordinatorClient = coordinatorClient;
this.routerClient = routerClient;
this.supervisorTaskClientProvider = supervisorTaskClientProvider;
this.shuffleClient = shuffleClient;
this.taskLogPusher = taskLogPusher;
Expand Down Expand Up @@ -448,6 +452,11 @@ public CoordinatorClient getCoordinatorClient()
return coordinatorClient;
}

public RouterClient getRouterClient()
{
return routerClient;
}

public ParallelIndexSupervisorTaskClientProvider getSupervisorTaskClientProvider()
{
return supervisorTaskClientProvider;
Expand Down Expand Up @@ -538,6 +547,7 @@ public static class Builder
private AppenderatorsManager appenderatorsManager;
private OverlordClient overlordClient;
private CoordinatorClient coordinatorClient;
private RouterClient routerClient;
private IntermediaryDataManager intermediaryDataManager;
private ParallelIndexSupervisorTaskClientProvider supervisorTaskClientProvider;
private ShuffleClient shuffleClient;
Expand Down Expand Up @@ -584,6 +594,7 @@ public Builder(TaskToolbox other)
this.appenderatorsManager = other.appenderatorsManager;
this.overlordClient = other.overlordClient;
this.coordinatorClient = other.coordinatorClient;
this.routerClient = other.routerClient;
this.intermediaryDataManager = other.intermediaryDataManager;
this.supervisorTaskClientProvider = other.supervisorTaskClientProvider;
this.shuffleClient = other.shuffleClient;
Expand Down Expand Up @@ -793,6 +804,12 @@ public Builder coordinatorClient(final CoordinatorClient coordinatorClient)
return this;
}

public Builder routerClient(final RouterClient routerClient)
{
this.routerClient = routerClient;
return this;
}

public Builder intermediaryDataManager(final IntermediaryDataManager intermediaryDataManager)
{
this.intermediaryDataManager = intermediaryDataManager;
Expand Down Expand Up @@ -861,6 +878,7 @@ public TaskToolbox build()
appenderatorsManager,
overlordClient,
coordinatorClient,
routerClient,
supervisorTaskClientProvider,
shuffleClient,
taskLogPusher,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@
import org.apache.druid.query.QueryRunnerFactoryConglomerate;
import org.apache.druid.rpc.StandardRetryPolicy;
import org.apache.druid.rpc.indexing.OverlordClient;
import org.apache.druid.rpc.indexing.RouterClient;
import org.apache.druid.segment.IndexIO;
import org.apache.druid.segment.IndexMergerV9Factory;
import org.apache.druid.segment.handoff.SegmentHandoffNotifierFactory;
Expand Down Expand Up @@ -105,6 +106,7 @@ public class TaskToolboxFactory
private final AppenderatorsManager appenderatorsManager;
private final OverlordClient overlordClient;
private final CoordinatorClient coordinatorClient;
private final RouterClient routerClient;

// Used by only native parallel tasks
private final IntermediaryDataManager intermediaryDataManager;
Expand Down Expand Up @@ -149,6 +151,7 @@ public TaskToolboxFactory(
AppenderatorsManager appenderatorsManager,
OverlordClient overlordClient,
CoordinatorClient coordinatorClient,
RouterClient routerClient,
ParallelIndexSupervisorTaskClientProvider supervisorTaskClientProvider,
ShuffleClient shuffleClient,
TaskLogPusher taskLogPusher,
Expand Down Expand Up @@ -189,6 +192,7 @@ public TaskToolboxFactory(
this.appenderatorsManager = appenderatorsManager;
this.overlordClient = overlordClient;
this.coordinatorClient = coordinatorClient;
this.routerClient = routerClient;
this.supervisorTaskClientProvider = supervisorTaskClientProvider;
this.shuffleClient = shuffleClient;
this.taskLogPusher = taskLogPusher;
Expand Down Expand Up @@ -251,6 +255,7 @@ public TaskToolbox build(TaskConfig config, Task task)
// Calls will still eventually fail if problems persist.
.overlordClient(overlordClient.withRetryPolicy(StandardRetryPolicy.aboutAnHour()))
.coordinatorClient(coordinatorClient.withRetryPolicy(StandardRetryPolicy.aboutAnHour()))
.routerClient(routerClient)
.supervisorTaskClientProvider(supervisorTaskClientProvider)
.shuffleClient(shuffleClient)
.taskLogPusher(taskLogPusher)
Expand Down
Loading
Loading