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 @@ -24,7 +24,6 @@
import com.google.inject.Inject;
import org.apache.druid.guice.annotations.Client;
import org.apache.druid.guice.http.DruidHttpClientConfig;
import org.apache.druid.guice.http.LifecycleUtils;
import org.apache.druid.https.SSLClientConfig;
import org.apache.druid.java.util.common.ISE;
import org.apache.druid.java.util.common.StringUtils;
Expand Down Expand Up @@ -391,7 +390,7 @@ private HttpClient makeCustomHttpClient(

HttpClient client = HttpClientInit.createClient(
builder.build(),
LifecycleUtils.asMmxLifecycle(lifecycle)
lifecycle
);

HttpClient adminClient = new CredentialedHttpClient(
Expand All @@ -418,7 +417,7 @@ private HttpClient makeCertlessClient()

HttpClient client = HttpClientInit.createClient(
builder.build(),
LifecycleUtils.asMmxLifecycle(lifecycle)
lifecycle
);

HttpClient adminClient = new CredentialedHttpClient(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ public HttpClient get()

HttpClient client = HttpClientInit.createClient(
builder.build(),
LifecycleUtils.asMmxLifecycle(getLifecycleProvider().get())
getLifecycleProvider().get()
);

if (isEscalated) {
Expand Down

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -440,7 +440,8 @@ public void stop()
log.warn(e, "Unable to stop Jetty server.");
}
}
}
},
Lifecycle.Stage.LAST
);

return server;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@
import com.google.inject.Key;
import com.google.inject.servlet.GuiceFilter;
import org.apache.druid.guice.annotations.Self;
import org.apache.druid.guice.http.LifecycleUtils;
import org.apache.druid.java.util.common.lifecycle.Lifecycle;
import org.apache.druid.java.util.http.client.HttpClient;
import org.apache.druid.java.util.http.client.HttpClientConfig;
Expand Down Expand Up @@ -119,7 +118,7 @@ public static class ClientHolder
try {
this.client = HttpClientInit.createClient(
new HttpClientConfig(maxClientConnections, SSLContext.getDefault(), Duration.ZERO),
LifecycleUtils.asMmxLifecycle(druidLifecycle)
druidLifecycle
);
}
catch (Exception e) {
Expand Down