Skip to content

Minor-Fixes Support 7x segments as archive in 8x / 9x #125666

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

Conversation

drempapis
Copy link
Contributor

Minor post-merge fixes of this work #119503 (review)

@drempapis drempapis added v9.0.0 v9.1.0 >bug auto-backport Automatically create backport pull requests when merged Team:Search Foundations Meta label for the Search Foundations team in Elasticsearch :Search Foundations/Search Catch all for Search Foundations labels Mar 26, 2025
@drempapis drempapis self-assigned this Mar 26, 2025
@drempapis drempapis requested a review from javanna March 26, 2025 13:37
@elasticsearchmachine
Copy link
Collaborator

Hi @drempapis, I've created a changelog YAML for you.

@elasticsearchmachine
Copy link
Collaborator

Pinging @elastic/es-search-foundations (Team:Search Foundations)

Copy link
Member

@javanna javanna left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

two minors, LGTM otherwise

// This code has been introduced to process IndexInput created with Lucene86Codec+. This is not necessary
// in the read-only version for older formats.
// The pre-8.6 code does not read the following fields that its standard Lucene counterpart does. After experimenting with the
// code, we got to the assumption that these are the last fields being read, which are not needed in the metadata-only reader, and
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

replace assumption with conclusion? :)

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done ty!

// as some bytes are available to read.
//
// The extra reads have been introduced to process IndexInput created with Lucene86Codec+, where a new BKD format has been
// introduced. It seems that we have stricter checks around the header and footer starting from the 86 formats hence we do need to
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Remove "it seems"?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done!

@drempapis drempapis merged commit 6a9d765 into elastic:main Mar 27, 2025
17 checks passed
@drempapis drempapis deleted the 117042_Support_7x_segments_as_archive_in_8x_minor_fixes branch March 27, 2025 14:28
@elasticsearchmachine
Copy link
Collaborator

💚 Backport successful

Status Branch Result
9.0

drempapis added a commit to drempapis/elasticsearch that referenced this pull request Mar 27, 2025
Minor fixes to support 7x segments as archive in 8x / 9x
elasticsearchmachine pushed a commit that referenced this pull request Mar 27, 2025
)

Minor fixes to support 7x segments as archive in 8x / 9x
omricohenn pushed a commit to omricohenn/elasticsearch that referenced this pull request Mar 28, 2025
Minor fixes to support 7x segments as archive in 8x / 9x
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
auto-backport Automatically create backport pull requests when merged >bug :Search Foundations/Search Catch all for Search Foundations Team:Search Foundations Meta label for the Search Foundations team in Elasticsearch v9.0.0 v9.1.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants