SOLR-7118: Use the right schema fields to avoid spurious failures and other misc fixes

git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1660313 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Shalin Shekhar Mangar 2015-02-17 08:18:51 +00:00
parent 40a4330b14
commit f89cab00d1
3 changed files with 8 additions and 6 deletions

View File

@ -110,7 +110,9 @@ public class ChaosMonkeyNothingIsSafeTest extends AbstractFullDistribZkTestBase
int numShards = Integer.parseInt(System.getProperty("solr.tests.cloud.cm.shardcount", "-1")); int numShards = Integer.parseInt(System.getProperty("solr.tests.cloud.cm.shardcount", "-1"));
if (numShards == -1) { if (numShards == -1) {
numShards = sliceCount + random().nextInt(TEST_NIGHTLY ? 12 : 2); // we make sure that there's at least one shard with more than one replica
// so that the ChaosMonkey has something to kill
numShards = sliceCount + random().nextInt(TEST_NIGHTLY ? 12 : 2) + 1;
} }
fixShardCount(numShards); fixShardCount(numShards);
} }
@ -358,8 +360,8 @@ public class ChaosMonkeyNothingIsSafeTest extends AbstractFullDistribZkTestBase
} }
} }
System.err.println("FT added docs:" + numAdds + " with " + fails + " fails" + " deletes:" + numDeletes); log.info("FT added docs:" + numAdds + " with " + fails + " fails" + " deletes:" + numDeletes);
} }
private void changeUrlOnError(Exception e) { private void changeUrlOnError(Exception e) {

View File

@ -1428,7 +1428,7 @@ public abstract class AbstractFullDistribZkTestBase extends AbstractDistribZkTes
} }
} }
System.err.println("num searches done:" + numSearches + " with " + queryFails + " fails"); log.info("num searches done:" + numSearches + " with " + queryFails + " fails");
} }
@Override @Override

View File

@ -29,8 +29,8 @@ import org.apache.solr.common.SolrInputDocument;
*/ */
public class StopableIndexingThread extends AbstractFullDistribZkTestBase.StopableThread { public class StopableIndexingThread extends AbstractFullDistribZkTestBase.StopableThread {
private static String t1 = "a_t"; static String t1 = "a_t";
private static String i1 = "a_i"; static String i1 = "a_i";
private volatile boolean stop = false; private volatile boolean stop = false;
protected final String id; protected final String id;
protected final List<String> deletes = new ArrayList<>(); protected final List<String> deletes = new ArrayList<>();