-
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
Should model snapshot timestamps be changed to model time? #56076
Comments
Pinging @elastic/ml-core (:ml) |
Lines 335 to 336 in 7c5c912
We do actually have We should use As for tidying up for the future, one possibility would be to introduce the new |
Thanks for pointing this out.
The bug emerged because I thought
+1
|
While looking at #52150 and #51061 I noticed that model snapshot timestamps are set using wall clock time, not model time. All other documents in the ML results indices use the
timestamp
field to store model time.This doesn't matter very much for jobs that are genuinely running in real-time. However, it makes integration testing hard, and means retention of model snapshots will still not necessarily be intuitive for jobs that are stopped for a long period of time and then restarted.
I also wonder about implications for the new annotations functionality for model snapshots.
It would have been better if we'd made
model_snapshot
documents usetimestamp
for model time and another field, saycreate_time
, for the wall clock time of creation. (Similar to howmodel_size_stats
usestimestamp
andlog_time
.) But given where we are we need to decide if making the change now will cause too much complexity in the BWC. And if we do change, how will we migrate from where we are now to the new format without breaking model snapshot retention?The text was updated successfully, but these errors were encountered: