-
Notifications
You must be signed in to change notification settings - Fork 24.9k
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
TSDB: Cleaner trigger for tsdb boundary check #81263
TSDB: Cleaner trigger for tsdb boundary check #81263
Conversation
This replaces the hard check for "are we in time series mode" with a check for whether we have declared a time range for the index. It makes me feel a little better not to have `if (mode == TIME_SERIES)` tests. I just think they make it harder to reason about what's going on. Instead, this code says "if there are settings declaring a time range for this index we should enforce that range".
Pinging @elastic/es-analytics-geo (Team:Analytics) |
@weizijun you might also want to have a look at this. It just makes me feel a little better than the other way. Not super important though. |
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.
LGTM. And I 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 👍
@weizijun I didn't get your comment. |
It's that validateTimestamp is a public method, is it to be private? |
👍 private is better, yeah. |
@elasticmachine update branch |
@elasticmachine update branch |
This replaces the hard check for "are we in time series mode" with a
check for whether we have declared a time range for the index. It makes
me feel a little better not to have
if (mode == TIME_SERIES)
tests. Ijust think they make it harder to reason about what's going on. Instead,
this code says "if there are settings declaring a time range for this
index we should enforce that range".