Skip to content
This repository has been archived by the owner on Aug 2, 2022. It is now read-only.

Forward porting "Fix that AD job cannot be terminated due to missing training data" #126

Merged
merged 2 commits into from
May 19, 2020

Conversation

kaituo
Copy link
Member

@kaituo kaituo commented May 19, 2020

Issue #, if available:

Description of changes:
This PR forward porting b351d40

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

…endistro-for-elasticsearch#102)

We expect an EndRunException to be thrown due to missing training data.  But the exception is not appropriately propagated back to AD job and results in InternalFailure instead.  This PR fixes the bug.

Testing done:
1. Manually reproduced all  possible EndRunExceptions, check AD job is terminated, and check profile API status is correct.
2. Added unit tests to expose the bug.
@kaituo kaituo merged commit 8eab157 into opendistro-for-elasticsearch:master May 19, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants