[ML] Increase close job timeout and lower the max number (#37770)

This commit is contained in:
David Kyle 2019-01-24 09:18:48 +00:00 committed by GitHub
parent 36889e8a2f
commit e1226f69b7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 4 deletions

View File

@ -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 {

View File

@ -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());