From b96695396ad44fc4d8a4351df6ca7297722dc4ac Mon Sep 17 00:00:00 2001 From: Ali Beyad Date: Thu, 14 Jul 2016 11:28:28 -0400 Subject: [PATCH] Adds debug logging to RepositoryUpgradabilityIT test to help figure out failures in recovery reset/retry. --- .../org/elasticsearch/bwcompat/RepositoryUpgradabilityIT.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/core/src/test/java/org/elasticsearch/bwcompat/RepositoryUpgradabilityIT.java b/core/src/test/java/org/elasticsearch/bwcompat/RepositoryUpgradabilityIT.java index e1873850703..c29d83b4454 100644 --- a/core/src/test/java/org/elasticsearch/bwcompat/RepositoryUpgradabilityIT.java +++ b/core/src/test/java/org/elasticsearch/bwcompat/RepositoryUpgradabilityIT.java @@ -26,6 +26,7 @@ import org.elasticsearch.snapshots.AbstractSnapshotIntegTestCase; import org.elasticsearch.snapshots.SnapshotId; import org.elasticsearch.snapshots.SnapshotInfo; import org.elasticsearch.test.ESIntegTestCase; +import org.elasticsearch.test.junit.annotations.TestLogging; import java.nio.file.DirectoryStream; import java.nio.file.Files; @@ -45,6 +46,8 @@ import static org.hamcrest.Matchers.greaterThanOrEqualTo; * as blob names and repository blob formats have changed between the snapshot versions. */ @ESIntegTestCase.ClusterScope(scope = ESIntegTestCase.Scope.TEST) +// this test sometimes fails in recovery when the recovery is reset, increasing the logging level to help debug +@TestLogging("indices.recovery:DEBUG") public class RepositoryUpgradabilityIT extends AbstractSnapshotIntegTestCase { /**