-
Notifications
You must be signed in to change notification settings - Fork 25.2k
Upgrade to Lucene 10 #114741
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Upgrade to Lucene 10 #114741
Conversation
This temporarily gets us past missing codec that we attempt to load at node startup, even if we don't use it.
Conflicts: build-tools-internal/version.properties modules/analysis-common/src/test/java/org/elasticsearch/analysis/common/EdgeNGramTokenizerTests.java modules/analysis-common/src/test/java/org/elasticsearch/analysis/common/SynonymsAnalysisTests.java modules/reindex/src/internalClusterTest/java/org/elasticsearch/migration/MultiFeatureMigrationIT.java plugins/analysis-phonetic/src/test/java/org/elasticsearch/plugin/analysis/phonetic/AnalysisPhoneticFactoryTests.java qa/rolling-upgrade-legacy/src/test/java/org/elasticsearch/upgrades/RecoveryIT.java server/src/internalClusterTest/java/org/elasticsearch/repositories/IndexSnapshotsServiceIT.java server/src/test/java/org/elasticsearch/action/admin/cluster/stats/VersionStatsTests.java server/src/test/java/org/elasticsearch/cluster/metadata/MetadataCreateIndexServiceTests.java server/src/test/java/org/elasticsearch/cluster/metadata/MetadataTests.java server/src/test/java/org/elasticsearch/index/IndexVersionTests.java server/src/test/java/org/elasticsearch/index/engine/InternalEngineTests.java server/src/test/java/org/elasticsearch/index/mapper/DateFieldMapperTests.java server/src/test/java/org/elasticsearch/index/mapper/DynamicTemplatesTests.java server/src/test/java/org/elasticsearch/index/mapper/FieldNamesFieldMapperTests.java server/src/test/java/org/elasticsearch/index/mapper/ParametrizedMapperTests.java server/src/test/java/org/elasticsearch/index/mapper/vectors/BinaryDenseVectorScriptDocValuesTests.java server/src/test/java/org/elasticsearch/index/similarity/SimilarityServiceTests.java server/src/test/java/org/elasticsearch/indices/analysis/AnalysisModuleTests.java server/src/test/java/org/elasticsearch/script/VectorScoreScriptUtilsTests.java server/src/test/java/org/elasticsearch/script/field/vectors/DenseVectorTests.java test/framework/src/main/java/org/elasticsearch/index/mapper/MetadataMapperTestCase.java test/framework/src/main/java/org/elasticsearch/snapshots/AbstractSnapshotIntegTestCase.java x-pack/plugin/deprecation/src/test/java/org/elasticsearch/xpack/deprecation/IndexDeprecationChecksTests.java x-pack/plugin/spatial/src/test/java/org/elasticsearch/xpack/spatial/index/mapper/ShapeFieldMapperTests.java x-pack/plugin/spatial/src/test/java/org/elasticsearch/xpack/spatial/index/query/LegacyGeoShapeWithDocValuesQueryTests.java
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I've done a final pass (non-test code only), left a few notes where I am unsure but nothing really sticks out. LGTM
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks fine. 🍺🚀
run elasticsearch-ci/part-3-windows |
run elasticsearch-ci/part-1-windows |
run elasticsearch-ci/part-2-windows |
run elasticsearch-ci/part-3-windows |
run elasticsearch-ci/part-4-windows |
The checkstyle errors from windows builds are present in main too, and are being fixed by #115185 . |
Windows tests failed with the following which is unrelated to the changes made in this PR:
The checkstyle errors on kql are also present in main, like I mentioned above. |
The most relevant ES changes that upgrading to Lucene 10 requires are: - use the appropriate IOContext - Scorer / ScorerSupplier breaking changes - Regex automaton are no longer determinized by default - minimize moved to test classes - introduce Elasticsearch900Codec - adjust slicing code according to the added support for intra-segment concurrency - disable intra-segment concurrency in tests - adjust accessor methods for many Lucene classes that became a record - adapt to breaking changes in the analysis area Co-authored-by: Christoph Büscher <[email protected]> Co-authored-by: Mayya Sharipova <[email protected]> Co-authored-by: ChrisHegarty <[email protected]> Co-authored-by: Brian Seeders <[email protected]> Co-authored-by: Armin Braun <[email protected]> Co-authored-by: Panagiotis Bailis <[email protected]> Co-authored-by: Benjamin Trent <[email protected]>
The most relevant ES changes that upgrading to Lucene 10 requires are: - use the appropriate IOContext - Scorer / ScorerSupplier breaking changes - Regex automaton are no longer determinized by default - minimize moved to test classes - introduce Elasticsearch900Codec - adjust slicing code according to the added support for intra-segment concurrency - disable intra-segment concurrency in tests - adjust accessor methods for many Lucene classes that became a record - adapt to breaking changes in the analysis area Co-authored-by: Christoph Büscher <[email protected]> Co-authored-by: Mayya Sharipova <[email protected]> Co-authored-by: ChrisHegarty <[email protected]> Co-authored-by: Brian Seeders <[email protected]> Co-authored-by: Armin Braun <[email protected]> Co-authored-by: Panagiotis Bailis <[email protected]> Co-authored-by: Benjamin Trent <[email protected]>
No description provided.