Skip to content

Commit 5df77a8

Browse files
committed
enable debug logging for testHistoryUUIDIsGenerated (+1 squashed commit)
Squashed commits: [1d4f268] enable debug logging for testHistoryUUIDIsGenerated
1 parent 52887b1 commit 5df77a8

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

qa/rolling-upgrade/src/test/java/org/elasticsearch/upgrades/RecoveryIT.java

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,15 +100,19 @@ private void createIndex(String name, Settings settings) throws IOException {
100100
new StringEntity("{ \"settings\": " + Strings.toString(settings) + " }", ContentType.APPLICATION_JSON)));
101101
}
102102

103-
104103
public void testHistoryUUIDIsGenerated() throws Exception {
105104
final String index = "index_history_uuid";
106105
if (clusterType == CLUSTER_TYPE.OLD) {
106+
assertOK(client().performRequest("PUT", "_cluster/settings", Collections.emptyMap(),
107+
new StringEntity("{ \"persistent\": " +
108+
"{ \"logger._root\": \"DEBUG\", \"logger.org.elasticsearch.cluster.service\": \"TRACE\" } " +
109+
"}", ContentType.APPLICATION_JSON)));
107110
Settings.Builder settings = Settings.builder()
108111
.put(IndexMetaData.INDEX_NUMBER_OF_SHARDS_SETTING.getKey(), 1)
109112
.put(IndexMetaData.INDEX_NUMBER_OF_REPLICAS_SETTING.getKey(), 1);
110113
createIndex(index, settings.build());
111114
ensureGreen();
115+
112116
} else if (clusterType == CLUSTER_TYPE.UPGRADED) {
113117
ensureGreen();
114118
Response response = client().performRequest("GET", index + "/_stats", Collections.singletonMap("level", "shards"));

0 commit comments

Comments
 (0)