mirror of https://github.com/apache/lucene.git
SOLR-12028: BadApple and AwaitsFix annotations usage
This commit is contained in:
parent
629081f950
commit
5cd8aa4ff9
|
@ -87,7 +87,6 @@ public class AliasIntegrationTest extends SolrCloudTestCase {
|
|||
}
|
||||
|
||||
@Test
|
||||
//@BadApple(bugUrl="https://issues.apache.org/jira/browse/SOLR-12028")
|
||||
public void testProperties() throws Exception {
|
||||
CollectionAdminRequest.createCollection("collection1meta", "conf", 2, 1).process(cluster.getSolrClient());
|
||||
CollectionAdminRequest.createCollection("collection2meta", "conf", 1, 1).process(cluster.getSolrClient());
|
||||
|
@ -225,7 +224,6 @@ 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();
|
||||
|
@ -241,7 +239,6 @@ public class AliasIntegrationTest extends SolrCloudTestCase {
|
|||
}
|
||||
|
||||
@Test
|
||||
//@BadApple(bugUrl="https://issues.apache.org/jira/browse/SOLR-12028")
|
||||
public void testModifyPropertiesCAR() throws Exception {
|
||||
// note we don't use TZ in this test, thus it's UTC
|
||||
final String aliasName = getTestName();
|
||||
|
|
|
@ -37,6 +37,7 @@ import java.util.concurrent.atomic.AtomicInteger;
|
|||
|
||||
import org.apache.commons.lang.StringUtils;
|
||||
import org.apache.lucene.util.IOUtils;
|
||||
import org.apache.lucene.util.LuceneTestCase;
|
||||
import org.apache.lucene.util.LuceneTestCase.Slow;
|
||||
import org.apache.solr.JSONTestUtil;
|
||||
import org.apache.solr.SolrTestCaseJ4.SuppressSSL;
|
||||
|
@ -86,6 +87,7 @@ import org.slf4j.LoggerFactory;
|
|||
*/
|
||||
@Slow
|
||||
@SuppressSSL(bugUrl = "https://issues.apache.org/jira/browse/SOLR-5776")
|
||||
@LuceneTestCase.BadApple(bugUrl="https://issues.apache.org/jira/browse/SOLR-12028") // 2018-06-18
|
||||
public class BasicDistributedZkTest extends AbstractFullDistribZkTestBase {
|
||||
|
||||
private static final Logger log = LoggerFactory.getLogger(MethodHandles.lookup().lookupClass());
|
||||
|
|
|
@ -112,7 +112,7 @@ public class ChaosMonkeySafeLeaderWithPullReplicasTest extends AbstractFullDistr
|
|||
}
|
||||
|
||||
@Test
|
||||
@BadApple(bugUrl="https://issues.apache.org/jira/browse/SOLR-12028")
|
||||
//2018-06-18 (commented) @BadApple(bugUrl="https://issues.apache.org/jira/browse/SOLR-12028")
|
||||
public void test() throws Exception {
|
||||
DocCollection docCollection = cloudClient.getZkStateReader().getClusterState().getCollection(DEFAULT_COLLECTION);
|
||||
assertEquals(this.sliceCount, docCollection.getSlices().size());
|
||||
|
|
|
@ -86,7 +86,6 @@ 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();
|
||||
|
@ -168,7 +167,6 @@ 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();
|
||||
|
@ -212,7 +210,6 @@ 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)) {
|
||||
|
@ -231,7 +228,6 @@ 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());
|
||||
|
|
|
@ -32,6 +32,7 @@ import java.util.Properties;
|
|||
import java.util.Set;
|
||||
import java.util.concurrent.TimeUnit;
|
||||
|
||||
import org.apache.lucene.util.LuceneTestCase;
|
||||
import org.apache.lucene.util.LuceneTestCase.Slow;
|
||||
import org.apache.solr.JSONTestUtil;
|
||||
import org.apache.solr.SolrTestCaseJ4.SuppressSSL;
|
||||
|
@ -75,6 +76,7 @@ import static org.apache.solr.common.cloud.Replica.State.RECOVERING;
|
|||
|
||||
@Slow
|
||||
@SuppressSSL(bugUrl = "https://issues.apache.org/jira/browse/SOLR-5776")
|
||||
@LuceneTestCase.BadApple(bugUrl="https://issues.apache.org/jira/browse/SOLR-12028") // 2018-06-18
|
||||
public class HttpPartitionTest extends AbstractFullDistribZkTestBase {
|
||||
|
||||
private static final Logger log = LoggerFactory.getLogger(MethodHandles.lookup().lookupClass());
|
||||
|
|
|
@ -65,7 +65,7 @@ public class LegacyCloudClusterPropTest extends SolrCloudTestCase {
|
|||
};
|
||||
|
||||
@Test
|
||||
@BadApple(bugUrl="https://issues.apache.org/jira/browse/SOLR-12028")
|
||||
//2018-06-18 (commented) @BadApple(bugUrl="https://issues.apache.org/jira/browse/SOLR-12028")
|
||||
public void testCreateCollectionSwitchLegacyCloud() throws Exception {
|
||||
createAndTest("legacyTrue", true);
|
||||
createAndTest("legacyFalse", false);
|
||||
|
|
|
@ -65,7 +65,7 @@ public class MoveReplicaHDFSTest extends MoveReplicaTest {
|
|||
}
|
||||
|
||||
@Test
|
||||
@BadApple(bugUrl="https://issues.apache.org/jira/browse/SOLR-12028") // 21-May-2018
|
||||
//2018-06-18 (commented) @BadApple(bugUrl="https://issues.apache.org/jira/browse/SOLR-12028") // 21-May-2018
|
||||
public void testNormalFailedMove() throws Exception {
|
||||
inPlaceMove = false;
|
||||
testFailedMove();
|
||||
|
|
|
@ -55,7 +55,7 @@ public class ReplaceNodeNoTargetTest extends SolrCloudTestCase {
|
|||
|
||||
|
||||
@Test
|
||||
@BadApple(bugUrl="https://issues.apache.org/jira/browse/SOLR-12028")
|
||||
@LuceneTestCase.AwaitsFix(bugUrl = "https://issues.apache.org/jira/browse/SOLR-11067")
|
||||
public void test() throws Exception {
|
||||
cluster.waitForAllNodes(5000);
|
||||
String coll = "replacenodetest_coll_notarget";
|
||||
|
|
|
@ -22,6 +22,7 @@ import java.util.List;
|
|||
import java.util.concurrent.TimeUnit;
|
||||
|
||||
import org.apache.commons.collections.CollectionUtils;
|
||||
import org.apache.lucene.util.LuceneTestCase;
|
||||
import org.apache.solr.client.solrj.request.CollectionAdminRequest;
|
||||
import org.apache.solr.common.cloud.SolrZkClient;
|
||||
import org.apache.zookeeper.KeeperException;
|
||||
|
@ -46,6 +47,7 @@ public class RollingRestartTest extends AbstractFullDistribZkTestBase {
|
|||
}
|
||||
|
||||
@Test
|
||||
@LuceneTestCase.BadApple(bugUrl="https://issues.apache.org/jira/browse/SOLR-12028") // 2018-06-18
|
||||
public void test() throws Exception {
|
||||
waitForRecoveriesToFinish(false);
|
||||
|
||||
|
|
|
@ -21,7 +21,6 @@ import java.lang.invoke.MethodHandles;
|
|||
import java.nio.file.Path;
|
||||
import java.nio.file.Paths;
|
||||
import java.util.ArrayList;
|
||||
import java.util.Collections;
|
||||
import java.util.LinkedHashMap;
|
||||
import java.util.LinkedHashSet;
|
||||
import java.util.List;
|
||||
|
|
|
@ -87,7 +87,6 @@ public class TestCloudRecovery extends SolrCloudTestCase {
|
|||
}
|
||||
|
||||
@Test
|
||||
// Removed BadApple on 18-May-2018
|
||||
public void leaderRecoverFromLogOnStartupTest() throws Exception {
|
||||
AtomicInteger countReplayLog = new AtomicInteger(0);
|
||||
DirectUpdateHandler2.commitOnClose = false;
|
||||
|
|
|
@ -304,7 +304,7 @@ public class TestPullReplica extends SolrCloudTestCase {
|
|||
}
|
||||
|
||||
@Test
|
||||
@BadApple(bugUrl="https://issues.apache.org/jira/browse/SOLR-12028") // 21-May-2018
|
||||
//2018-06-18 (commented) @BadApple(bugUrl="https://issues.apache.org/jira/browse/SOLR-12028") // 21-May-2018
|
||||
public void testKillLeader() throws Exception {
|
||||
doTestNoLeader(false);
|
||||
}
|
||||
|
|
|
@ -120,7 +120,7 @@ public class TestSolrCloudWithKerberosAlt extends SolrCloudTestCase {
|
|||
}
|
||||
|
||||
@Test
|
||||
@BadApple(bugUrl="https://issues.apache.org/jira/browse/SOLR-12028") // 21-May-2018
|
||||
//2018-06-18 (commented) @BadApple(bugUrl="https://issues.apache.org/jira/browse/SOLR-12028") // 21-May-2018
|
||||
public void testBasics() throws Exception {
|
||||
testCollectionCreateSearchDelete();
|
||||
// sometimes run a second test e.g. to test collection create-delete-create scenario
|
||||
|
|
|
@ -415,7 +415,7 @@ public class ComputePlanActionTest extends SolrCloudTestCase {
|
|||
}
|
||||
|
||||
@Test
|
||||
@BadApple(bugUrl="https://issues.apache.org/jira/browse/SOLR-12028") // 09-Apr-2018
|
||||
//2018-06-18 (commented) @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,7 +56,7 @@ public class ScheduledTriggerTest extends SolrCloudTestCase {
|
|||
}
|
||||
|
||||
@Test
|
||||
@BadApple(bugUrl="https://issues.apache.org/jira/browse/SOLR-12028") // 09-Apr-2018
|
||||
//2018-06-18 (commented) @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();
|
||||
|
||||
|
|
|
@ -28,6 +28,7 @@ import java.util.concurrent.TimeUnit;
|
|||
|
||||
import com.codahale.metrics.MetricRegistry;
|
||||
import com.google.common.util.concurrent.AtomicDouble;
|
||||
import org.apache.lucene.util.LuceneTestCase;
|
||||
import org.apache.solr.client.solrj.cloud.NodeStateProvider;
|
||||
import org.apache.solr.client.solrj.cloud.autoscaling.ReplicaInfo;
|
||||
import org.apache.solr.client.solrj.cloud.SolrCloudManager;
|
||||
|
@ -84,6 +85,7 @@ public class SearchRateTriggerTest extends SolrCloudTestCase {
|
|||
}
|
||||
|
||||
@Test
|
||||
@LuceneTestCase.BadApple(bugUrl="https://issues.apache.org/jira/browse/SOLR-12028") // 2018-06-18
|
||||
public void testTrigger() throws Exception {
|
||||
JettySolrRunner targetNode = cluster.getJettySolrRunner(0);
|
||||
SolrZkClient zkClient = cluster.getSolrClient().getZkStateReader().getZkClient();
|
||||
|
|
|
@ -23,7 +23,7 @@ import org.apache.solr.client.solrj.cloud.DistribStateManager;
|
|||
/**
|
||||
*
|
||||
*/
|
||||
@LuceneTestCase.BadApple(bugUrl="https://issues.apache.org/jira/browse/SOLR-12028")
|
||||
@LuceneTestCase.BadApple(bugUrl="https://issues.apache.org/jira/browse/SOLR-12028") // 2018-02-26
|
||||
public class TestGenericDistributedQueue extends TestSimDistributedQueue {
|
||||
DistribStateManager stateManager = new SimDistribStateManager();
|
||||
|
||||
|
|
|
@ -155,6 +155,7 @@ public class TestLargeCluster extends SimSolrCloudTestCase {
|
|||
}
|
||||
|
||||
@Test
|
||||
@LuceneTestCase.BadApple(bugUrl="https://issues.apache.org/jira/browse/SOLR-12028") // 2018-06-18
|
||||
public void testBasic() throws Exception {
|
||||
SolrClient solrClient = cluster.simGetSolrClient();
|
||||
String setTriggerCommand = "{" +
|
||||
|
@ -371,6 +372,7 @@ public class TestLargeCluster extends SimSolrCloudTestCase {
|
|||
}
|
||||
|
||||
@Test
|
||||
@LuceneTestCase.BadApple(bugUrl="https://issues.apache.org/jira/browse/SOLR-12028") // 2018-06-18
|
||||
public void testNodeLost() throws Exception {
|
||||
doTestNodeLost(waitForSeconds, 5000, 0);
|
||||
}
|
||||
|
@ -584,7 +586,7 @@ public class TestLargeCluster extends SimSolrCloudTestCase {
|
|||
}
|
||||
|
||||
@Test
|
||||
//@BadApple(bugUrl = "https://issues.apache.org/jira/browse/SOLR-11714")
|
||||
@LuceneTestCase.BadApple(bugUrl="https://issues.apache.org/jira/browse/SOLR-12028") // 2018-06-18
|
||||
public void testSearchRate() throws Exception {
|
||||
SolrClient solrClient = cluster.simGetSolrClient();
|
||||
String collectionName = "testSearchRate";
|
||||
|
|
|
@ -32,6 +32,7 @@ import java.util.concurrent.atomic.AtomicLong;
|
|||
import java.util.concurrent.locks.ReentrantLock;
|
||||
|
||||
import com.google.common.util.concurrent.AtomicDouble;
|
||||
import org.apache.lucene.util.LuceneTestCase;
|
||||
import org.apache.solr.client.solrj.SolrClient;
|
||||
import org.apache.solr.client.solrj.SolrRequest;
|
||||
import org.apache.solr.client.solrj.cloud.autoscaling.AutoScalingConfig;
|
||||
|
@ -140,6 +141,7 @@ public class TestTriggerIntegration extends SimSolrCloudTestCase {
|
|||
}
|
||||
|
||||
@Test
|
||||
@LuceneTestCase.BadApple(bugUrl="https://issues.apache.org/jira/browse/SOLR-12028") // 2018-06-18
|
||||
public void testTriggerThrottling() throws Exception {
|
||||
// for this test we want to create two triggers so we must assert that the actions were created twice
|
||||
actionInitCalled = new CountDownLatch(2);
|
||||
|
@ -387,6 +389,7 @@ public class TestTriggerIntegration extends SimSolrCloudTestCase {
|
|||
}
|
||||
|
||||
@Test
|
||||
@LuceneTestCase.BadApple(bugUrl="https://issues.apache.org/jira/browse/SOLR-12028") // 2018-06-18
|
||||
public void testNodeAddedTrigger() throws Exception {
|
||||
SolrClient solrClient = cluster.simGetSolrClient();
|
||||
String setTriggerCommand = "{" +
|
||||
|
|
|
@ -97,7 +97,7 @@ public class StressHdfsTest extends BasicDistributedZkTest {
|
|||
}
|
||||
|
||||
@Test
|
||||
@BadApple(bugUrl="https://issues.apache.org/jira/browse/SOLR-12028") // 21-May-2018
|
||||
//2018-06-18 (commented) @BadApple(bugUrl="https://issues.apache.org/jira/browse/SOLR-12028") // 21-May-2018
|
||||
public void test() throws Exception {
|
||||
randomlyEnableAutoSoftCommit();
|
||||
|
||||
|
|
|
@ -260,7 +260,6 @@ public class AutoscalingHistoryHandlerTest extends SolrCloudTestCase {
|
|||
}
|
||||
|
||||
@Test
|
||||
//@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));
|
||||
|
|
|
@ -44,7 +44,7 @@ import org.junit.Assert;
|
|||
import org.junit.Before;
|
||||
import org.junit.Test;
|
||||
|
||||
|
||||
@LuceneTestCase.BadApple(bugUrl="https://issues.apache.org/jira/browse/SOLR-12028") // 2018-06-18
|
||||
public class MaxSizeAutoCommitTest extends SolrTestCaseJ4 {
|
||||
|
||||
// Given an ID, returns an XML string for an "add document" request
|
||||
|
|
Loading…
Reference in New Issue