Fix forbidden API errors and logger usage check (elastic/elasticsearch#533)

Original commit: elastic/x-pack-elasticsearch@e7bdaa8b0a
This commit is contained in:
David Kyle 2016-12-12 17:31:39 +00:00 committed by GitHub
parent 1d67c6ea1d
commit bca06f0ad7
2 changed files with 1 additions and 4 deletions

View File

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

View File

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