[ML] Increase close job timeout and lower the max number (#37770)
This commit is contained in:
parent
36889e8a2f
commit
e1226f69b7
|
@ -124,11 +124,11 @@ public class TooManyJobsIT extends BaseMlIntegTestCase {
|
|||
}
|
||||
|
||||
public void testSingleNode() throws Exception {
|
||||
verifyMaxNumberOfJobsLimit(1, randomIntBetween(1, 100));
|
||||
verifyMaxNumberOfJobsLimit(1, randomIntBetween(1, 20));
|
||||
}
|
||||
|
||||
public void testMultipleNodes() throws Exception {
|
||||
verifyMaxNumberOfJobsLimit(3, randomIntBetween(1, 100));
|
||||
verifyMaxNumberOfJobsLimit(3, randomIntBetween(1, 20));
|
||||
}
|
||||
|
||||
private void verifyMaxNumberOfJobsLimit(int numNodes, int maxNumberOfJobsPerNode) throws Exception {
|
||||
|
|
|
@ -318,7 +318,7 @@ public abstract class BaseMlIntegTestCase extends ESIntegTestCase {
|
|||
|
||||
try {
|
||||
CloseJobAction.Request closeRequest = new CloseJobAction.Request(MetaData.ALL);
|
||||
closeRequest.setCloseTimeout(TimeValue.timeValueSeconds(20L));
|
||||
closeRequest.setCloseTimeout(TimeValue.timeValueSeconds(30L));
|
||||
logger.info("Closing jobs using [{}]", MetaData.ALL);
|
||||
CloseJobAction.Response response = client.execute(CloseJobAction.INSTANCE, closeRequest)
|
||||
.get();
|
||||
|
@ -327,7 +327,7 @@ public abstract class BaseMlIntegTestCase extends ESIntegTestCase {
|
|||
try {
|
||||
CloseJobAction.Request closeRequest = new CloseJobAction.Request(MetaData.ALL);
|
||||
closeRequest.setForce(true);
|
||||
closeRequest.setCloseTimeout(TimeValue.timeValueSeconds(20L));
|
||||
closeRequest.setCloseTimeout(TimeValue.timeValueSeconds(30L));
|
||||
CloseJobAction.Response response =
|
||||
client.execute(CloseJobAction.INSTANCE, closeRequest).get();
|
||||
assertTrue(response.isClosed());
|
||||
|
|
Loading…
Reference in New Issue