SOLR-12028: BadApple and AwaitsFix annotations usage

This commit is contained in:
Erick Erickson 2018-03-10 10:58:15 -08:00
parent 971bd26df6
commit f1f929b15a
9 changed files with 14 additions and 9 deletions

View File

@ -97,15 +97,11 @@ public class TestICUTokenizerCJK extends BaseTokenStreamTestCase {
}
/** blast some random strings through the analyzer */
//Commented out 27-Feb, leaving comment in in case errors come back
//@AwaitsFix(bugUrl = "https://issues.apache.org/jira/browse/LUCENE-5575")
public void testRandomStrings() throws Exception {
checkRandomData(random(), a, 10000*RANDOM_MULTIPLIER);
}
/** blast some random large strings through the analyzer */
//Commented out 27-Feb, leaving comment in in case errors come back
//@AwaitsFix(bugUrl = "https://issues.apache.org/jira/browse/LUCENE-5575")
public void testRandomHugeStrings() throws Exception {
Random random = random();
checkRandomData(random, a, 100*RANDOM_MULTIPLIER, 8192);

View File

@ -96,6 +96,7 @@ public class LIRRollingUpdatesTest extends SolrCloudTestCase {
}
@Test
@BadApple(bugUrl="https://issues.apache.org/jira/browse/SOLR-12028") //2018-03-10
public void testNewReplicaOldLeader() throws Exception {
String collection = "testNewReplicaOldLeader";
@ -159,6 +160,8 @@ public class LIRRollingUpdatesTest extends SolrCloudTestCase {
CollectionAdminRequest.deleteCollection(collection).process(cluster.getSolrClient());
}
@Test
@BadApple(bugUrl="https://issues.apache.org/jira/browse/SOLR-12028") //2018-03-10
public void testNewLeaderOldReplica() throws Exception {
// in case of new leader & old replica, new leader can still put old replica into LIR
@ -321,11 +324,13 @@ public class LIRRollingUpdatesTest extends SolrCloudTestCase {
}
@Test
@BadApple(bugUrl="https://issues.apache.org/jira/browse/SOLR-12028") //2018-03-10
public void testNewLeaderAndMixedReplicas() throws Exception {
testLeaderAndMixedReplicas(false);
}
@Test
@BadApple(bugUrl="https://issues.apache.org/jira/browse/SOLR-12028") //2018-03-10
public void testOldLeaderAndMixedReplicas() throws Exception {
testLeaderAndMixedReplicas(true);
}

View File

@ -58,6 +58,7 @@ public class MoveReplicaHDFSTest extends MoveReplicaTest {
}
@Test
@BadApple(bugUrl="https://issues.apache.org/jira/browse/SOLR-12028") //2018-03-10
public void testNormalMove() throws Exception {
inPlaceMove = false;
test();

View File

@ -283,8 +283,6 @@ public class TestSolrCloudWithDelegationTokens extends SolrTestCaseJ4 {
}
@Test
// Commented out 22-Feb-2018
//@AwaitsFix(bugUrl="https://issues.apache.org/jira/browse/HADOOP-14044")
public void testDelegationTokenCancelFail() throws Exception {
// cancel a bogus token
cancelDelegationToken("BOGUS", ErrorCode.NOT_FOUND.code, solrClientPrimary);

View File

@ -70,6 +70,7 @@ import org.apache.solr.util.TimeOut;
import org.apache.zookeeper.KeeperException;
import org.junit.AfterClass;
import org.junit.BeforeClass;
import org.junit.Test;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
@ -451,7 +452,9 @@ public class TestTlogReplica extends SolrCloudTestCase {
waitForState("Replica not added", collectionName, activeReplicaCount(0, 2, 0));
waitForNumDocsInAllActiveReplicas(2);
}
@Test
@BadApple(bugUrl="https://issues.apache.org/jira/browse/SOLR-12028") //2018-03-10
public void testOnlyLeaderIndexes() throws Exception {
createAndWaitForCollection(1, 0, 2, 0);

View File

@ -660,6 +660,7 @@ public class TestTriggerIntegration extends SimSolrCloudTestCase {
}
@Test
@BadApple(bugUrl="https://issues.apache.org/jira/browse/SOLR-12028") //2018-03-10
public void testEventFromRestoredState() throws Exception {
SolrClient solrClient = cluster.simGetSolrClient();
String setTriggerCommand = "{" +

View File

@ -19,6 +19,7 @@ package org.apache.solr.cloud.hdfs;
import java.io.IOException;
import org.apache.hadoop.hdfs.MiniDFSCluster;
import org.apache.lucene.util.LuceneTestCase;
import org.apache.lucene.util.LuceneTestCase.Slow;
import org.apache.solr.cloud.RestartWhileUpdatingTest;
import org.apache.solr.util.BadHdfsThreadsFilter;
@ -33,6 +34,7 @@ import com.carrotsearch.randomizedtesting.annotations.ThreadLeakFilters;
@ThreadLeakFilters(defaultFilters = true, filters = {
BadHdfsThreadsFilter.class // hdfs currently leaks thread(s)
})
@LuceneTestCase.BadApple(bugUrl="https://issues.apache.org/jira/browse/SOLR-12028") //2018-03-10
public class HdfsRestartWhileUpdatingTest extends RestartWhileUpdatingTest {
public HdfsRestartWhileUpdatingTest() throws Exception {

View File

@ -269,8 +269,6 @@ public class TestDelegationWithHadoopAuth extends SolrCloudTestCase {
}
@Test
// Commented out 22-Feb-2018
// @AwaitsFix(bugUrl="https://issues.apache.org/jira/browse/HADOOP-14044")
public void testDelegationTokenCancelFail() throws Exception {
// cancel a bogus token
cancelDelegationToken("BOGUS", ErrorCode.NOT_FOUND.code, primarySolrClient);

View File

@ -8014,6 +8014,7 @@ public class StreamExpressionTest extends SolrCloudTestCase {
@Test
@BadApple(bugUrl="https://issues.apache.org/jira/browse/SOLR-12028") //2018-03-10
public void testMultiVariateNormalDistribution() throws Exception {
String cexpr = "let(echo=true," +
" a=array(1,2,3,4,5,6,7)," +