Fix forbidden API errors and logger usage check (elastic/elasticsearch#533)
Original commit: elastic/x-pack-elasticsearch@e7bdaa8b0a
This commit is contained in:
parent
1d67c6ea1d
commit
bca06f0ad7
|
@ -1044,7 +1044,7 @@ public class JobProvider {
|
||||||
SearchResponse searchResponse;
|
SearchResponse searchResponse;
|
||||||
try {
|
try {
|
||||||
String indexName = JobResultsPersister.getJobIndexName(jobId);
|
String indexName = JobResultsPersister.getJobIndexName(jobId);
|
||||||
LOGGER.trace("ES API CALL: search result type {} from index {} from {}, size {]",
|
LOGGER.trace("ES API CALL: search result type {} from index {} from {}, size {}",
|
||||||
ModelDebugOutput.RESULT_TYPE_VALUE, indexName, from, size);
|
ModelDebugOutput.RESULT_TYPE_VALUE, indexName, from, size);
|
||||||
|
|
||||||
searchResponse = client.prepareSearch(indexName)
|
searchResponse = client.prepareSearch(indexName)
|
||||||
|
|
|
@ -107,7 +107,6 @@ public class AutodetectResultProcessorIT extends ESSingleNodeTestCase {
|
||||||
try {
|
try {
|
||||||
writeResults(resultBuilder.build(), outputStream);
|
writeResults(resultBuilder.build(), outputStream);
|
||||||
} catch (IOException e) {
|
} catch (IOException e) {
|
||||||
e.printStackTrace();
|
|
||||||
}
|
}
|
||||||
}).start();
|
}).start();
|
||||||
|
|
||||||
|
@ -172,7 +171,6 @@ public class AutodetectResultProcessorIT extends ESSingleNodeTestCase {
|
||||||
try {
|
try {
|
||||||
writeResults(resultBuilder.build(), outputStream);
|
writeResults(resultBuilder.build(), outputStream);
|
||||||
} catch (IOException e) {
|
} catch (IOException e) {
|
||||||
e.printStackTrace();
|
|
||||||
}
|
}
|
||||||
}).start();
|
}).start();
|
||||||
|
|
||||||
|
@ -219,7 +217,6 @@ public class AutodetectResultProcessorIT extends ESSingleNodeTestCase {
|
||||||
try {
|
try {
|
||||||
writeResults(resultBuilder.build(), outputStream);
|
writeResults(resultBuilder.build(), outputStream);
|
||||||
} catch (IOException e) {
|
} catch (IOException e) {
|
||||||
e.printStackTrace();
|
|
||||||
}
|
}
|
||||||
}).start();
|
}).start();
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue