Apache Lucene open-source search software
SOLR-11713: Fixed CdcrUpdateLogTest.testSubReader() failure which was a test bug
Varun Thacker2ed0f1b68e1d
diff --git a/solr/CHANGES.txt b/solr/CHANGES.txtindex e02e1cf3728..b20c589c91c 100644--- a/solr/CHANGES.txt+++ b/solr/CHANGES.txt@@ -223,6 +223,8 @@ Other Changes* SOLR-11291: Factor out abstract metrics/SolrCore[Container]Reporter classes.(Omar Abdelnabi, Christine Poerschke)+* SOLR-11713: Fixed CdcrUpdateLogTest.testSubReader() failure which was a test bug (Varun Thacker, Amrit Sarkar)+================== 7.1.0 ==================Consult the LUCENE_CHANGES.txt file for additional, low level, changes in this release.diff --git a/solr/core/src/test/org/apache/solr/update/CdcrUpdateLogTest.java b/solr/core/src/test/org/apache/solr/update/CdcrUpdateLogTest.javaindex b7409d10e45..002cfa5023f 100644--- a/solr/core/src/test/org/apache/solr/update/CdcrUpdateLogTest.java+++ b/solr/core/src/test/org/apache/solr/update/CdcrUpdateLogTest.java@@ -580,8 +580,8 @@ public class CdcrUpdateLogTest extends SolrTestCaseJ4 {// After fast forward, the parent reader should be position on the doc15List o = (List) reader.next();assertNotNull(o);- assertTrue(o.get(2) instanceof SolrInputDocument);- assertEquals("15", ((SolrInputDocument) o.get(2)).getFieldValue("id"));+ assertTrue("Expected SolrInputDocument but got" + o.toString() ,o.get(3) instanceof SolrInputDocument);+ assertEquals("15", ((SolrInputDocument) o.get(3)).getFieldValue("id"));// Finish to read the second tlog, and start to read the third onefor (int i = 0; i < 6; i++) {