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] Improve reporting status of the transform that is about to finish #95672
Conversation
9623618
to
a0b53e0
Compare
a0b53e0
to
2beb76a
Compare
Pinging @elastic/ml-core (Team:ML) |
Hi @przemekwitek, I've created a changelog YAML for you. |
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, although I think it would be clearer if you renamed one variable.
...src/main/java/org/elasticsearch/xpack/transform/action/TransportGetTransformStatsAction.java
Outdated
Show resolved
Hide resolved
This is great.
The stop API has a The change breaks I therefore think we should revert that part. It doesn't solve the fundamental problem that if the indexer is running |
Right, removing the p-task using The partial revert PR is ready for review: #96060 |
This PR fixes 2 places that may yield issues with status reporting when the transform finishes:
TransformTask.shutdown
method wait until the persistent task disappears._stats
action reportstopping
rather thanstopped
state if there is no persistent task seen by theTaskManager
but there still is a task in theClusterState
.Additionally, this PR adds a test (
TransformRobustnessIT.testCreateAndDeleteTransformInALoop
) which shows that every time we are about to delete the transform, the persistent task is already gone.Relates #95327