mirror of https://github.com/apache/lucene.git
SOLR-5980: Add a test.
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1587149 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
a4133ca6c2
commit
3800409581
|
@ -214,11 +214,17 @@ public class SyncSliceTest extends AbstractFullDistribZkTestBase {
|
|||
|
||||
// shard should be inconsistent
|
||||
shardFailMessage = waitTillInconsistent();
|
||||
|
||||
assertNotNull(
|
||||
"Test Setup Failure: shard1 should have just been set up to be inconsistent - but it's still consistent. Leader:"
|
||||
+ leaderJetty.url + " Dead Guy:" + deadJetty.url + "skip list:" + skipServers, shardFailMessage);
|
||||
|
||||
// good place to test compareResults
|
||||
boolean shouldFail = compareResults(
|
||||
controlClient.query(new SolrQuery("*:*")).getResults().getNumFound(),
|
||||
cloudClient.query(new SolrQuery("*:*")).getResults().getNumFound());
|
||||
assertTrue("A test that compareResults is working correctly failed",
|
||||
shouldFail);
|
||||
|
||||
jetties = new HashSet<>();
|
||||
jetties.addAll(shardToJetty.get("shard1"));
|
||||
jetties.remove(leaderJetty);
|
||||
|
|
Loading…
Reference in New Issue