Skip to content

Commit c37fa04

Browse files
bpinteaelasticsearchmachine
authored andcommitted
Increase client timeout on CCS tests (elastic#75346)
Increase the client timeout for CCS tests that are occasionally timing out.
1 parent ec4c7cf commit c37fa04

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

x-pack/plugin/eql/qa/common/src/main/java/org/elasticsearch/test/eql/RemoteClusterAwareEqlRestTestCase.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,8 @@
3030

3131
public abstract class RemoteClusterAwareEqlRestTestCase extends ESRestTestCase {
3232

33+
private static final long CLIENT_TIMEOUT = 40L; // upped from 10s to accomodate for max measured throughput decline
34+
3335
// client used for loading data on a remote cluster only.
3436
private static RestClient remoteClient;
3537

@@ -82,7 +84,7 @@ protected static RestClient clientBuilder(Settings settings, HttpHost[] hosts) t
8284
}
8385

8486
protected static TimeValue timeout() {
85-
return TimeValue.timeValueSeconds(10);
87+
return TimeValue.timeValueSeconds(CLIENT_TIMEOUT);
8688
}
8789

8890
// returned client is used to load the test data, either in the local cluster (for rest/javaRestTests) or a remote one (for

0 commit comments

Comments
 (0)