Skip to content
Merged
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
Original file line number Diff line number Diff line change
Expand Up @@ -718,9 +718,7 @@ private QueryDefinition initializeQueryDefAndState(final Closer closer)
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);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down