Skip to content

Conversation

@benwtrent
Copy link
Member

Progress is now reset on every new checkpoint.

Some refactoring was necessary so that the changed buckets could be determined BEFORE we reset the progress statistics.

@elasticmachine
Copy link
Collaborator

Pinging @elastic/ml-core

protected void onFinish(ActionListener<Void> listener) {
// reset the page size, so we do not memorize a low page size forever, the pagesize will be re-calculated on start
pageSize = 0;
pageSize = pivot.getInitialPageSize();

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I find it more logical to re-calc it at start (line 118). It doesn't matter right now but maybe in future the page size calculation depends on a setting or entails some more other data dependent calculation.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

so the comment "the pagesize will be re-calculated on start" is not true anymore after this change

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

@benwtrent
Copy link
Member Author

run elasticsearch-ci/1

1 similar comment
@benwtrent
Copy link
Member Author

run elasticsearch-ci/1

@benwtrent
Copy link
Member Author

@elasticmachine update branch

@hendrikmuhs
Copy link

run elasticsearch-ci/1

@benwtrent
Copy link
Member Author

elasticsearch-ci/1

@benwtrent
Copy link
Member Author

@elasticmachine update branch

@benwtrent
Copy link
Member Author

run elasticsearch-ci/packaging-sample

@benwtrent benwtrent merged commit fcbf4aa into elastic:master Jul 2, 2019
@benwtrent benwtrent deleted the bug/ml-df-fix-progress-and-cont branch July 2, 2019 16:19
benwtrent added a commit to benwtrent/elasticsearch that referenced this pull request Jul 2, 2019
…lastic#43838)

* [ML][Data Frame] fix progress measurement for continuous transforms

* Update DataFrameIndexer.java
benwtrent added a commit that referenced this pull request Jul 3, 2019
…43838) (#43887)

* [ML][Data Frame] fix progress measurement for continuous transforms

* Update DataFrameIndexer.java
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.

4 participants