Skip to content
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

[8.8] Fix NPE when indexing a document that just has been deleted in a tsdb index (#96461) #96476

Merged
merged 2 commits into from
Jun 1, 2023

Conversation

martijnvg
Copy link
Member

Backports the following commits to 8.8:

… index (elastic#96461)

Sometimes a segment only contains tombstone documents. In that case, loading min and max @timestamp field values can result into NPE. Because these documents don't have a @timestamp field.

This change fixes that by checking for the existence of the @timestamp field in the a segment's field infos.
@martijnvg martijnvg merged commit 6b9ba21 into elastic:8.8 Jun 1, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport >bug :StorageEngine/TSDB You know, for Metrics Team:Analytics Meta label for analytical engine team (ESQL/Aggs/Geo) v8.8.1
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants