From 5df77a8c914a7ee216c9a197174031648c40eba4 Mon Sep 17 00:00:00 2001 From: Boaz Leskes Date: Tue, 26 Sep 2017 14:26:33 +0200 Subject: [PATCH] enable debug logging for testHistoryUUIDIsGenerated (+1 squashed commit) Squashed commits: [1d4f268] enable debug logging for testHistoryUUIDIsGenerated --- .../test/java/org/elasticsearch/upgrades/RecoveryIT.java | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/qa/rolling-upgrade/src/test/java/org/elasticsearch/upgrades/RecoveryIT.java b/qa/rolling-upgrade/src/test/java/org/elasticsearch/upgrades/RecoveryIT.java index d33815e5682..69fec9dd6e0 100644 --- a/qa/rolling-upgrade/src/test/java/org/elasticsearch/upgrades/RecoveryIT.java +++ b/qa/rolling-upgrade/src/test/java/org/elasticsearch/upgrades/RecoveryIT.java @@ -100,15 +100,19 @@ public class RecoveryIT extends ESRestTestCase { new StringEntity("{ \"settings\": " + Strings.toString(settings) + " }", ContentType.APPLICATION_JSON))); } - public void testHistoryUUIDIsGenerated() throws Exception { final String index = "index_history_uuid"; if (clusterType == CLUSTER_TYPE.OLD) { + assertOK(client().performRequest("PUT", "_cluster/settings", Collections.emptyMap(), + new StringEntity("{ \"persistent\": " + + "{ \"logger._root\": \"DEBUG\", \"logger.org.elasticsearch.cluster.service\": \"TRACE\" } " + + "}", ContentType.APPLICATION_JSON))); Settings.Builder settings = Settings.builder() .put(IndexMetaData.INDEX_NUMBER_OF_SHARDS_SETTING.getKey(), 1) .put(IndexMetaData.INDEX_NUMBER_OF_REPLICAS_SETTING.getKey(), 1); createIndex(index, settings.build()); ensureGreen(); + } else if (clusterType == CLUSTER_TYPE.UPGRADED) { ensureGreen(); Response response = client().performRequest("GET", index + "/_stats", Collections.singletonMap("level", "shards"));