OpenSearch/x-pack/plugin/ml
Dimitris Athanasiou ec405978fc
[7.x][ML] Update reindexing task progress before persisting job progress (#61868) (#61875)
This fixes a bug introduced by #61782. In that PR I thought I could
simplify the persistence of progress by using the progress straight
from the stats holder in the task instead of calling the get
stats action. However, I overlooked that it is then possible to
have stale progress for the reindexing task as that is only updated
when the get stats API is called.

In this commit this is fixed by updating reindexing task progress
before persisting the job progress. This seems to be much more
lightweight than calling the get stats request.

Closes #61852

Backport of #61868
2020-09-02 21:44:18 +03:00
..
licenses
qa [7.x] [ML] unmute testTooLowConfiguredMemoryStillStarts (#61846) (#61869) 2020-09-02 13:23:23 -04:00
src [7.x][ML] Update reindexing task progress before persisting job progress (#61868) (#61875) 2020-09-02 21:44:18 +03:00
build.gradle [7.x] Cleanup xpack build.gradle (#60554) (#60603) 2020-08-03 13:11:43 -05:00