Skip to content

Commit eb49a1a

Browse files
committed
fix httpclient leaking
Signed-off-by: Lantao Jin <ltjin@amazon.com>
1 parent e3c0440 commit eb49a1a

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

integ-test/src/test/java/org/opensearch/sql/legacy/OpenSearchSQLRestTestCase.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -311,7 +311,9 @@ protected static void configureHttpsClient(
311311
* cluster.
312312
*/
313313
public void configureMultiClusters(String remote) throws IOException {
314-
initRemoteClient(remote);
314+
if (remoteClient == null) {
315+
initRemoteClient(remote);
316+
}
315317

316318
Request connectionRequest = new Request("PUT", "_cluster/settings");
317319
String connectionSetting =

0 commit comments

Comments
 (0)