Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
JNSimba committed Mar 7, 2024
1 parent 848f4fc commit 4337d8d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,10 @@ public CloseableHttpClient getHttpClient() {
.setSocketTimeout(9 * 60 * 1000)
.build();

public CloseableHttpClient getHttpClientForBatch() {
return httpClientBuilder.setDefaultRequestConfig(requestConfig).build();
}

private final HttpClientBuilder httpClientBuilderWithTimeout =
HttpClients.custom().setDefaultRequestConfig(requestConfig);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ public class DorisBatchStreamLoad implements Serializable {
private final AtomicBoolean started;
private volatile boolean loadThreadAlive = false;
private AtomicReference<Throwable> exception = new AtomicReference<>(null);
private CloseableHttpClient httpClient = new HttpUtil().getHttpClientWithTimeout();
private CloseableHttpClient httpClient = new HttpUtil().getHttpClientForBatch();
private BackendUtil backendUtil;

public DorisBatchStreamLoad(
Expand Down

0 comments on commit 4337d8d

Please sign in to comment.