Skip to content
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

Merged

Conversation

droberts195
Copy link
Contributor

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 #45201

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
@elasticmachine
Copy link
Collaborator

Pinging @elastic/ml-core

droberts195 added a commit to droberts195/elasticsearch that referenced this pull request Aug 7, 2019
Mutes data frame BWC tests prior to backporting elastic#45276
Copy link

@hendrikmuhs hendrikmuhs left a 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);

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

Copy link
Contributor Author

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.

droberts195 added a commit that referenced this pull request Aug 7, 2019
Mutes data frame BWC tests prior to backporting #45276
@droberts195 droberts195 merged commit 65b5020 into elastic:master Aug 7, 2019
@droberts195 droberts195 deleted the combine_task_stats_and_indexer_stats branch August 7, 2019 15:40
droberts195 added a commit that referenced this pull request Aug 8, 2019
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
droberts195 added a commit that referenced this pull request Aug 8, 2019
This change adjusts the changes of #45276 to account
for the backport to the 7.x branch in #45324.
walterra added a commit to walterra/kibana that referenced this pull request Aug 9, 2019
* 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.
walterra added a commit to elastic/kibana that referenced this pull request Aug 9, 2019
* 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.
droberts195 added a commit that referenced this pull request Sep 24, 2019
…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]>
droberts195 added a commit to droberts195/elasticsearch that referenced this pull request Sep 24, 2019
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
droberts195 added a commit that referenced this pull request Sep 25, 2019
…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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[ML-DataFrame] Combine task_state and indexer_state in stats
4 participants