diff --git a/src/test/java/org/elasticsearch/bwcompat/BasicBackwardsCompatibilityTest.java b/src/test/java/org/elasticsearch/bwcompat/BasicBackwardsCompatibilityTest.java index a31032491c3..3e333f106c8 100644 --- a/src/test/java/org/elasticsearch/bwcompat/BasicBackwardsCompatibilityTest.java +++ b/src/test/java/org/elasticsearch/bwcompat/BasicBackwardsCompatibilityTest.java @@ -151,7 +151,6 @@ public class BasicBackwardsCompatibilityTest extends ElasticsearchBackwardsCompa } @Test - @TestLogging("action.search.type:TRACE,action.support.replication:TRACE,cluster.service:TRACE,indices.recovery:TRACE,index.shard.service:TRACE") public void testRecoverFromPreviousVersion() throws ExecutionException, InterruptedException { if (backwardsCluster().numNewDataNodes() == 0) { backwardsCluster().startNewNode(); diff --git a/src/test/java/org/elasticsearch/cluster/MinimumMasterNodesTests.java b/src/test/java/org/elasticsearch/cluster/MinimumMasterNodesTests.java index e0a9c99626b..3fb2fa7e806 100644 --- a/src/test/java/org/elasticsearch/cluster/MinimumMasterNodesTests.java +++ b/src/test/java/org/elasticsearch/cluster/MinimumMasterNodesTests.java @@ -169,7 +169,6 @@ public class MinimumMasterNodesTests extends ElasticsearchIntegrationTest { } @Test - @TestLogging("cluster.service:TRACE,discovery:TRACE,indices.cluster:TRACE") public void multipleNodesShutdownNonMasterNodes() throws Exception { Settings settings = settingsBuilder() .put("discovery.type", "zen") diff --git a/src/test/java/org/elasticsearch/cluster/NoMasterNodeTests.java b/src/test/java/org/elasticsearch/cluster/NoMasterNodeTests.java index 95dbbf652ab..8bb300b6ec2 100644 --- a/src/test/java/org/elasticsearch/cluster/NoMasterNodeTests.java +++ b/src/test/java/org/elasticsearch/cluster/NoMasterNodeTests.java @@ -55,7 +55,6 @@ import static org.hamcrest.Matchers.*; public class NoMasterNodeTests extends ElasticsearchIntegrationTest { @Test - @TestLogging("action:TRACE,cluster.service:TRACE") public void testNoMasterActions() throws Exception { // note, sometimes, we want to check with the fact that an index gets created, sometimes not... boolean autoCreateIndex = randomBoolean(); diff --git a/src/test/java/org/elasticsearch/cluster/routing/allocation/SameShardRoutingTests.java b/src/test/java/org/elasticsearch/cluster/routing/allocation/SameShardRoutingTests.java index 85e32292bda..4f393ea2dac 100644 --- a/src/test/java/org/elasticsearch/cluster/routing/allocation/SameShardRoutingTests.java +++ b/src/test/java/org/elasticsearch/cluster/routing/allocation/SameShardRoutingTests.java @@ -49,7 +49,6 @@ public class SameShardRoutingTests extends ElasticsearchAllocationTestCase { private final ESLogger logger = Loggers.getLogger(SameShardRoutingTests.class); @Test - @TestLogging("cluster.routing.allocation:TRACE") public void sameHost() { AllocationService strategy = createAllocationService(settingsBuilder().put(SameShardAllocationDecider.SAME_HOST_SETTING, true).build()); diff --git a/src/test/java/org/elasticsearch/cluster/routing/allocation/decider/DiskThresholdDeciderTests.java b/src/test/java/org/elasticsearch/cluster/routing/allocation/decider/DiskThresholdDeciderTests.java index 086667acd85..c298067b250 100644 --- a/src/test/java/org/elasticsearch/cluster/routing/allocation/decider/DiskThresholdDeciderTests.java +++ b/src/test/java/org/elasticsearch/cluster/routing/allocation/decider/DiskThresholdDeciderTests.java @@ -259,7 +259,6 @@ public class DiskThresholdDeciderTests extends ElasticsearchAllocationTestCase { } @Test - @TestLogging("cluster.routing.allocation.decider:TRACE") public void diskThresholdWithAbsoluteSizesTest() { Settings diskSettings = settingsBuilder() .put(DiskThresholdDecider.CLUSTER_ROUTING_ALLOCATION_DISK_THRESHOLD_ENABLED, true) diff --git a/src/test/java/org/elasticsearch/discovery/DiscoveryWithServiceDisruptions.java b/src/test/java/org/elasticsearch/discovery/DiscoveryWithServiceDisruptions.java index c36e5c92af9..9f887aa8c43 100644 --- a/src/test/java/org/elasticsearch/discovery/DiscoveryWithServiceDisruptions.java +++ b/src/test/java/org/elasticsearch/discovery/DiscoveryWithServiceDisruptions.java @@ -74,7 +74,6 @@ import static org.hamcrest.Matchers.*; /** */ @LuceneTestCase.Slow -@TestLogging("discovery.zen:TRACE") @ClusterScope(scope = Scope.TEST, numDataNodes = 0, transportClientRatio = 0) public class DiscoveryWithServiceDisruptions extends ElasticsearchIntegrationTest { @@ -241,7 +240,6 @@ public class DiscoveryWithServiceDisruptions extends ElasticsearchIntegrationTes /** Verify that nodes fault detection works after master (re) election */ @Test - @TestLogging(value = "cluster.service:TRACE,indices.recovery:TRACE") public void testNodesFDAfterMasterReelection() throws Exception { startCluster(3); @@ -269,7 +267,6 @@ public class DiscoveryWithServiceDisruptions extends ElasticsearchIntegrationTes * Verify that the proper block is applied when nodes loose their master */ @Test - @TestLogging(value = "cluster.service:TRACE,indices.recovery:TRACE") public void testVerifyApiBlocksDuringPartition() throws Exception { startCluster(3); @@ -350,7 +347,6 @@ public class DiscoveryWithServiceDisruptions extends ElasticsearchIntegrationTes * and verifies that all node agree on the new cluster state */ @Test - @TestLogging("discovery.zen:TRACE,action:TRACE,cluster.service:TRACE,indices.recovery:TRACE,indices.cluster:TRACE") public void testIsolateMasterAndVerifyClusterStateConsensus() throws Exception { final List nodes = startCluster(3); @@ -554,7 +550,6 @@ public class DiscoveryWithServiceDisruptions extends ElasticsearchIntegrationTes * Test that cluster recovers from a long GC on master that causes other nodes to elect a new one */ @Test - @TestLogging("discovery.zen:TRACE,action:TRACE,cluster.service:TRACE,indices.recovery:TRACE,indices.cluster:TRACE") public void testMasterNodeGCs() throws Exception { // TODO: on mac OS multicast threads are shared between nodes and we therefore we can't simulate GC and stop pinging for just one node // find a way to block thread creation in the generic thread pool to avoid this. @@ -607,7 +602,6 @@ public class DiscoveryWithServiceDisruptions extends ElasticsearchIntegrationTes * @throws Exception */ @Test - @TestLogging("discovery.zen:TRACE,action:TRACE,cluster.service:TRACE,indices.recovery:TRACE,indices.cluster:TRACE") public void testRejoinDocumentExistsInAllShardCopies() throws Exception { List nodes = startCluster(3); @@ -663,7 +657,6 @@ public class DiscoveryWithServiceDisruptions extends ElasticsearchIntegrationTes * The rejoining node should take this master node and connect. */ @Test - @TestLogging("discovery.zen:TRACE,action:TRACE") public void unicastSinglePingResponseContainsMaster() throws Exception { List nodes = startUnicastCluster(4, new int[]{0}, -1); // Figure out what is the elected master node @@ -700,7 +693,6 @@ public class DiscoveryWithServiceDisruptions extends ElasticsearchIntegrationTes } @Test - @TestLogging("discovery.zen:TRACE,action:TRACE") public void isolatedUnicastNodes() throws Exception { List nodes = startUnicastCluster(3, new int[]{0}, -1); // Figure out what is the elected master node @@ -738,7 +730,6 @@ public class DiscoveryWithServiceDisruptions extends ElasticsearchIntegrationTes /** Test cluster join with issues in cluster state publishing * */ @Test - @TestLogging("discovery.zen:TRACE,action:TRACE") public void testClusterJoinDespiteOfPublishingIssues() throws Exception { List nodes = startCluster(2, 1); @@ -785,7 +776,6 @@ public class DiscoveryWithServiceDisruptions extends ElasticsearchIntegrationTes @Test - @TestLogging("discovery.zen:TRACE,action:TRACE") public void testClusterFormingWithASlowNode() throws Exception { configureCluster(3, 2); diff --git a/src/test/java/org/elasticsearch/gateway/local/LocalGatewayIndexStateTests.java b/src/test/java/org/elasticsearch/gateway/local/LocalGatewayIndexStateTests.java index 0857ee19716..06a30942527 100644 --- a/src/test/java/org/elasticsearch/gateway/local/LocalGatewayIndexStateTests.java +++ b/src/test/java/org/elasticsearch/gateway/local/LocalGatewayIndexStateTests.java @@ -54,7 +54,6 @@ import static org.hamcrest.Matchers.nullValue; */ @ClusterScope(scope = Scope.TEST, numDataNodes = 0) @Slow -@TestLogging("action.search:TRACE,index.shard.service:TRACE") public class LocalGatewayIndexStateTests extends ElasticsearchIntegrationTest { private final ESLogger logger = Loggers.getLogger(LocalGatewayIndexStateTests.class); diff --git a/src/test/java/org/elasticsearch/gateway/local/RecoveryBackwardsCompatibilityTests.java b/src/test/java/org/elasticsearch/gateway/local/RecoveryBackwardsCompatibilityTests.java index e88e51fd3c8..6ff95aaef44 100644 --- a/src/test/java/org/elasticsearch/gateway/local/RecoveryBackwardsCompatibilityTests.java +++ b/src/test/java/org/elasticsearch/gateway/local/RecoveryBackwardsCompatibilityTests.java @@ -60,7 +60,6 @@ public class RecoveryBackwardsCompatibilityTests extends ElasticsearchBackwardsC @Test @LuceneTestCase.Slow - @TestLogging("discovery.zen:TRACE") public void testReusePeerRecovery() throws Exception { assertAcked(prepareCreate("test").setSettings(ImmutableSettings.builder().put(indexSettings()) .put(IndexMetaData.SETTING_NUMBER_OF_REPLICAS, 0) diff --git a/src/test/java/org/elasticsearch/gateway/local/SimpleRecoveryLocalGatewayTests.java b/src/test/java/org/elasticsearch/gateway/local/SimpleRecoveryLocalGatewayTests.java index 8f688306a78..d584b8643ce 100644 --- a/src/test/java/org/elasticsearch/gateway/local/SimpleRecoveryLocalGatewayTests.java +++ b/src/test/java/org/elasticsearch/gateway/local/SimpleRecoveryLocalGatewayTests.java @@ -54,7 +54,6 @@ import static org.hamcrest.Matchers.*; */ @ClusterScope(numDataNodes = 0, scope = Scope.TEST) @Slow -@TestLogging("index.shard.service:TRACE,index.gateway.local:TRACE") public class SimpleRecoveryLocalGatewayTests extends ElasticsearchIntegrationTest { private ImmutableSettings.Builder settingsBuilder() { diff --git a/src/test/java/org/elasticsearch/http/netty/NettyHttpServerPipeliningTest.java b/src/test/java/org/elasticsearch/http/netty/NettyHttpServerPipeliningTest.java index 921f964f630..31dc47a33ad 100644 --- a/src/test/java/org/elasticsearch/http/netty/NettyHttpServerPipeliningTest.java +++ b/src/test/java/org/elasticsearch/http/netty/NettyHttpServerPipeliningTest.java @@ -89,7 +89,6 @@ public class NettyHttpServerPipeliningTest extends ElasticsearchTestCase { } @Test - @TestLogging("_root:DEBUG") public void testThatHttpPipeliningWorksWhenEnabled() throws Exception { Settings settings = settingsBuilder().put("http.pipelining", true).build(); httpServerTransport = new CustomNettyHttpServerTransport(settings); @@ -105,7 +104,6 @@ public class NettyHttpServerPipeliningTest extends ElasticsearchTestCase { } @Test - @TestLogging("_root:TRACE") public void testThatHttpPipeliningCanBeDisabled() throws Exception { Settings settings = settingsBuilder().put("http.pipelining", false).build(); httpServerTransport = new CustomNettyHttpServerTransport(settings); diff --git a/src/test/java/org/elasticsearch/index/TransportIndexFailuresTest.java b/src/test/java/org/elasticsearch/index/TransportIndexFailuresTest.java index c7c20b790dd..e0fcd335b62 100644 --- a/src/test/java/org/elasticsearch/index/TransportIndexFailuresTest.java +++ b/src/test/java/org/elasticsearch/index/TransportIndexFailuresTest.java @@ -50,7 +50,6 @@ import static org.hamcrest.Matchers.equalTo; * Test failure when index replication actions fail mid-flight */ @ElasticsearchIntegrationTest.ClusterScope(scope = ElasticsearchIntegrationTest.Scope.TEST, numDataNodes = 0, transportClientRatio = 0) -@TestLogging("discovery.zen:TRACE,action.index:TRACE,indices.recovery:TRACE") public class TransportIndexFailuresTest extends ElasticsearchIntegrationTest { private static final Settings nodeSettings = ImmutableSettings.settingsBuilder() diff --git a/src/test/java/org/elasticsearch/indices/memory/breaker/CircuitBreakerServiceTests.java b/src/test/java/org/elasticsearch/indices/memory/breaker/CircuitBreakerServiceTests.java index 68232618dc6..d734e7379a4 100644 --- a/src/test/java/org/elasticsearch/indices/memory/breaker/CircuitBreakerServiceTests.java +++ b/src/test/java/org/elasticsearch/indices/memory/breaker/CircuitBreakerServiceTests.java @@ -104,7 +104,6 @@ public class CircuitBreakerServiceTests extends ElasticsearchIntegrationTest { } @Test - @TestLogging("indices.breaker:TRACE,index.fielddata:TRACE,common.breaker:TRACE") public void testMemoryBreaker() throws Exception { if (noopBreakerUsed()) { logger.info("--> noop breakers used, skipping test"); diff --git a/src/test/java/org/elasticsearch/indices/store/IndicesStoreIntegrationTests.java b/src/test/java/org/elasticsearch/indices/store/IndicesStoreIntegrationTests.java index d3b54c4eda4..72b7980396c 100644 --- a/src/test/java/org/elasticsearch/indices/store/IndicesStoreIntegrationTests.java +++ b/src/test/java/org/elasticsearch/indices/store/IndicesStoreIntegrationTests.java @@ -55,7 +55,6 @@ public class IndicesStoreIntegrationTests extends ElasticsearchIntegrationTest { private static final Settings SETTINGS = settingsBuilder().put("gateway.type", "local").build(); @Test - @TestLogging("indices.store:TRACE,discovery.zen:TRACE,action:TRACE,cluster.service:TRACE,indices.recovery:TRACE,indices.cluster:TRACE") public void shardsCleanup() throws Exception { final String node_1 = internalCluster().startNode(SETTINGS); final String node_2 = internalCluster().startNode(SETTINGS); @@ -116,7 +115,6 @@ public class IndicesStoreIntegrationTests extends ElasticsearchIntegrationTest { } @Test - @TestLogging("indices.store:TRACE") public void testShardActiveElseWhere() throws Exception { String node_1 = internalCluster().startNode(SETTINGS); String node_2 = internalCluster().startNode(SETTINGS); diff --git a/src/test/java/org/elasticsearch/percolator/PercolatorTests.java b/src/test/java/org/elasticsearch/percolator/PercolatorTests.java index eb73f1072ae..cb6f69b4199 100644 --- a/src/test/java/org/elasticsearch/percolator/PercolatorTests.java +++ b/src/test/java/org/elasticsearch/percolator/PercolatorTests.java @@ -1577,7 +1577,6 @@ public class PercolatorTests extends ElasticsearchIntegrationTest { } @Test - @TestLogging("action.admin.indices.mapping.delete:TRACE") public void testDeletePercolatorType() throws Exception { assertAcked(client().admin().indices().prepareCreate("test1")); assertAcked(client().admin().indices().prepareCreate("test2")); diff --git a/src/test/java/org/elasticsearch/percolator/RecoveryPercolatorTests.java b/src/test/java/org/elasticsearch/percolator/RecoveryPercolatorTests.java index e97e9ac8110..fe01892ddf5 100644 --- a/src/test/java/org/elasticsearch/percolator/RecoveryPercolatorTests.java +++ b/src/test/java/org/elasticsearch/percolator/RecoveryPercolatorTests.java @@ -183,7 +183,6 @@ public class RecoveryPercolatorTests extends ElasticsearchIntegrationTest { @Test @Slow - @TestLogging("index.percolator:TRACE,percolator:TRACE") public void testLoadingPercolateQueriesDuringCloseAndOpen() throws Exception { internalCluster().startNode(); internalCluster().startNode(); diff --git a/src/test/java/org/elasticsearch/recovery/FullRollingRestartTests.java b/src/test/java/org/elasticsearch/recovery/FullRollingRestartTests.java index ef21a70667f..891d7521cbc 100644 --- a/src/test/java/org/elasticsearch/recovery/FullRollingRestartTests.java +++ b/src/test/java/org/elasticsearch/recovery/FullRollingRestartTests.java @@ -54,7 +54,6 @@ public class FullRollingRestartTests extends ElasticsearchIntegrationTest { @Test @Slow - @TestLogging("indices.cluster:TRACE,cluster.service:TRACE,action.count:TRACE,indices.recovery:TRACE") public void testFullRollingRestart() throws Exception { internalCluster().startNode(); createIndex("test"); diff --git a/src/test/java/org/elasticsearch/recovery/RecoveryWhileUnderLoadTests.java b/src/test/java/org/elasticsearch/recovery/RecoveryWhileUnderLoadTests.java index 30143a4d26f..958506341d9 100644 --- a/src/test/java/org/elasticsearch/recovery/RecoveryWhileUnderLoadTests.java +++ b/src/test/java/org/elasticsearch/recovery/RecoveryWhileUnderLoadTests.java @@ -51,7 +51,6 @@ public class RecoveryWhileUnderLoadTests extends ElasticsearchIntegrationTest { private final ESLogger logger = Loggers.getLogger(RecoveryWhileUnderLoadTests.class); @Test - @TestLogging("action.search.type:TRACE,action.admin.indices.refresh:TRACE") @Slow public void recoverWhileUnderLoadAllocateBackupsTest() throws Exception { logger.info("--> creating test index ..."); @@ -107,7 +106,6 @@ public class RecoveryWhileUnderLoadTests extends ElasticsearchIntegrationTest { } @Test - @TestLogging("action.search.type:TRACE,action.admin.indices.refresh:TRACE") @Slow public void recoverWhileUnderLoadAllocateBackupsRelocatePrimariesTest() throws Exception { logger.info("--> creating test index ..."); diff --git a/src/test/java/org/elasticsearch/recovery/RelocationTests.java b/src/test/java/org/elasticsearch/recovery/RelocationTests.java index 2f63b4624ea..bdbddc202a9 100644 --- a/src/test/java/org/elasticsearch/recovery/RelocationTests.java +++ b/src/test/java/org/elasticsearch/recovery/RelocationTests.java @@ -61,7 +61,6 @@ import org.elasticsearch.search.SearchHits; import org.elasticsearch.test.BackgroundIndexer; import org.elasticsearch.test.ElasticsearchIntegrationTest; import org.elasticsearch.test.ElasticsearchIntegrationTest.ClusterScope; -import org.elasticsearch.test.junit.annotations.TestLogging; import org.elasticsearch.test.transport.MockTransportService; import org.elasticsearch.transport.*; import org.junit.Test; @@ -88,7 +87,6 @@ import static org.hamcrest.Matchers.*; /** */ @ClusterScope(scope = Scope.TEST, numDataNodes = 0) -@TestLogging("indices.recovery:TRACE,index.shard.service:TRACE") public class RelocationTests extends ElasticsearchIntegrationTest { private final TimeValue ACCEPTABLE_RELOCATION_TIME = new TimeValue(5, TimeUnit.MINUTES); @@ -445,7 +443,6 @@ public class RelocationTests extends ElasticsearchIntegrationTest { @Test @Slow - @TestLogging("indices.recovery:TRACE") public void testCancellationCleansTempFiles() throws Exception { final String indexName = "test"; diff --git a/src/test/java/org/elasticsearch/search/aggregations/bucket/MinDocCountTests.java b/src/test/java/org/elasticsearch/search/aggregations/bucket/MinDocCountTests.java index 8dc40a25279..7aebea3e263 100644 --- a/src/test/java/org/elasticsearch/search/aggregations/bucket/MinDocCountTests.java +++ b/src/test/java/org/elasticsearch/search/aggregations/bucket/MinDocCountTests.java @@ -48,7 +48,6 @@ import static org.elasticsearch.test.hamcrest.ElasticsearchAssertions.assertAllS @ElasticsearchIntegrationTest.SuiteScopeTest -@TestLogging("action.admin.indices.refresh:TRACE,action.search.type:TRACE,cluster.service:TRACE") public class MinDocCountTests extends AbstractTermsTests { private static final QueryBuilder QUERY = QueryBuilders.termQuery("match", true); diff --git a/src/test/java/org/elasticsearch/search/aggregations/metrics/AvgTests.java b/src/test/java/org/elasticsearch/search/aggregations/metrics/AvgTests.java index afed870a7ad..420cdcba198 100644 --- a/src/test/java/org/elasticsearch/search/aggregations/metrics/AvgTests.java +++ b/src/test/java/org/elasticsearch/search/aggregations/metrics/AvgTests.java @@ -280,7 +280,6 @@ public class AvgTests extends AbstractNumericTests { } @Test - @TestLogging("search:TRACE") public void testScript_MultiValued_WithParams() throws Exception { SearchResponse searchResponse = client().prepareSearch("idx") .setQuery(matchAllQuery()) diff --git a/src/test/java/org/elasticsearch/search/aggregations/metrics/GeoBoundsTests.java b/src/test/java/org/elasticsearch/search/aggregations/metrics/GeoBoundsTests.java index 596a70e2526..794a4ad2731 100644 --- a/src/test/java/org/elasticsearch/search/aggregations/metrics/GeoBoundsTests.java +++ b/src/test/java/org/elasticsearch/search/aggregations/metrics/GeoBoundsTests.java @@ -58,7 +58,6 @@ import static org.hamcrest.Matchers.sameInstance; * */ @ElasticsearchIntegrationTest.SuiteScopeTest -@TestLogging("indices.recovery:TRACE,action.search.type:TRACE") public class GeoBoundsTests extends ElasticsearchIntegrationTest { private static final String SINGLE_VALUED_FIELD_NAME = "geo_value"; diff --git a/src/test/java/org/elasticsearch/search/aggregations/metrics/StatsTests.java b/src/test/java/org/elasticsearch/search/aggregations/metrics/StatsTests.java index add18473caa..908739618a0 100644 --- a/src/test/java/org/elasticsearch/search/aggregations/metrics/StatsTests.java +++ b/src/test/java/org/elasticsearch/search/aggregations/metrics/StatsTests.java @@ -315,7 +315,6 @@ public class StatsTests extends AbstractNumericTests { } @Test - @TestLogging("search:TRACE") public void testScript_ExplicitSingleValued_WithParams() throws Exception { SearchResponse searchResponse = client().prepareSearch("idx") .setQuery(matchAllQuery()) diff --git a/src/test/java/org/elasticsearch/search/basic/SearchWithRandomExceptionsTests.java b/src/test/java/org/elasticsearch/search/basic/SearchWithRandomExceptionsTests.java index 80f5ac2b651..526ba610662 100644 --- a/src/test/java/org/elasticsearch/search/basic/SearchWithRandomExceptionsTests.java +++ b/src/test/java/org/elasticsearch/search/basic/SearchWithRandomExceptionsTests.java @@ -196,7 +196,6 @@ public class SearchWithRandomExceptionsTests extends ElasticsearchIntegrationTes } @Test - @TestLogging("action.admin.indices.refresh:TRACE,action.search.type:TRACE,cluster.service:TRACE") public void testRandomExceptions() throws IOException, InterruptedException, ExecutionException { String mapping = XContentFactory.jsonBuilder(). startObject(). diff --git a/src/test/java/org/elasticsearch/search/child/ParentFieldLoadingTest.java b/src/test/java/org/elasticsearch/search/child/ParentFieldLoadingTest.java index 7e8ab594b9b..79c60587836 100644 --- a/src/test/java/org/elasticsearch/search/child/ParentFieldLoadingTest.java +++ b/src/test/java/org/elasticsearch/search/child/ParentFieldLoadingTest.java @@ -59,7 +59,6 @@ public class ParentFieldLoadingTest extends ElasticsearchIntegrationTest { .build(); @Test - @TestLogging("index.warmer:TRACE") public void testEagerParentFieldLoading() throws Exception { logger.info("testing lazy loading..."); assertAcked(prepareCreate("test") @@ -126,7 +125,6 @@ public class ParentFieldLoadingTest extends ElasticsearchIntegrationTest { } @Test - @TestLogging("index.warmer:TRACE") public void testChangingEagerParentFieldLoadingAtRuntime() throws Exception { assertAcked(prepareCreate("test") .setSettings(indexSettings) diff --git a/src/test/java/org/elasticsearch/search/functionscore/FunctionScoreBackwardCompatibilityTests.java b/src/test/java/org/elasticsearch/search/functionscore/FunctionScoreBackwardCompatibilityTests.java index 19e92172c6f..26618260d6a 100644 --- a/src/test/java/org/elasticsearch/search/functionscore/FunctionScoreBackwardCompatibilityTests.java +++ b/src/test/java/org/elasticsearch/search/functionscore/FunctionScoreBackwardCompatibilityTests.java @@ -22,7 +22,6 @@ import org.elasticsearch.action.index.IndexRequestBuilder; import org.elasticsearch.action.search.SearchResponse; import org.elasticsearch.cluster.routing.allocation.decider.EnableAllocationDecider; import org.elasticsearch.common.geo.GeoPoint; -import org.elasticsearch.common.lucene.search.function.FieldValueFactorFunction; import org.elasticsearch.common.settings.ImmutableSettings; import org.elasticsearch.test.ElasticsearchBackwardsCompatIntegrationTest; import org.junit.Test; diff --git a/src/test/java/org/elasticsearch/search/scroll/SearchScrollWithFailingNodesTests.java b/src/test/java/org/elasticsearch/search/scroll/SearchScrollWithFailingNodesTests.java index f59a3ef1a46..e2a907cb17b 100644 --- a/src/test/java/org/elasticsearch/search/scroll/SearchScrollWithFailingNodesTests.java +++ b/src/test/java/org/elasticsearch/search/scroll/SearchScrollWithFailingNodesTests.java @@ -19,14 +19,12 @@ package org.elasticsearch.search.scroll; -import com.google.common.base.Predicate; import org.elasticsearch.action.index.IndexRequestBuilder; import org.elasticsearch.action.search.SearchResponse; import org.elasticsearch.cluster.routing.allocation.decider.ShardsLimitAllocationDecider; import org.elasticsearch.common.settings.ImmutableSettings; import org.elasticsearch.common.unit.TimeValue; import org.elasticsearch.test.ElasticsearchIntegrationTest; -import org.elasticsearch.test.junit.annotations.TestLogging; import org.junit.Test; import java.util.ArrayList; @@ -54,7 +52,6 @@ public class SearchScrollWithFailingNodesTests extends ElasticsearchIntegrationT } @Test - @TestLogging("action.search:TRACE") public void testScanScrollWithShardExceptions() throws Exception { internalCluster().startNode(); internalCluster().startNode(); diff --git a/src/test/java/org/elasticsearch/snapshots/DedicatedClusterSnapshotRestoreTests.java b/src/test/java/org/elasticsearch/snapshots/DedicatedClusterSnapshotRestoreTests.java index f7aca58e6a9..2949f109d6f 100644 --- a/src/test/java/org/elasticsearch/snapshots/DedicatedClusterSnapshotRestoreTests.java +++ b/src/test/java/org/elasticsearch/snapshots/DedicatedClusterSnapshotRestoreTests.java @@ -51,11 +51,9 @@ import org.elasticsearch.common.xcontent.ToXContent; import org.elasticsearch.common.xcontent.XContentBuilder; import org.elasticsearch.common.xcontent.XContentParser; import org.elasticsearch.index.store.support.AbstractIndexStore; -import org.elasticsearch.node.internal.InternalNode; import org.elasticsearch.repositories.RepositoryMissingException; import org.elasticsearch.snapshots.mockstore.MockRepositoryModule; import org.elasticsearch.test.InternalTestCluster; -import org.elasticsearch.test.junit.annotations.TestLogging; import org.elasticsearch.threadpool.ThreadPool; import org.junit.Ignore; import org.junit.Test; @@ -353,7 +351,6 @@ public class DedicatedClusterSnapshotRestoreTests extends AbstractSnapshotTests } @Test - @TestLogging("snapshots:TRACE") public void restoreIndexWithMissingShards() throws Exception { logger.info("--> start 2 nodes"); internalCluster().startNode(settingsBuilder().put("gateway.type", "local")); @@ -491,7 +488,6 @@ public class DedicatedClusterSnapshotRestoreTests extends AbstractSnapshotTests } @Test - @TestLogging("indices.recovery:TRACE,index.gateway:TRACE,gateway:TRACE") public void restoreIndexWithShardsMissingInLocalGateway() throws Exception { logger.info("--> start 2 nodes"); internalCluster().startNode(settingsBuilder().put("gateway.type", "local")); @@ -548,7 +544,6 @@ public class DedicatedClusterSnapshotRestoreTests extends AbstractSnapshotTests } @Test - @TestLogging("snapshots:TRACE,repositories:TRACE") @Ignore public void chaosSnapshotTest() throws Exception { final List indices = new CopyOnWriteArrayList<>(); diff --git a/src/test/java/org/elasticsearch/snapshots/SharedClusterSnapshotRestoreTests.java b/src/test/java/org/elasticsearch/snapshots/SharedClusterSnapshotRestoreTests.java index 99d51162933..3bed9527692 100644 --- a/src/test/java/org/elasticsearch/snapshots/SharedClusterSnapshotRestoreTests.java +++ b/src/test/java/org/elasticsearch/snapshots/SharedClusterSnapshotRestoreTests.java @@ -27,7 +27,6 @@ import org.apache.lucene.util.LuceneTestCase.Slow; import org.elasticsearch.ExceptionsHelper; import org.elasticsearch.action.ListenableActionFuture; import org.elasticsearch.action.admin.cluster.repositories.put.PutRepositoryResponse; -import org.elasticsearch.action.admin.cluster.repositories.verify.VerifyRepositoryResponse; import org.elasticsearch.action.admin.cluster.snapshots.create.CreateSnapshotResponse; import org.elasticsearch.action.admin.cluster.snapshots.delete.DeleteSnapshotResponse; import org.elasticsearch.action.admin.cluster.snapshots.get.GetSnapshotsResponse; @@ -52,7 +51,6 @@ import org.elasticsearch.index.store.support.AbstractIndexStore; import org.elasticsearch.indices.InvalidIndexNameException; import org.elasticsearch.repositories.RepositoriesService; import org.elasticsearch.snapshots.mockstore.MockRepositoryModule; -import org.elasticsearch.test.junit.annotations.TestLogging; import org.junit.Test; import java.io.File; @@ -605,7 +603,6 @@ public class SharedClusterSnapshotRestoreTests extends AbstractSnapshotTests { @Test - @TestLogging("snapshots:TRACE") public void deletionOfFailingToRecoverIndexShouldStopRestore() throws Exception { File repositoryLocation = newTempDir(LifecycleScope.TEST); Client client = client(); @@ -822,7 +819,6 @@ public class SharedClusterSnapshotRestoreTests extends AbstractSnapshotTests { } @Test - @TestLogging("snapshots:TRACE") public void snapshotClosedIndexTest() throws Exception { Client client = client(); @@ -990,7 +986,6 @@ public class SharedClusterSnapshotRestoreTests extends AbstractSnapshotTests { } @Test - @TestLogging("cluster.routing.allocation.decider:TRACE") public void moveShardWhileSnapshottingTest() throws Exception { Client client = client(); File repositoryLocation = newTempDir(LifecycleScope.TEST); @@ -1053,7 +1048,6 @@ public class SharedClusterSnapshotRestoreTests extends AbstractSnapshotTests { } @Test - @TestLogging("cluster.routing.allocation.decider:TRACE") public void deleteRepositoryWhileSnapshottingTest() throws Exception { Client client = client(); File repositoryLocation = newTempDir(LifecycleScope.TEST); @@ -1255,7 +1249,6 @@ public class SharedClusterSnapshotRestoreTests extends AbstractSnapshotTests { @Test - @TestLogging("cluster.routing.allocation.decider:TRACE") public void snapshotStatusTest() throws Exception { Client client = client(); File repositoryLocation = newTempDir(LifecycleScope.TEST);