mirror of https://github.com/apache/lucene.git
SOLR-12028: BadApple and AwaitsFix annotations usage
This commit is contained in:
parent
2a2a0b6acd
commit
0014f3af88
|
@ -2221,6 +2221,7 @@ public class TestIndexSorting extends LuceneTestCase {
|
|||
}
|
||||
|
||||
// pits index time sorting against query time sorting
|
||||
@BadApple(bugUrl="https://issues.apache.org/jira/browse/SOLR-12028") // 09-Apr-2018
|
||||
public void testRandom3() throws Exception {
|
||||
int numDocs = atLeast(1000);
|
||||
List<RandomDoc> docs = new ArrayList<>();
|
||||
|
|
|
@ -108,6 +108,7 @@ public class TestDistributedSearch extends BaseDistributedSearchTestCase {
|
|||
}
|
||||
|
||||
@Test
|
||||
@BadApple(bugUrl="https://issues.apache.org/jira/browse/SOLR-12028") // 09-Apr-2018
|
||||
public void test() throws Exception {
|
||||
QueryResponse rsp = null;
|
||||
int backupStress = stress; // make a copy so we can restore
|
||||
|
|
|
@ -46,6 +46,7 @@ public class AddReplicaTest extends SolrCloudTestCase {
|
|||
}
|
||||
|
||||
@Test
|
||||
@BadApple(bugUrl="https://issues.apache.org/jira/browse/SOLR-12028") // 09-Apr-2018
|
||||
public void test() throws Exception {
|
||||
cluster.waitForAllNodes(5000);
|
||||
String collection = "addreplicatest_coll";
|
||||
|
|
|
@ -240,6 +240,7 @@ public class AliasIntegrationTest extends SolrCloudTestCase {
|
|||
}
|
||||
|
||||
@Test
|
||||
@BadApple(bugUrl="https://issues.apache.org/jira/browse/SOLR-12028") // 09-Apr-2018
|
||||
public void testModifyPropertiesV1() throws Exception {
|
||||
// note we don't use TZ in this test, thus it's UTC
|
||||
final String aliasName = getTestName();
|
||||
|
|
|
@ -112,6 +112,7 @@ public class ChaosMonkeyNothingIsSafeTest extends AbstractFullDistribZkTestBase
|
|||
}
|
||||
|
||||
@Test
|
||||
@BadApple(bugUrl="https://issues.apache.org/jira/browse/SOLR-12028") // 09-Apr-2018
|
||||
public 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.
|
||||
|
|
|
@ -99,6 +99,7 @@ public class CreateRoutedAliasTest extends SolrCloudTestCase {
|
|||
// This is a fairly complete test where we set many options and see that it both affected the created
|
||||
// collection and that the alias metadata was saved accordingly
|
||||
@Test
|
||||
@BadApple(bugUrl="https://issues.apache.org/jira/browse/SOLR-12028") // 09-Apr-2018
|
||||
public void testV2() throws Exception {
|
||||
// note we don't use TZ in this test, thus it's UTC
|
||||
final String aliasName = getTestName();
|
||||
|
@ -180,6 +181,7 @@ public class CreateRoutedAliasTest extends SolrCloudTestCase {
|
|||
}
|
||||
|
||||
@Test
|
||||
@BadApple(bugUrl="https://issues.apache.org/jira/browse/SOLR-12028") // 09-Apr-2018
|
||||
public void testV1() throws Exception {
|
||||
final String aliasName = getTestName();
|
||||
final String baseUrl = cluster.getRandomJetty(random()).getBaseUrl().toString();
|
||||
|
@ -223,6 +225,7 @@ public class CreateRoutedAliasTest extends SolrCloudTestCase {
|
|||
|
||||
// TZ should not affect the first collection name if absolute date given for start
|
||||
@Test
|
||||
@BadApple(bugUrl="https://issues.apache.org/jira/browse/SOLR-12028") // 09-Apr-2018
|
||||
public void testTimezoneAbsoluteDate() throws Exception {
|
||||
final String aliasName = getTestName();
|
||||
try (SolrClient client = getCloudSolrClient(cluster)) {
|
||||
|
@ -241,6 +244,7 @@ public class CreateRoutedAliasTest extends SolrCloudTestCase {
|
|||
}
|
||||
|
||||
@Test
|
||||
@BadApple(bugUrl="https://issues.apache.org/jira/browse/SOLR-12028") // 09-Apr-2018
|
||||
public void testCollectionNamesMustBeAbsent() throws Exception {
|
||||
CollectionAdminRequest.createCollection("collection1meta", "_default", 2, 1).process(cluster.getSolrClient());
|
||||
CollectionAdminRequest.createCollection("collection2meta", "_default", 1, 1).process(cluster.getSolrClient());
|
||||
|
|
|
@ -290,6 +290,7 @@ public class DeleteReplicaTest extends SolrCloudTestCase {
|
|||
}
|
||||
|
||||
@Test
|
||||
@BadApple(bugUrl="https://issues.apache.org/jira/browse/SOLR-12028") // 09-Apr-2018
|
||||
public void deleteReplicaOnIndexing() throws Exception {
|
||||
final String collectionName = "deleteReplicaOnIndexing";
|
||||
CollectionAdminRequest.createCollection(collectionName, "conf", 1, 2)
|
||||
|
|
|
@ -77,6 +77,7 @@ public class TestCloudRecovery extends SolrCloudTestCase {
|
|||
}
|
||||
|
||||
@Test
|
||||
@BadApple(bugUrl="https://issues.apache.org/jira/browse/SOLR-12028") // 09-Apr-2018
|
||||
public void leaderRecoverFromLogOnStartupTest() throws Exception {
|
||||
AtomicInteger countReplayLog = new AtomicInteger(0);
|
||||
DirectUpdateHandler2.commitOnClose = false;
|
||||
|
|
|
@ -30,6 +30,7 @@ import org.apache.solr.util.MockCoreContainer.MockCoreDescriptor;
|
|||
import org.apache.solr.util.TimeOut;
|
||||
import org.apache.zookeeper.KeeperException;
|
||||
import org.apache.zookeeper.data.Stat;
|
||||
import org.junit.Test;
|
||||
|
||||
/**
|
||||
* Test for {@link LeaderInitiatedRecoveryThread}
|
||||
|
@ -43,6 +44,8 @@ public class TestLeaderInitiatedRecoveryThread extends AbstractFullDistribZkTest
|
|||
fixShardCount(2);
|
||||
}
|
||||
|
||||
@Test
|
||||
@BadApple(bugUrl="https://issues.apache.org/jira/browse/SOLR-12028") // 09-Apr-2018
|
||||
public void testPublishDownState() throws Exception {
|
||||
waitForRecoveriesToFinish(true);
|
||||
|
||||
|
|
|
@ -93,6 +93,7 @@ public class TestStressInPlaceUpdates extends AbstractFullDistribZkTestBase {
|
|||
|
||||
@Test
|
||||
@ShardsFixed(num = 3)
|
||||
@BadApple(bugUrl="https://issues.apache.org/jira/browse/SOLR-12028") // 09-Apr-2018
|
||||
public void stressTest() throws Exception {
|
||||
waitForRecoveriesToFinish(true);
|
||||
|
||||
|
|
|
@ -172,6 +172,7 @@ public class TestCollectionsAPIViaSolrCloudCluster extends SolrCloudTestCase {
|
|||
}
|
||||
|
||||
@Test
|
||||
@BadApple(bugUrl="https://issues.apache.org/jira/browse/SOLR-12028") // 09-Apr-2018
|
||||
public void testCollectionCreateWithoutCoresThenDelete() throws Exception {
|
||||
|
||||
final String collectionName = "testSolrCloudCollectionWithoutCores";
|
||||
|
|
|
@ -414,6 +414,7 @@ public class ComputePlanActionTest extends SolrCloudTestCase {
|
|||
}
|
||||
|
||||
@Test
|
||||
@BadApple(bugUrl="https://issues.apache.org/jira/browse/SOLR-12028") // 09-Apr-2018
|
||||
public void testSelectedCollections() throws Exception {
|
||||
log.info("Found number of jetties: {}", cluster.getJettySolrRunners().size());
|
||||
AssertingTriggerAction.expectedNode = null;
|
||||
|
|
|
@ -56,6 +56,7 @@ public class ScheduledTriggerTest extends SolrCloudTestCase {
|
|||
}
|
||||
|
||||
@Test
|
||||
@BadApple(bugUrl="https://issues.apache.org/jira/browse/SOLR-12028") // 09-Apr-2018
|
||||
public void testTrigger() throws Exception {
|
||||
CoreContainer container = cluster.getJettySolrRunners().get(0).getCoreContainer();
|
||||
|
||||
|
|
|
@ -327,6 +327,7 @@ public class TestTriggerIntegration extends SimSolrCloudTestCase {
|
|||
}
|
||||
|
||||
@Test
|
||||
@BadApple(bugUrl="https://issues.apache.org/jira/browse/SOLR-12028") // 09-Apr-2018
|
||||
public void testNodeAddedTriggerRestoreState() throws Exception {
|
||||
// for this test we want to update the trigger so we must assert that the actions were created twice
|
||||
TestTriggerIntegration.actionInitCalled = new CountDownLatch(2);
|
||||
|
|
|
@ -242,8 +242,7 @@ public class AutoscalingHistoryHandlerTest extends SolrCloudTestCase {
|
|||
}
|
||||
|
||||
@Test
|
||||
// commented out 26-Mar-2018
|
||||
//@BadApple(bugUrl="https://issues.apache.org/jira/browse/SOLR-12028")
|
||||
@BadApple(bugUrl="https://issues.apache.org/jira/browse/SOLR-12028") // 09-Apr-2018
|
||||
public void testHistory() throws Exception {
|
||||
waitForState("Timed out wait for collection be active", COLL_NAME,
|
||||
clusterShape(1, 3));
|
||||
|
|
|
@ -267,6 +267,7 @@ public class TestCollectionStateWatchers extends SolrCloudTestCase {
|
|||
}
|
||||
|
||||
@Test
|
||||
@BadApple(bugUrl="https://issues.apache.org/jira/browse/SOLR-12028") // 09-Apr-2018
|
||||
public void testDeletionsTriggerWatches() throws Exception {
|
||||
CollectionAdminRequest.createCollection("tobedeleted", "config", 1, 1)
|
||||
.process(cluster.getSolrClient());
|
||||
|
|
Loading…
Reference in New Issue