You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@solr.apache.org by "chatman (via GitHub)" <gi...@apache.org> on 2025/09/15 11:01:18 UTC
[PR] SOLR-17917: Lucene 10.3 upgrade [solr]
chatman opened a new pull request, #3659:
URL: https://github.com/apache/solr/pull/3659
* Updated imports from Lucene101Codec to Lucene103Codec
* Changed IOContext instantiation to use static factory methods
* Updated searchNearestVectors method signatures to use AcceptDocs instead of Bits
* Fixed TestMergePolicyConfig to expect segmentsPerTier as 8 (new default)
* Updated LuceneMatchVersion from 10.2 to 10.3 in test schemas
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@solr.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@solr.apache.org
For additional commands, e-mail: issues-help@solr.apache.org
Re: [PR] SOLR-17917: Lucene 10.3 upgrade [solr]
Posted by "cpoerschke (via GitHub)" <gi...@apache.org>.
cpoerschke commented on code in PR #3659:
URL: https://github.com/apache/solr/pull/3659#discussion_r2353018773
##########
solr/core/src/test/org/apache/solr/core/TestMergePolicyConfig.java:
##########
@@ -88,7 +88,7 @@ public void testLegacyMergePolicyConfig() throws Exception {
TieredMergePolicy tieredMP = assertAndCast(TieredMergePolicy.class, iwc.getMergePolicy());
assertEquals(10, tieredMP.getMaxMergeAtOnce());
- assertEquals(10.0D, tieredMP.getSegmentsPerTier(), 0.0D);
+ assertEquals(8.0D, tieredMP.getSegmentsPerTier(), 0.0D);
Review Comment:
https://github.com/apache/solr/pull/3659/commits/112844905d32d8c87412c67f6b700ef6c2e4f1b3 for that.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@solr.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@solr.apache.org
For additional commands, e-mail: issues-help@solr.apache.org
Re: [PR] SOLR-17917: Lucene 10.3 upgrade [solr]
Posted by "cpoerschke (via GitHub)" <gi...@apache.org>.
cpoerschke commented on code in PR #3659:
URL: https://github.com/apache/solr/pull/3659#discussion_r2353003999
##########
gradle/libs.versions.toml:
##########
@@ -37,7 +37,7 @@ apache-httpcomponents-httpcore = "4.4.16"
apache-httpcomponents-httpmime = "4.5.14"
apache-kafka = "3.9.0"
apache-log4j = "2.21.0"
-apache-lucene = "10.2.1"
+apache-lucene = "10.3.0"
Review Comment:
https://github.com/apache/solr/pull/3659/commits/204f4edeb28622869a5a9c1b687568e96f98de5e for this.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@solr.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@solr.apache.org
For additional commands, e-mail: issues-help@solr.apache.org
Re: [PR] SOLR-17917: Lucene 10.3 upgrade [solr]
Posted by "chatman (via GitHub)" <gi...@apache.org>.
chatman commented on PR #3659:
URL: https://github.com/apache/solr/pull/3659#issuecomment-3386848632
I ran the tests and precommit locally and it works (on a fresh machine).
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@solr.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@solr.apache.org
For additional commands, e-mail: issues-help@solr.apache.org
Re: [PR] SOLR-17917: Lucene 10.3 upgrade [solr]
Posted by "cpoerschke (via GitHub)" <gi...@apache.org>.
cpoerschke commented on code in PR #3659:
URL: https://github.com/apache/solr/pull/3659#discussion_r2353005875
##########
solr/core/src/test/org/apache/solr/search/SolrIndexSearcherTest.java:
##########
@@ -422,7 +422,7 @@ public void testMinExactWithPostFilterThatChangesScoreMode() throws Exception {
h.getCore()
.withSearcher(
searcher -> {
- QueryCommand cmd = createBasicQueryCommand(1, 1, "field4_t", "0");
+ QueryCommand cmd = createBasicQueryCommand(NUM_DOCS, 1, "field4_t", "0");
Review Comment:
https://github.com/apache/solr/pull/3659/commits/ad89c04232da73232d2fbf825c032912fba48dd2 to try to not change the test.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@solr.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@solr.apache.org
For additional commands, e-mail: issues-help@solr.apache.org
Re: [PR] SOLR-17917: Lucene 10.3 upgrade [solr]
Posted by "cpoerschke (via GitHub)" <gi...@apache.org>.
cpoerschke commented on PR #3659:
URL: https://github.com/apache/solr/pull/3659#issuecomment-3292300880
> * Updated imports from Lucene101Codec to Lucene103Codec
> * Changed IOContext instantiation to use static factory methods
> * Updated searchNearestVectors method signatures to use AcceptDocs instead of Bits
> * Fixed TestMergePolicyConfig to expect segmentsPerTier as 8 (new default)
> * Updated LuceneMatchVersion from 10.2 to 10.3 in test schemas
Thanks for including these notes!
96 / 96 files viewed
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@solr.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@solr.apache.org
For additional commands, e-mail: issues-help@solr.apache.org
Re: [PR] SOLR-17917: Lucene 10.3 upgrade [solr]
Posted by "cpoerschke (via GitHub)" <gi...@apache.org>.
cpoerschke commented on code in PR #3659:
URL: https://github.com/apache/solr/pull/3659#discussion_r2349087909
##########
solr/core/src/test/org/apache/solr/search/SolrIndexSearcherTest.java:
##########
@@ -422,7 +422,7 @@ public void testMinExactWithPostFilterThatChangesScoreMode() throws Exception {
h.getCore()
.withSearcher(
searcher -> {
- QueryCommand cmd = createBasicQueryCommand(1, 1, "field4_t", "0");
+ QueryCommand cmd = createBasicQueryCommand(NUM_DOCS, 1, "field4_t", "0");
Review Comment:
note to self: would like to understand more about this
```suggestion
QueryCommand cmd = createBasicQueryCommand(1, 1, "field4_t", "0");
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@solr.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@solr.apache.org
For additional commands, e-mail: issues-help@solr.apache.org
Re: [PR] SOLR-17917: Lucene 10.3 upgrade [solr]
Posted by "iamsanjay (via GitHub)" <gi...@apache.org>.
iamsanjay commented on PR #3659:
URL: https://github.com/apache/solr/pull/3659#issuecomment-3456758188
Might be related.
https://ci-builds.apache.org/job/Solr/job/Solr-Test-main/12470/
ERROR: The following test(s) have failed:
- org.apache.solr.core.TestCodecSupport.testMixedCompressionMode (:solr:core)
Test history: https://develocity.apache.org/scans/tests?search.rootProjectNames=solr-root&tests.container=org.apache.solr.core.TestCodecSupport&tests.test=testMixedCompressionMode http://fucit.org/solr-jenkins-reports/history-trend-of-recent-failures.html#series/org.apache.solr.core.TestCodecSupport.testMixedCompressionMode
Test output: /home/jenkins/jenkins-agent/workspace/Solr/Solr-Test-main/solr/core/build/test-results/test/outputs/OUTPUT-org.apache.solr.core.TestCodecSupport.txt
Reproduce with: ./gradlew :solr:core:test --tests "org.apache.solr.core.TestCodecSupport.testMixedCompressionMode" -Ptests.haltonfailure=false "-Ptests.jvmargs=-XX:TieredStopAtLevel=1 -XX:+UseParallelGC -XX:ActiveProcessorCount=1 -XX:ReservedCodeCacheSize=120m" -Ptests.seed=3CC809EDEEB54E6A -Ptests.multiplier=2 -Ptests.useSecurityManager=true -Ptests.badapples=false -Ptests.file.encoding=ISO-8859-1
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@solr.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@solr.apache.org
For additional commands, e-mail: issues-help@solr.apache.org
Re: [PR] SOLR-17917: Lucene 10.3 upgrade [solr]
Posted by "cpoerschke (via GitHub)" <gi...@apache.org>.
cpoerschke commented on code in PR #3659:
URL: https://github.com/apache/solr/pull/3659#discussion_r2353004981
##########
META-INF/services/org.apache.lucene.codecs.Codec:
##########
@@ -0,0 +1,16 @@
+# Licensed to the Apache Software Foundation (ASF) under one or more
+# contributor license agreements. See the NOTICE file distributed with
+# this work for additional information regarding copyright ownership.
+# The ASF licenses this file to You under the Apache License, Version 2.0
+# (the "License"); you may not use this file except in compliance with
+# the License. You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
+org.apache.lucene.codecs.simpletext.SimpleTextCodec
Review Comment:
https://github.com/apache/solr/pull/3659/commits/3e9c0bed29f4d5ed5781f7361d9e7125d0e391bd to remove it.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@solr.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@solr.apache.org
For additional commands, e-mail: issues-help@solr.apache.org
Re: [PR] SOLR-17917: Lucene 10.3 upgrade [solr]
Posted by "chatman (via GitHub)" <gi...@apache.org>.
chatman commented on PR #3659:
URL: https://github.com/apache/solr/pull/3659#issuecomment-3293692043
Thank you for your review, @cpoerschke. I don't think I'll be able to see through this issue/PR to completion as I'll be out on vacation shortly. Would you like to take over, please?
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@solr.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@solr.apache.org
For additional commands, e-mail: issues-help@solr.apache.org
Re: [PR] SOLR-17917: Lucene 10.3 upgrade [solr]
Posted by "cpoerschke (via GitHub)" <gi...@apache.org>.
cpoerschke commented on code in PR #3659:
URL: https://github.com/apache/solr/pull/3659#discussion_r2349062104
##########
solr/core/src/test/org/apache/solr/core/TestMergePolicyConfig.java:
##########
@@ -88,7 +88,7 @@ public void testLegacyMergePolicyConfig() throws Exception {
TieredMergePolicy tieredMP = assertAndCast(TieredMergePolicy.class, iwc.getMergePolicy());
assertEquals(10, tieredMP.getMaxMergeAtOnce());
- assertEquals(10.0D, tieredMP.getSegmentsPerTier(), 0.0D);
+ assertEquals(8.0D, tieredMP.getSegmentsPerTier(), 0.0D);
Review Comment:
https://github.com/apache/lucene/pull/14823 - wondering if this is worth mentioning in the upgrade notes so that anyone wishing to retain the existing value can go and configure it.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@solr.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@solr.apache.org
For additional commands, e-mail: issues-help@solr.apache.org
Re: [PR] SOLR-17917: Lucene 10.3 upgrade [solr]
Posted by "cpoerschke (via GitHub)" <gi...@apache.org>.
cpoerschke commented on code in PR #3659:
URL: https://github.com/apache/solr/pull/3659#discussion_r2349089542
##########
META-INF/services/org.apache.lucene.codecs.Codec:
##########
@@ -0,0 +1,16 @@
+# Licensed to the Apache Software Foundation (ASF) under one or more
+# contributor license agreements. See the NOTICE file distributed with
+# this work for additional information regarding copyright ownership.
+# The ASF licenses this file to You under the Apache License, Version 2.0
+# (the "License"); you may not use this file except in compliance with
+# the License. You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
+org.apache.lucene.codecs.simpletext.SimpleTextCodec
Review Comment:
Perhaps unintended file addition?
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@solr.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@solr.apache.org
For additional commands, e-mail: issues-help@solr.apache.org
Re: [PR] SOLR-17917: Lucene 10.3 upgrade [solr]
Posted by "cpoerschke (via GitHub)" <gi...@apache.org>.
cpoerschke commented on code in PR #3659:
URL: https://github.com/apache/solr/pull/3659#discussion_r2349079928
##########
gradle/libs.versions.toml:
##########
@@ -37,7 +37,7 @@ apache-httpcomponents-httpcore = "4.4.16"
apache-httpcomponents-httpmime = "4.5.14"
apache-kafka = "3.9.0"
apache-log4j = "2.21.0"
-apache-lucene = "10.2.1"
+apache-lucene = "10.3.0"
Review Comment:
Looks like `solr/CHANGES.txt` approximately line 165 references 10.2.1 precisely rather than 10.x approximately i.e. suggest to update there too.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@solr.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@solr.apache.org
For additional commands, e-mail: issues-help@solr.apache.org
Re: [PR] SOLR-17917: Lucene 10.3 upgrade [solr]
Posted by "chatman (via GitHub)" <gi...@apache.org>.
chatman merged PR #3659:
URL: https://github.com/apache/solr/pull/3659
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@solr.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@solr.apache.org
For additional commands, e-mail: issues-help@solr.apache.org