-
Notifications
You must be signed in to change notification settings - Fork 25.7k
DataStreamStatsAction can get maxTimestamp from skippers #138158
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
DataStreamStatsAction can get maxTimestamp from skippers #138158
Conversation
|
Pinging @elastic/es-storage-engine (Team:StorageEngine) |
martijnvg
left a comment
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.
LGTM 👍
Should we also update ReadOnlyEngine#getRawFieldRange(...) to use doc value skippers?
Yes, but I want to do that separately as testing it will be a bit more involved. |
| : new DataStreamOptions.Template(DataStreamFailureStore.builder().enabled(true).buildTemplate()); | ||
| Template idxTemplate = new Template(null, new CompressedXContent(""" | ||
| Settings.Builder settingsBuilder = Settings.builder(); | ||
| if (randomBoolean()) { |
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.
Up to you, but I'd prefer to have two tests, one for logsdb and one not. I subscribe to the view (there was a discussion on Slack about this) that randomization in tests should be used for stuff you don't care about, whereas in this case we actually care about both cases, and it'd be better if we definitely found out right away if we broke it rather than only having a 50/50 chance.
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.
Fair point, I'll update.
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.
Thanks!
The
@timestampfield in logsdb no longer stores data in a points index,so we need to retrieve the max timestamp field form the docvalues skipper
instead.
Fixes #137208