mirror of https://github.com/apache/lucene.git
SOLR-12028: BadApple and AwaitsFix annotations usage
This commit is contained in:
parent
18ad8d137a
commit
fd929c1d60
|
@ -56,6 +56,7 @@ public class AssignBackwardCompatibilityTest extends SolrCloudTestCase {
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
|
@BadApple(bugUrl="https://issues.apache.org/jira/browse/SOLR-12028") // 21-May-2018
|
||||||
public void test() throws IOException, SolrServerException, KeeperException, InterruptedException {
|
public void test() throws IOException, SolrServerException, KeeperException, InterruptedException {
|
||||||
Set<String> coreNames = new HashSet<>();
|
Set<String> coreNames = new HashSet<>();
|
||||||
Set<String> coreNodeNames = new HashSet<>();
|
Set<String> coreNodeNames = new HashSet<>();
|
||||||
|
|
|
@ -221,6 +221,7 @@ public class DeleteReplicaTest extends SolrCloudTestCase {
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
@Slow
|
@Slow
|
||||||
|
@BadApple(bugUrl="https://issues.apache.org/jira/browse/SOLR-12028") // 21-May-2018
|
||||||
public void raceConditionOnDeleteAndRegisterReplica() throws Exception {
|
public void raceConditionOnDeleteAndRegisterReplica() throws Exception {
|
||||||
raceConditionOnDeleteAndRegisterReplica("true");
|
raceConditionOnDeleteAndRegisterReplica("true");
|
||||||
raceConditionOnDeleteAndRegisterReplica("false");
|
raceConditionOnDeleteAndRegisterReplica("false");
|
||||||
|
|
|
@ -96,6 +96,7 @@ public class LIRRollingUpdatesTest extends SolrCloudTestCase {
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
|
@BadApple(bugUrl="https://issues.apache.org/jira/browse/SOLR-12028") // 21-May-2018
|
||||||
public void testNewReplicaOldLeader() throws Exception {
|
public void testNewReplicaOldLeader() throws Exception {
|
||||||
|
|
||||||
String collection = "testNewReplicaOldLeader";
|
String collection = "testNewReplicaOldLeader";
|
||||||
|
|
|
@ -87,6 +87,7 @@ public class LeaderVoteWaitTimeoutTest extends SolrCloudTestCase {
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
|
@BadApple(bugUrl="https://issues.apache.org/jira/browse/SOLR-12028") // 21-May-2018
|
||||||
public void basicTest() throws Exception {
|
public void basicTest() throws Exception {
|
||||||
final String collectionName = "basicTest";
|
final String collectionName = "basicTest";
|
||||||
CollectionAdminRequest.createCollection(collectionName, 1, 1)
|
CollectionAdminRequest.createCollection(collectionName, 1, 1)
|
||||||
|
@ -123,6 +124,7 @@ public class LeaderVoteWaitTimeoutTest extends SolrCloudTestCase {
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
|
@BadApple(bugUrl="https://issues.apache.org/jira/browse/SOLR-12028") // 21-May-2018
|
||||||
public void testMostInSyncReplicasCanWinElection() throws Exception {
|
public void testMostInSyncReplicasCanWinElection() throws Exception {
|
||||||
final String collectionName = "collection1";
|
final String collectionName = "collection1";
|
||||||
CollectionAdminRequest.createCollection(collectionName, 1, 3)
|
CollectionAdminRequest.createCollection(collectionName, 1, 3)
|
||||||
|
|
|
@ -65,7 +65,7 @@ public class MoveReplicaHDFSTest extends MoveReplicaTest {
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
@BadApple(bugUrl="https://issues.apache.org/jira/browse/SOLR-12028")
|
@BadApple(bugUrl="https://issues.apache.org/jira/browse/SOLR-12028") // 21-May-2018
|
||||||
public void testNormalFailedMove() throws Exception {
|
public void testNormalFailedMove() throws Exception {
|
||||||
inPlaceMove = false;
|
inPlaceMove = false;
|
||||||
testFailedMove();
|
testFailedMove();
|
||||||
|
|
|
@ -76,7 +76,7 @@ public class RestartWhileUpdatingTest extends AbstractFullDistribZkTestBase {
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
@BadApple(bugUrl="https://issues.apache.org/jira/browse/SOLR-12028") // 26-Mar-2018
|
@BadApple(bugUrl="https://issues.apache.org/jira/browse/SOLR-12028") // 21-May-2018
|
||||||
public void test() throws Exception {
|
public void test() throws Exception {
|
||||||
handle.clear();
|
handle.clear();
|
||||||
handle.put("timestamp", SKIPVAL);
|
handle.put("timestamp", SKIPVAL);
|
||||||
|
|
|
@ -121,6 +121,7 @@ public class TestPullReplica extends SolrCloudTestCase {
|
||||||
}
|
}
|
||||||
|
|
||||||
@Repeat(iterations=2) // 2 times to make sure cleanup is complete and we can create the same collection
|
@Repeat(iterations=2) // 2 times to make sure cleanup is complete and we can create the same collection
|
||||||
|
@BadApple(bugUrl="https://issues.apache.org/jira/browse/SOLR-12028") // 21-May-2018
|
||||||
public void testCreateDelete() throws Exception {
|
public void testCreateDelete() throws Exception {
|
||||||
try {
|
try {
|
||||||
switch (random().nextInt(3)) {
|
switch (random().nextInt(3)) {
|
||||||
|
@ -303,7 +304,7 @@ public class TestPullReplica extends SolrCloudTestCase {
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
@BadApple(bugUrl="https://issues.apache.org/jira/browse/SOLR-12028") // 26-Mar-2018
|
@BadApple(bugUrl="https://issues.apache.org/jira/browse/SOLR-12028") // 21-May-2018
|
||||||
public void testKillLeader() throws Exception {
|
public void testKillLeader() throws Exception {
|
||||||
doTestNoLeader(false);
|
doTestNoLeader(false);
|
||||||
}
|
}
|
||||||
|
|
|
@ -120,6 +120,7 @@ public class TestSolrCloudWithKerberosAlt extends SolrCloudTestCase {
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
|
@BadApple(bugUrl="https://issues.apache.org/jira/browse/SOLR-12028") // 21-May-2018
|
||||||
public void testBasics() throws Exception {
|
public void testBasics() throws Exception {
|
||||||
testCollectionCreateSearchDelete();
|
testCollectionCreateSearchDelete();
|
||||||
// sometimes run a second test e.g. to test collection create-delete-create scenario
|
// sometimes run a second test e.g. to test collection create-delete-create scenario
|
||||||
|
|
|
@ -64,6 +64,7 @@ public class UnloadDistributedZkTest extends BasicDistributedZkTest {
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
|
@BadApple(bugUrl="https://issues.apache.org/jira/browse/SOLR-12028") // 21-May-2018
|
||||||
public void test() throws Exception {
|
public void test() throws Exception {
|
||||||
|
|
||||||
testCoreUnloadAndLeaders(); // long
|
testCoreUnloadAndLeaders(); // long
|
||||||
|
|
|
@ -88,6 +88,7 @@ public class CollectionsAPIAsyncDistributedZkTest extends SolrCloudTestCase {
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
|
@BadApple(bugUrl="https://issues.apache.org/jira/browse/SOLR-12028") // 21-May-2018
|
||||||
public void testAsyncRequests() throws Exception {
|
public void testAsyncRequests() throws Exception {
|
||||||
|
|
||||||
final String collection = "testAsyncOperations";
|
final String collection = "testAsyncOperations";
|
||||||
|
|
|
@ -55,6 +55,7 @@ public class CustomCollectionTest extends SolrCloudTestCase {
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
|
@BadApple(bugUrl="https://issues.apache.org/jira/browse/SOLR-12028") // 21-May-2018
|
||||||
public void testCustomCollectionsAPI() throws Exception {
|
public void testCustomCollectionsAPI() throws Exception {
|
||||||
|
|
||||||
final String collection = "implicitcoll";
|
final String collection = "implicitcoll";
|
||||||
|
|
|
@ -157,6 +157,7 @@ public class ComputePlanActionTest extends SolrCloudTestCase {
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
|
@BadApple(bugUrl="https://issues.apache.org/jira/browse/SOLR-12028") // 21-May-2018
|
||||||
public void testNodeLost() throws Exception {
|
public void testNodeLost() throws Exception {
|
||||||
// let's start a node so that we have at least two
|
// let's start a node so that we have at least two
|
||||||
JettySolrRunner runner = cluster.startJettySolrRunner();
|
JettySolrRunner runner = cluster.startJettySolrRunner();
|
||||||
|
|
|
@ -136,6 +136,7 @@ public class IndexSizeTriggerTest extends SolrCloudTestCase {
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
|
@BadApple(bugUrl="https://issues.apache.org/jira/browse/SOLR-12028") // 21-May-2018
|
||||||
public void testTrigger() throws Exception {
|
public void testTrigger() throws Exception {
|
||||||
String collectionName = "testTrigger_collection";
|
String collectionName = "testTrigger_collection";
|
||||||
CollectionAdminRequest.Create create = CollectionAdminRequest.createCollection(collectionName,
|
CollectionAdminRequest.Create create = CollectionAdminRequest.createCollection(collectionName,
|
||||||
|
@ -233,6 +234,7 @@ public class IndexSizeTriggerTest extends SolrCloudTestCase {
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
|
@BadApple(bugUrl="https://issues.apache.org/jira/browse/SOLR-12028") // 21-May-2018
|
||||||
public void testSplitIntegration() throws Exception {
|
public void testSplitIntegration() throws Exception {
|
||||||
String collectionName = "testSplitIntegration_collection";
|
String collectionName = "testSplitIntegration_collection";
|
||||||
CollectionAdminRequest.Create create = CollectionAdminRequest.createCollection(collectionName,
|
CollectionAdminRequest.Create create = CollectionAdminRequest.createCollection(collectionName,
|
||||||
|
@ -345,6 +347,7 @@ public class IndexSizeTriggerTest extends SolrCloudTestCase {
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
|
@BadApple(bugUrl="https://issues.apache.org/jira/browse/SOLR-12028") // 21-May-2018
|
||||||
public void testMergeIntegration() throws Exception {
|
public void testMergeIntegration() throws Exception {
|
||||||
String collectionName = "testMergeIntegration_collection";
|
String collectionName = "testMergeIntegration_collection";
|
||||||
CollectionAdminRequest.Create create = CollectionAdminRequest.createCollection(collectionName,
|
CollectionAdminRequest.Create create = CollectionAdminRequest.createCollection(collectionName,
|
||||||
|
|
|
@ -274,6 +274,7 @@ public class SearchRateTriggerIntegrationTest extends SolrCloudTestCase {
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
|
@BadApple(bugUrl="https://issues.apache.org/jira/browse/SOLR-12028") // 21-May-2018
|
||||||
public void testBelowSearchRate() throws Exception {
|
public void testBelowSearchRate() throws Exception {
|
||||||
CloudSolrClient solrClient = cluster.getSolrClient();
|
CloudSolrClient solrClient = cluster.getSolrClient();
|
||||||
String COLL1 = "belowRate_collection";
|
String COLL1 = "belowRate_collection";
|
||||||
|
@ -512,6 +513,7 @@ public class SearchRateTriggerIntegrationTest extends SolrCloudTestCase {
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
|
@BadApple(bugUrl="https://issues.apache.org/jira/browse/SOLR-12028") // 21-May-2018
|
||||||
public void testDeleteNode() throws Exception {
|
public void testDeleteNode() throws Exception {
|
||||||
CloudSolrClient solrClient = cluster.getSolrClient();
|
CloudSolrClient solrClient = cluster.getSolrClient();
|
||||||
String COLL1 = "deleteNode_collection";
|
String COLL1 = "deleteNode_collection";
|
||||||
|
|
|
@ -19,6 +19,7 @@ package org.apache.solr.cloud.hdfs;
|
||||||
import java.io.IOException;
|
import java.io.IOException;
|
||||||
|
|
||||||
import org.apache.hadoop.hdfs.MiniDFSCluster;
|
import org.apache.hadoop.hdfs.MiniDFSCluster;
|
||||||
|
import org.apache.lucene.util.LuceneTestCase;
|
||||||
import org.apache.lucene.util.LuceneTestCase.Slow;
|
import org.apache.lucene.util.LuceneTestCase.Slow;
|
||||||
import org.apache.solr.cloud.UnloadDistributedZkTest;
|
import org.apache.solr.cloud.UnloadDistributedZkTest;
|
||||||
import org.apache.solr.util.BadHdfsThreadsFilter;
|
import org.apache.solr.util.BadHdfsThreadsFilter;
|
||||||
|
@ -33,6 +34,7 @@ import com.carrotsearch.randomizedtesting.annotations.ThreadLeakFilters;
|
||||||
@ThreadLeakFilters(defaultFilters = true, filters = {
|
@ThreadLeakFilters(defaultFilters = true, filters = {
|
||||||
BadHdfsThreadsFilter.class // hdfs currently leaks thread(s)
|
BadHdfsThreadsFilter.class // hdfs currently leaks thread(s)
|
||||||
})
|
})
|
||||||
|
@LuceneTestCase.BadApple(bugUrl="https://issues.apache.org/jira/browse/SOLR-12028") // 21-May-2018
|
||||||
public class HdfsUnloadDistributedZkTest extends UnloadDistributedZkTest {
|
public class HdfsUnloadDistributedZkTest extends UnloadDistributedZkTest {
|
||||||
private static MiniDFSCluster dfsCluster;
|
private static MiniDFSCluster dfsCluster;
|
||||||
|
|
||||||
|
|
|
@ -97,6 +97,7 @@ public class StressHdfsTest extends BasicDistributedZkTest {
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
|
@BadApple(bugUrl="https://issues.apache.org/jira/browse/SOLR-12028") // 21-May-2018
|
||||||
public void test() throws Exception {
|
public void test() throws Exception {
|
||||||
randomlyEnableAutoSoftCommit();
|
randomlyEnableAutoSoftCommit();
|
||||||
|
|
||||||
|
|
|
@ -76,6 +76,7 @@ public class TestSQLHandler extends AbstractFullDistribZkTestBase {
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
|
@BadApple(bugUrl="https://issues.apache.org/jira/browse/SOLR-12028") // 21-May-2018
|
||||||
public void doTest() throws Exception {
|
public void doTest() throws Exception {
|
||||||
waitForRecoveriesToFinish(false);
|
waitForRecoveriesToFinish(false);
|
||||||
|
|
||||||
|
|
|
@ -83,6 +83,7 @@ public class BasicAuthIntegrationTest extends SolrCloudTestCase {
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
|
@BadApple(bugUrl="https://issues.apache.org/jira/browse/SOLR-12028") // 21-May-2018
|
||||||
public void testBasicAuth() throws Exception {
|
public void testBasicAuth() throws Exception {
|
||||||
boolean isUseV2Api = random().nextBoolean();
|
boolean isUseV2Api = random().nextBoolean();
|
||||||
String authcPrefix = "/admin/authentication";
|
String authcPrefix = "/admin/authentication";
|
||||||
|
|
|
@ -83,6 +83,7 @@ public class TestHdfsUpdateLog extends SolrTestCaseJ4 {
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
|
@BadApple(bugUrl="https://issues.apache.org/jira/browse/SOLR-12028") // 21-May-2018
|
||||||
public void testFSThreadSafety() throws Exception {
|
public void testFSThreadSafety() throws Exception {
|
||||||
|
|
||||||
final SolrQueryRequest req = req();
|
final SolrQueryRequest req = req();
|
||||||
|
|
|
@ -119,6 +119,7 @@ public class TestInPlaceUpdatesDistrib extends AbstractFullDistribZkTestBase {
|
||||||
@Test
|
@Test
|
||||||
@ShardsFixed(num = 3)
|
@ShardsFixed(num = 3)
|
||||||
@SuppressWarnings("unchecked")
|
@SuppressWarnings("unchecked")
|
||||||
|
@BadApple(bugUrl="https://issues.apache.org/jira/browse/SOLR-12028") // 21-May-2018
|
||||||
public void test() throws Exception {
|
public void test() throws Exception {
|
||||||
waitForRecoveriesToFinish(true);
|
waitForRecoveriesToFinish(true);
|
||||||
mapReplicasToClients();
|
mapReplicasToClients();
|
||||||
|
|
Loading…
Reference in New Issue