SOLR-13454: Investigate ReindexCollectionTest failures. I missed a place where I should have called the bandaid code

This commit is contained in:
Erick Erickson 2019-05-10 13:56:04 -07:00
parent 6069ef6ca6
commit 0aaf543208
2 changed files with 4 additions and 1 deletions

View File

@ -385,6 +385,9 @@ public class ReindexCollectionTest extends SolrCloudTestCase {
solrClient.commit(collection);
// verify the docs exist
QueryResponse rsp = solrClient.query(collection, params(CommonParams.Q, "*:*"));
SolrTestCaseJ4.Solr11035BandAid(solrClient, collection, "id", NUM_DOCS, "*:*",
"ReindexCollectionTest.indexDocs", true);
assertEquals("num docs", NUM_DOCS, rsp.getResults().getNumFound());
}

View File

@ -3083,7 +3083,7 @@ public abstract class SolrTestCaseJ4 extends SolrTestCase {
log.error("Dumping response" + rsp.toString());
assertEquals("Solr11035BandAid failed, counts differ after updates:", found, expectedDocCount);
} else if (failAnyway) {
fail("failAnyway == true, would have successfully repaired the collection: '" + collection
fail("Solr11035BandAid failAnyway == true, would have successfully repaired the collection: '" + collection
+ "' extra info: '" + tag + "'");
}
}