-
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
[ML-DataFrame] Combine task_state and indexer_state in _stats #45276
[ML-DataFrame] Combine task_state and indexer_state in _stats #45276
Conversation
This commit replaces task_state and indexer_state in the data frame _stats output with a single top level state that combines the two. It is defined as: - failed if what's currently reported as task_state is failed - stopped if there is no persistent task - Otherwise what's currently reported as indexer_state Closes elastic#45201
Pinging @elastic/ml-core |
Mutes data frame BWC tests prior to backporting elastic#45276
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, 1 comment
} else { | ||
|
||
// Note: indexer state CAN be null if the task state is stopped or failed | ||
assert(indexerState != null); |
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.
nit: the note and the assert look contradicting to me, indexerState should not be null, if there is no indexer it should be STOPPED
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.
I don't think they were contradicting, as the "if the task state is stopped or failed" bit refers to the other code branches.
But since the way it was phrased was confusing I changed it in 3f35a2b to only refer to what's expected at the comment location.
Mutes data frame BWC tests prior to backporting #45276
This commit replaces task_state and indexer_state in the data frame _stats output with a single top level state that combines the two. It is defined as: - failed if what's currently reported as task_state is failed - stopped if there is no persistent task - Otherwise what's currently reported as indexer_state Backport of #45276
* Reflects the changes to transform stats on the ES side in elastic/elasticsearch#45276 * Updated mock __mocks__/data_frame_transform_list_row.json to reflect the new stats structure * Previously there were stats attributes task_state and indexer_state, now there is only state. * Renamed DATA_FRAME_TASK_STATE to DATA_FRAME_TRANSFORM_STATE . * Extended possible states to aborting, failed, indexing, started, stopped, stopping. * A stopped batch transform's stats no longer returns the progress until it was stopped. Instead of falling back and showing 0% with an empty progress bar, nothing will be shown. If the job is continued and returns progress again, the progress bar will also be shown again. * The expanded row's details tab now exposes hard-coded stats/state attributes instead of inferring attributes dynamically from objects. This was done so we can do custom formatting for date fields for example.
* Reflects the changes to transform stats on the ES side in elastic/elasticsearch#45276 * Updated mock __mocks__/data_frame_transform_list_row.json to reflect the new stats structure * Previously there were stats attributes task_state and indexer_state, now there is only state. * Renamed DATA_FRAME_TASK_STATE to DATA_FRAME_TRANSFORM_STATE . * Extended possible states to aborting, failed, indexing, started, stopped, stopping. * A stopped batch transform's stats no longer returns the progress until it was stopped. Instead of falling back and showing 0% with an empty progress bar, nothing will be shown. If the job is continued and returns progress again, the progress bar will also be shown again. * The expanded row's details tab now exposes hard-coded stats/state attributes instead of inferring attributes dynamically from objects. This was done so we can do custom formatting for date fields for example.
…cs (#46821) The PRs that made these changes are: - #44350 - #45276 - #45856 Co-Authored-By: István Zoltán Szabó <[email protected]> Co-Authored-By: Lisa Cawley <[email protected]>
The PRs that made these changes are: - elastic#44350 - elastic#45276 - elastic#45856 Co-Authored-By: István Zoltán Szabó <[email protected]> Co-Authored-By: Lisa Cawley <[email protected]> Backport of elastic#46821
…cs (#47034) The PRs that made these changes are: - #44350 - #45276 - #45856 Co-Authored-By: István Zoltán Szabó <[email protected]> Co-Authored-By: Lisa Cawley <[email protected]> Backport of #46821
The PRs that made these changes are: - elastic/elasticsearch#44350 - elastic/elasticsearch#45276 - elastic/elasticsearch#45856
This commit replaces
task_state
andindexer_state
in thedata frame
_stats
output with a single top levelstate
that combines the two. It is defined as:
failed
if what's currently reported astask_state
isfailed
stopped
if there is no persistent taskindexer_state
Closes #45201