From bca06f0ad7d3b5eb15d28222c4f41a40eefec9f9 Mon Sep 17 00:00:00 2001 From: David Kyle Date: Mon, 12 Dec 2016 17:31:39 +0000 Subject: [PATCH] Fix forbidden API errors and logger usage check (elastic/elasticsearch#533) Original commit: elastic/x-pack-elasticsearch@e7bdaa8b0acca1976425026262248137abbe0f52 --- .../xpack/prelert/job/persistence/JobProvider.java | 2 +- .../xpack/prelert/integration/AutodetectResultProcessorIT.java | 3 --- 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/elasticsearch/src/main/java/org/elasticsearch/xpack/prelert/job/persistence/JobProvider.java b/elasticsearch/src/main/java/org/elasticsearch/xpack/prelert/job/persistence/JobProvider.java index 5372da03f44..90653a9858b 100644 --- a/elasticsearch/src/main/java/org/elasticsearch/xpack/prelert/job/persistence/JobProvider.java +++ b/elasticsearch/src/main/java/org/elasticsearch/xpack/prelert/job/persistence/JobProvider.java @@ -1044,7 +1044,7 @@ public class JobProvider { SearchResponse searchResponse; try { 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); searchResponse = client.prepareSearch(indexName) diff --git a/elasticsearch/src/test/java/org/elasticsearch/xpack/prelert/integration/AutodetectResultProcessorIT.java b/elasticsearch/src/test/java/org/elasticsearch/xpack/prelert/integration/AutodetectResultProcessorIT.java index 48b73c03a77..17e9f3b0f04 100644 --- a/elasticsearch/src/test/java/org/elasticsearch/xpack/prelert/integration/AutodetectResultProcessorIT.java +++ b/elasticsearch/src/test/java/org/elasticsearch/xpack/prelert/integration/AutodetectResultProcessorIT.java @@ -107,7 +107,6 @@ public class AutodetectResultProcessorIT extends ESSingleNodeTestCase { try { writeResults(resultBuilder.build(), outputStream); } catch (IOException e) { - e.printStackTrace(); } }).start(); @@ -172,7 +171,6 @@ public class AutodetectResultProcessorIT extends ESSingleNodeTestCase { try { writeResults(resultBuilder.build(), outputStream); } catch (IOException e) { - e.printStackTrace(); } }).start(); @@ -219,7 +217,6 @@ public class AutodetectResultProcessorIT extends ESSingleNodeTestCase { try { writeResults(resultBuilder.build(), outputStream); } catch (IOException e) { - e.printStackTrace(); } }).start();