enable debug logging for testHistoryUUIDIsGenerated (+1 squashed commit)

Squashed commits:
[1d4f268] enable debug logging for testHistoryUUIDIsGenerated
This commit is contained in:
Boaz Leskes 2017-09-26 14:26:33 +02:00
parent 52887b1437
commit 5df77a8c91
1 changed files with 5 additions and 1 deletions

View File

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