-
Notifications
You must be signed in to change notification settings - Fork 25k
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
[Transform] report last search time in transform stats #66718
[Transform] report last search time in transform stats #66718
Conversation
b90e697
to
a3da036
Compare
Pinging @elastic/ml-core (:ml/Transform) |
a3da036
to
b1bd39a
Compare
@@ -355,6 +357,8 @@ protected void onStart(long now, ActionListener<Boolean> listener) { | |||
})); | |||
} else { | |||
hasSourceChanged = true; | |||
context.setChangesLastSearchedAt(instantOfTrigger); | |||
context.setChangesLastDetectedAt(instantOfTrigger); |
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.
This changes behaviour for changed_last_detected_at
. The change seems correct but is it fixing another issue with that not getting updated properly?
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.
yes, the if
is "continuous" mode, the else
is "batch". I see no reason why we report changed_last_detected_at
(and changed_last_searched_at
) only for continuous but not for batch. This makes it more consistent.
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
b1bd39a
to
7d9510f
Compare
7d9510f
to
db46fe0
Compare
.../src/main/java/org/elasticsearch/client/transform/transforms/TransformCheckpointingInfo.java
Show resolved
Hide resolved
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
...est/java/org/elasticsearch/xpack/transform/integration/continuous/TransformContinuousIT.java
Show resolved
Hide resolved
b456f23
to
17854c8
Compare
adjusts the version after the backport of #66718 and re-enables BWC
transforms reports the the last time changes where detected with
changes_last_detected_at
, however that doesn't tell a user it searched for changes, this PR adds a fieldlast_search_time
to report when transform searched for changes the last time.fixes #66410
relates #66367
Notes
last_search_time
([Transform] refactor cat transform to show more useful information #66367)Review
the main changes are part of
bd59629
(#66718), the rest are style and test fixes