mirror of https://github.com/apache/druid.git
Remove the unused Controller context reference from Worker (#16285)
This commit is contained in:
parent
a805c5612e
commit
6964297b53
|
@ -718,9 +718,7 @@ public class ControllerImpl implements Controller
|
|||
MSQControllerTask.isReplaceInputDataSourceTask(task)
|
||||
);
|
||||
|
||||
// propagate the controller's context and tags to the worker task
|
||||
taskContextOverridesBuilder.put(MultiStageQueryContext.CTX_OF_CONTROLLER, task.getContext());
|
||||
// specifically assign the 'tags' field for enhanced worker task metrics reporting
|
||||
// propagate the controller's tags to the worker task for enhanced metrics reporting
|
||||
Map<String, Object> tags = task.getContextValue(DruidMetrics.TAGS);
|
||||
if (tags != null) {
|
||||
taskContextOverridesBuilder.put(DruidMetrics.TAGS, tags);
|
||||
|
|
|
@ -143,13 +143,6 @@ public class MultiStageQueryContext
|
|||
|
||||
public static final String CTX_IS_REINDEX = "isReindex";
|
||||
|
||||
/**
|
||||
* Key for controller task's context passed to worker tasks.
|
||||
* Facilitates sharing the controller's execution environment
|
||||
* and configurations with its associated worker tasks.
|
||||
*/
|
||||
public static final String CTX_OF_CONTROLLER = "controllerCtx";
|
||||
|
||||
/**
|
||||
* Controls sort order within segments. Normally, this is the same as the overall order of the query (from the
|
||||
* CLUSTERED BY clause) but it can be overridden.
|
||||
|
|
Loading…
Reference in New Issue