Apache Lucene open-source search software
SOLR-12028: BadApple and AwaitsFix annotations usage
Erick Ericksona09f3facfc5d
diff --git a/solr/core/src/test/org/apache/solr/TestDistributedSearch.java b/solr/core/src/test/org/apache/solr/TestDistributedSearch.javaindex d4ad79d586d..8a29db68d67 100644--- a/solr/core/src/test/org/apache/solr/TestDistributedSearch.java+++ b/solr/core/src/test/org/apache/solr/TestDistributedSearch.java@@ -108,7 +108,7 @@ public class TestDistributedSearch extends BaseDistributedSearchTestCase {}@Test- @BadApple(bugUrl="https://issues.apache.org/jira/browse/SOLR-12028") // 09-Apr-2018+ //05-Jul-2018 @BadApple(bugUrl="https://issues.apache.org/jira/browse/SOLR-12028") // 09-Apr-2018public void test() throws Exception {QueryResponse rsp = null;int backupStress = stress; // make a copy so we can restorediff --git a/solr/core/src/test/org/apache/solr/cloud/AssignBackwardCompatibilityTest.java b/solr/core/src/test/org/apache/solr/cloud/AssignBackwardCompatibilityTest.javaindex 534aeb8c571..74cf25290da 100644--- a/solr/core/src/test/org/apache/solr/cloud/AssignBackwardCompatibilityTest.java+++ b/solr/core/src/test/org/apache/solr/cloud/AssignBackwardCompatibilityTest.java@@ -56,7 +56,7 @@ public class AssignBackwardCompatibilityTest extends SolrCloudTestCase {}@Test- @BadApple(bugUrl="https://issues.apache.org/jira/browse/SOLR-12028") // 21-May-2018+ //05-Jul-2018 @BadApple(bugUrl="https://issues.apache.org/jira/browse/SOLR-12028") // 21-May-2018public void test() throws IOException, SolrServerException, KeeperException, InterruptedException {Set<String> coreNames = new HashSet<>();Set<String> coreNodeNames = new HashSet<>();diff --git a/solr/core/src/test/org/apache/solr/cloud/ChaosMonkeyNothingIsSafeTest.java b/solr/core/src/test/org/apache/solr/cloud/ChaosMonkeyNothingIsSafeTest.javaindex c14e0bccd9f..b40870c8a57 100644--- a/solr/core/src/test/org/apache/solr/cloud/ChaosMonkeyNothingIsSafeTest.java+++ b/solr/core/src/test/org/apache/solr/cloud/ChaosMonkeyNothingIsSafeTest.java@@ -112,7 +112,7 @@ public class ChaosMonkeyNothingIsSafeTest extends AbstractFullDistribZkTestBase}@Test- @BadApple(bugUrl="https://issues.apache.org/jira/browse/SOLR-12028") // 09-Apr-2018+ //05-Jul-2018 @BadApple(bugUrl="https://issues.apache.org/jira/browse/SOLR-12028") // 09-Apr-2018public void test() throws Exception {// None of the operations used here are particularly costly, so this should work.// Using this low timeout will also help us catch index stalling.diff --git a/solr/core/src/test/org/apache/solr/cloud/SaslZkACLProviderTest.java b/solr/core/src/test/org/apache/solr/cloud/SaslZkACLProviderTest.javaindex 16b67a34a21..b5b5d17eb07 100644--- a/solr/core/src/test/org/apache/solr/cloud/SaslZkACLProviderTest.java+++ b/solr/core/src/test/org/apache/solr/cloud/SaslZkACLProviderTest.java@@ -114,6 +114,7 @@ public class SaslZkACLProviderTest extends SolrTestCaseJ4 {}@Test+ @BadApple(bugUrl="https://issues.apache.org/jira/browse/SOLR-12028") // 05-Jul-2018public void testSaslZkACLProvider() throws Exception {// Test with Sasl enabledSolrZkClient zkClient = new SolrZkClientWithACLs(zkServer.getZkAddress(), AbstractZkTestCase.TIMEOUT);diff --git a/solr/core/src/test/org/apache/solr/cloud/api/collections/ShardSplitTest.java b/solr/core/src/test/org/apache/solr/cloud/api/collections/ShardSplitTest.javaindex 4411bc4e115..92fd4d58fdb 100644--- a/solr/core/src/test/org/apache/solr/cloud/api/collections/ShardSplitTest.java+++ b/solr/core/src/test/org/apache/solr/cloud/api/collections/ShardSplitTest.java@@ -259,7 +259,7 @@ public class ShardSplitTest extends BasicDistributedZkTest {* See SOLR-9439*/@Test- @BadApple(bugUrl="https://issues.apache.org/jira/browse/SOLR-12028")+ //05-Jul-2018 @BadApple(bugUrl="https://issues.apache.org/jira/browse/SOLR-12028")public void testSplitAfterFailedSplit() throws Exception {waitForThingsToLevelOut(15);diff --git a/solr/core/src/test/org/apache/solr/cloud/api/collections/TestHdfsCloudBackupRestore.java b/solr/core/src/test/org/apache/solr/cloud/api/collections/TestHdfsCloudBackupRestore.javaindex 1b2ed4cca88..9029cc1d993 100644--- a/solr/core/src/test/org/apache/solr/cloud/api/collections/TestHdfsCloudBackupRestore.java+++ b/solr/core/src/test/org/apache/solr/cloud/api/collections/TestHdfsCloudBackupRestore.java@@ -33,7 +33,6 @@ import org.apache.hadoop.fs.FileSystem;import org.apache.hadoop.hdfs.DistributedFileSystem;import org.apache.hadoop.hdfs.MiniDFSCluster;import org.apache.hadoop.hdfs.protocol.HdfsConstants.SafeModeAction;-import org.apache.lucene.util.LuceneTestCase;import org.apache.solr.client.solrj.impl.CloudSolrClient;import org.apache.solr.client.solrj.request.CollectionAdminRequest;import org.apache.solr.cloud.hdfs.HdfsTestUtil;@@ -61,7 +60,7 @@ import static org.apache.solr.core.backup.BackupManager.ZK_STATE_DIR;@ThreadLeakFilters(defaultFilters = true, filters = {BadHdfsThreadsFilter.class // hdfs currently leaks thread(s)})[email protected](bugUrl="https://issues.apache.org/jira/browse/SOLR-12028") // 04-May-2018+//05-Jul-2018 @LuceneTestCase.BadApple(bugUrl="https://issues.apache.org/jira/browse/SOLR-12028") // 04-May-2018public class TestHdfsCloudBackupRestore extends AbstractCloudBackupRestoreTestCase {public static final String SOLR_XML = "<solr>\n" +"\n" +diff --git a/solr/core/src/test/org/apache/solr/cloud/autoscaling/IndexSizeTriggerTest.java b/solr/core/src/test/org/apache/solr/cloud/autoscaling/IndexSizeTriggerTest.javaindex 00e1b31347e..daf98672d77 100644--- a/solr/core/src/test/org/apache/solr/cloud/autoscaling/IndexSizeTriggerTest.java+++ b/solr/core/src/test/org/apache/solr/cloud/autoscaling/IndexSizeTriggerTest.java@@ -30,7 +30,6 @@ import java.util.concurrent.TimeUnit;import java.util.concurrent.atomic.AtomicBoolean;import java.util.concurrent.atomic.AtomicReference;-import org.apache.lucene.util.LuceneTestCase;import org.apache.lucene.util.TestUtil;import org.apache.solr.client.solrj.SolrClient;import org.apache.solr.client.solrj.SolrRequest;@@ -68,7 +67,7 @@ import static org.apache.solr.common.cloud.ZkStateReader.SOLR_AUTOSCALING_CONF_P**/@LogLevel("org.apache.solr.cloud.autoscaling=DEBUG")[email protected](bugUrl = "https://issues.apache.org/jira/browse/SOLR-12392")+//05-Jul-2018 @LuceneTestCase.BadApple(bugUrl = "https://issues.apache.org/jira/browse/SOLR-12392")public class IndexSizeTriggerTest extends SolrCloudTestCase {private static final Logger log = LoggerFactory.getLogger(MethodHandles.lookup().lookupClass());@@ -138,6 +137,7 @@ public class IndexSizeTriggerTest extends SolrCloudTestCase {}@Test+ @BadApple(bugUrl="https://issues.apache.org/jira/browse/SOLR-12028") // 05-Jul-2018public void testTrigger() throws Exception {String collectionName = "testTrigger_collection";CollectionAdminRequest.Create create = CollectionAdminRequest.createCollection(collectionName,@@ -235,6 +235,7 @@ public class IndexSizeTriggerTest extends SolrCloudTestCase {}@Test+ @BadApple(bugUrl="https://issues.apache.org/jira/browse/SOLR-12028") // 05-Jul-2018public void testSplitIntegration() throws Exception {String collectionName = "testSplitIntegration_collection";CollectionAdminRequest.Create create = CollectionAdminRequest.createCollection(collectionName,@@ -347,6 +348,7 @@ public class IndexSizeTriggerTest extends SolrCloudTestCase {}@Test+ @BadApple(bugUrl="https://issues.apache.org/jira/browse/SOLR-12028") // 05-Jul-2018public void testMergeIntegration() throws Exception {String collectionName = "testMergeIntegration_collection";CollectionAdminRequest.Create create = CollectionAdminRequest.createCollection(collectionName,@@ -456,6 +458,7 @@ public class IndexSizeTriggerTest extends SolrCloudTestCase {}@Test+ @BadApple(bugUrl="https://issues.apache.org/jira/browse/SOLR-12028") // 05-Jul-2018public void testMixedBounds() throws Exception {// if (cloudManager instanceof SimCloudManager) {// log.warn("Requires SOLR-12208");diff --git a/solr/core/src/test/org/apache/solr/cloud/autoscaling/sim/TestLargeCluster.java b/solr/core/src/test/org/apache/solr/cloud/autoscaling/sim/TestLargeCluster.javaindex a6b6743a32f..2b7acd29d75 100644--- a/solr/core/src/test/org/apache/solr/cloud/autoscaling/sim/TestLargeCluster.java+++ b/solr/core/src/test/org/apache/solr/cloud/autoscaling/sim/TestLargeCluster.java@@ -76,7 +76,7 @@ import static org.apache.solr.cloud.autoscaling.AutoScalingHandlerTest.createAut@TimeoutSuite(millis = 4 * 3600 * 1000)@LogLevel("org.apache.solr.cloud.autoscaling=DEBUG")@ThreadLeakLingering(linger = 20000) // ComputePlanAction may take significant time to complete[email protected](bugUrl = "https://issues.apache.org/jira/browse/SOLR-12075")+//05-Jul-2018 @LuceneTestCase.BadApple(bugUrl = "https://issues.apache.org/jira/browse/SOLR-12075")public class TestLargeCluster extends SimSolrCloudTestCase {private static final Logger log = LoggerFactory.getLogger(MethodHandles.lookup().lookupClass());diff --git a/solr/core/src/test/org/apache/solr/cloud/autoscaling/sim/TestSimDistributedQueue.java b/solr/core/src/test/org/apache/solr/cloud/autoscaling/sim/TestSimDistributedQueue.javaindex 1c41795df38..35dc1fade4c 100644--- a/solr/core/src/test/org/apache/solr/cloud/autoscaling/sim/TestSimDistributedQueue.java+++ b/solr/core/src/test/org/apache/solr/cloud/autoscaling/sim/TestSimDistributedQueue.java@@ -39,6 +39,7 @@ public class TestSimDistributedQueue extends SolrTestCaseJ4 {protected ExecutorService executor = ExecutorUtil.newMDCAwareSingleThreadExecutor(new SolrjNamedThreadFactory("sdqtest-"));@Test+ @BadApple(bugUrl="https://issues.apache.org/jira/browse/SOLR-12028") // 05-Jul-2018public void testDistributedQueue() throws Exception {String dqZNode = "/distqueue/test1";byte[] data = "hello world".getBytes(UTF8);diff --git a/solr/core/src/test/org/apache/solr/cloud/cdcr/CdcrReplicationDistributedZkTest.java b/solr/core/src/test/org/apache/solr/cloud/cdcr/CdcrReplicationDistributedZkTest.javaindex a1e26044f47..82da28771a7 100644--- a/solr/core/src/test/org/apache/solr/cloud/cdcr/CdcrReplicationDistributedZkTest.java+++ b/solr/core/src/test/org/apache/solr/cloud/cdcr/CdcrReplicationDistributedZkTest.java@@ -149,6 +149,7 @@ public class CdcrReplicationDistributedZkTest extends BaseCdcrDistributedZkTest@Test@ShardsFixed(num = 4)+ @BadApple(bugUrl="https://issues.apache.org/jira/browse/SOLR-12028") // 05-Jul-2018public void testReplicationStartStop() throws Exception {int start = 0;List<SolrInputDocument> docs = new ArrayList<>();@@ -209,6 +210,7 @@ public class CdcrReplicationDistributedZkTest extends BaseCdcrDistributedZkTest*/@Test@ShardsFixed(num = 4)+ @BadApple(bugUrl="https://issues.apache.org/jira/browse/SOLR-12028") // 05-Jul-2018public void testReplicationAfterRestart() throws Exception {log.info("Starting CDCR");@@ -279,6 +281,7 @@ public class CdcrReplicationDistributedZkTest extends BaseCdcrDistributedZkTest*/@Test@ShardsFixed(num = 4)+ @BadApple(bugUrl="https://issues.apache.org/jira/browse/SOLR-12028") // 05-Jul-2018public void testReplicationAfterLeaderChange() throws Exception {log.info("Starting CDCR");@@ -362,6 +365,7 @@ public class CdcrReplicationDistributedZkTest extends BaseCdcrDistributedZkTest*/@Test@ShardsFixed(num = 4)+ @BadApple(bugUrl="https://issues.apache.org/jira/browse/SOLR-12028") // 05-Jul-2018public void testUpdateLogSynchronisation() throws Exception {this.invokeCdcrAction(shardToLeaderJetty.get(SOURCE_COLLECTION).get(SHARD1), CdcrParams.CdcrAction.START);this.waitForCdcrStateReplication(SOURCE_COLLECTION);@@ -412,6 +416,7 @@ public class CdcrReplicationDistributedZkTest extends BaseCdcrDistributedZkTest*/@Test@ShardsFixed(num = 4)+ @BadApple(bugUrl="https://issues.apache.org/jira/browse/SOLR-12028") // 05-Jul-2018public void testBufferOnNonLeader() throws Exception {// buffering is enabled by default, so disable itthis.invokeCdcrAction(shardToLeaderJetty.get(SOURCE_COLLECTION).get(SHARD1), CdcrParams.CdcrAction.DISABLEBUFFER);@@ -449,6 +454,7 @@ public class CdcrReplicationDistributedZkTest extends BaseCdcrDistributedZkTest*/@Test@ShardsFixed(num = 4)+ @BadApple(bugUrl="https://issues.apache.org/jira/browse/SOLR-12028") // 05-Jul-2018public void testOps() throws Exception {// Index documentsList<SolrInputDocument> docs = new ArrayList<>();@@ -482,6 +488,7 @@ public class CdcrReplicationDistributedZkTest extends BaseCdcrDistributedZkTest*/@Test@ShardsFixed(num = 4)+ @BadApple(bugUrl="https://issues.apache.org/jira/browse/SOLR-12028") // 05-Jul-2018public void testBatchAddsWithDelete() throws Exception {// Index 50 documentsint start = 0;@@ -539,6 +546,7 @@ public class CdcrReplicationDistributedZkTest extends BaseCdcrDistributedZkTest*/@Test@ShardsFixed(num = 4)+ @BadApple(bugUrl="https://issues.apache.org/jira/browse/SOLR-12028") // 05-Jul-2018public void testBatchBoundaries() throws Exception {this.invokeCdcrAction(shardToLeaderJetty.get(SOURCE_COLLECTION).get(SHARD1), CdcrParams.CdcrAction.START);this.waitForCdcrStateReplication(SOURCE_COLLECTION);@@ -570,6 +578,7 @@ public class CdcrReplicationDistributedZkTest extends BaseCdcrDistributedZkTest*/@Test@ShardsFixed(num = 4)+ @BadApple(bugUrl="https://issues.apache.org/jira/browse/SOLR-12028") // 05-Jul-2018public void testResilienceWithDeleteByQueryOnTarget() throws Exception {// Index 50 documentsint start = 0;