Skip to content

Commit

Permalink
move query group thread context propagator out of ThreadContext
Browse files Browse the repository at this point in the history
Signed-off-by: Kaushal Kumar <ravi.kaushal97@gmail.com>
  • Loading branch information
kaushalmahi12 committed Jul 11, 2024
1 parent eea2a2c commit b0579cc
Showing 1 changed file with 1 addition and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,6 @@
import org.opensearch.http.HttpTransportSettings;
import org.opensearch.tasks.Task;
import org.opensearch.tasks.TaskThreadContextStatePropagator;
import org.opensearch.wlm.QueryGroupThreadContextStatePropagator;

import java.io.IOException;
import java.nio.charset.StandardCharsets;
Expand Down Expand Up @@ -129,9 +128,7 @@ public ThreadContext(Settings settings) {
this.threadLocal = ThreadLocal.withInitial(() -> DEFAULT_CONTEXT);
this.maxWarningHeaderCount = SETTING_HTTP_MAX_WARNING_HEADER_COUNT.get(settings);
this.maxWarningHeaderSize = SETTING_HTTP_MAX_WARNING_HEADER_SIZE.get(settings).getBytes();
this.propagators = new CopyOnWriteArrayList<>(
List.of(new TaskThreadContextStatePropagator(), new QueryGroupThreadContextStatePropagator())
);
this.propagators = new CopyOnWriteArrayList<>(List.of(new TaskThreadContextStatePropagator()));
}

public void registerThreadContextStatePropagator(final ThreadContextStatePropagator propagator) {
Expand Down

0 comments on commit b0579cc

Please sign in to comment.