From e7c17fc9fb97384d05d20e6cb52c78e6ee315f9b Mon Sep 17 00:00:00 2001 From: Britta Weber Date: Fri, 13 May 2016 12:59:41 +0200 Subject: [PATCH] [TEST] increase logger level until we know what is going on We have an issue for it too: https://github.com/elastic/elasticsearch/issues/18121 --- .../snapshots/SharedClusterSnapshotRestoreIT.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/core/src/test/java/org/elasticsearch/snapshots/SharedClusterSnapshotRestoreIT.java b/core/src/test/java/org/elasticsearch/snapshots/SharedClusterSnapshotRestoreIT.java index 62d9c2c4120..5ed63b519a4 100644 --- a/core/src/test/java/org/elasticsearch/snapshots/SharedClusterSnapshotRestoreIT.java +++ b/core/src/test/java/org/elasticsearch/snapshots/SharedClusterSnapshotRestoreIT.java @@ -62,6 +62,7 @@ import org.elasticsearch.index.store.IndexStore; import org.elasticsearch.indices.InvalidIndexNameException; import org.elasticsearch.repositories.RepositoriesService; import org.elasticsearch.repositories.RepositoryException; +import org.elasticsearch.test.junit.annotations.TestLogging; import java.nio.channels.SeekableByteChannel; import java.nio.file.Files; @@ -1289,9 +1290,10 @@ public class SharedClusterSnapshotRestoreIT extends AbstractSnapshotIntegTestCas assertThat(getSnapshotsResponse.getSnapshots().size(), equalTo(0)); } + @TestLogging("_root:DEBUG") // this fails every now and then: https://github.com/elastic/elasticsearch/issues/18121 but without + // more logs we cannot find out why public void testReadonlyRepository() throws Exception { Client client = client(); - logger.info("--> creating repository"); Path repositoryLocation = randomRepoPath(); assertAcked(client.admin().cluster().preparePutRepository("test-repo")