This is an automated email from the ASF dual-hosted git repository. ishan pushed a commit to branch ishan/upgrade-to-lucene-10 in repository https://gitbox.apache.org/repos/asf/solr.git
commit 6fa6f3c61596b212e42fe9ff29b9513a16f91917 Author: Ishan Chattopadhyaya <[email protected]> AuthorDate: Thu Aug 7 19:04:02 2025 +0530 SOLR-17631: Fixing TestSnapshotCoreBackup, as checksum levels changed in Lucene 10 --- solr/core/src/test/org/apache/solr/handler/TestSnapshotCoreBackup.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/solr/core/src/test/org/apache/solr/handler/TestSnapshotCoreBackup.java b/solr/core/src/test/org/apache/solr/handler/TestSnapshotCoreBackup.java index 95afeb9db1d..74bae5f42c1 100644 --- a/solr/core/src/test/org/apache/solr/handler/TestSnapshotCoreBackup.java +++ b/solr/core/src/test/org/apache/solr/handler/TestSnapshotCoreBackup.java @@ -452,7 +452,8 @@ public class TestSnapshotCoreBackup extends SolrTestCaseJ4 { Files.exists(backup.resolve(expectedSegmentsFileName))); } try (Directory dir = FSDirectory.open(backup)) { - TestUtil.checkIndex(dir, 0, true, true, null); + // Lucene 10 changed CheckIndex levels from 0-3 to 1-3, so we use 1 (minimum level) + TestUtil.checkIndex(dir, 1, true, true, null); try (DirectoryReader r = DirectoryReader.open(dir)) { assertEquals("numDocs in " + backup, numDocs, r.numDocs()); if (null != expectedSegmentsFileName) {
