Skip to content

Comments

[8.19] Use local segment fieldInfos to lookup tsdb merge stats (#132597)#132613

Merged
elasticsearchmachine merged 1 commit intoelastic:8.19from
dnhatn:backport/8.19/pr-132597
Aug 9, 2025
Merged

[8.19] Use local segment fieldInfos to lookup tsdb merge stats (#132597)#132613
elasticsearchmachine merged 1 commit intoelastic:8.19from
dnhatn:backport/8.19/pr-132597

Conversation

@dnhatn
Copy link
Member

@dnhatn dnhatn commented Aug 9, 2025

Backport

This will backport the following commits from main to 8.19:

Questions ?

Please refer to the Backport tool documentation

Merging shrink TSDB or LogsDB indices can fail in versions 8.19 or 9.1+.
When shrinking an index to a single shard, we use addIndexes, which can
add Lucene segments directly. In this case, FieldInfos can differ
between shards and the new segment. We should use the FieldInfos from
each segment to retrieve the merge stats, instead of the FieldInfos of
the merged segment.

Relates elastic#125403
@dnhatn dnhatn added the backport label Aug 9, 2025
@dnhatn dnhatn added the auto-merge-without-approval Automatically merge pull request when CI checks pass (NB doesn't wait for reviews!) label Aug 9, 2025
@elasticsearchmachine elasticsearchmachine merged commit a598d0d into elastic:8.19 Aug 9, 2025
22 checks passed
@dnhatn dnhatn deleted the backport/8.19/pr-132597 branch August 9, 2025 03:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

auto-merge-without-approval Automatically merge pull request when CI checks pass (NB doesn't wait for reviews!) backport v8.19.2

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants