Skip to content

Commit

Permalink
enable debug logging for testHistoryUUIDIsGenerated (+1 squashed commit)
Browse files Browse the repository at this point in the history
Squashed commits:
[1d4f268] enable debug logging for testHistoryUUIDIsGenerated
  • Loading branch information
bleskes committed Sep 26, 2017
1 parent c090eaa commit 8e134d6
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -100,15 +100,19 @@ private void createIndex(String name, Settings settings) throws IOException {
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"));
Expand Down

0 comments on commit 8e134d6

Please sign in to comment.