Tests: remove possibly unnecessary rollup job logging (#34883)

It seems that this statement is a debug leftover since it currently
adds an error message `{"jobs":[]}` after each successful REST test.
This commit is contained in:
Igor Motov 2018-10-26 14:23:10 -04:00 committed by GitHub
parent a086c665a3
commit 02a342eb8c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 0 additions and 1 deletions

View File

@ -487,7 +487,6 @@ public abstract class ESRestTestCase extends ESTestCase {
try { try {
Response jobsResponse = adminClient().performRequest(request); Response jobsResponse = adminClient().performRequest(request);
String body = EntityUtils.toString(jobsResponse.getEntity()); String body = EntityUtils.toString(jobsResponse.getEntity());
logger.error(body);
// If the body contains any of the non-stopped states, at least one job is not finished yet // If the body contains any of the non-stopped states, at least one job is not finished yet
return Arrays.stream(new String[]{"started", "aborting", "stopping", "indexing"}).noneMatch(body::contains); return Arrays.stream(new String[]{"started", "aborting", "stopping", "indexing"}).noneMatch(body::contains);
} catch (IOException e) { } catch (IOException e) {