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

Make AnalyticsProcessManager class more robust #49282

Merged

Conversation

przemekwitek
Copy link
Contributor

@przemekwitek przemekwitek commented Nov 19, 2019

Make AnalyticsProcessManager class more robust by fixing the following issues:
1. Add synchronization between runJob and stop that prevents swallowing stop() event in case stop() was called right after runJob
2. Prevent memory leak by removing processContext from the map whenever startProcess method returns false
3. Only store the first encountered failure reason for any given processContext
4. Write unit tests for AnalyticsProcessManager class

Relates #49095

@przemekwitek przemekwitek force-pushed the fix-model-output-twice-problem branch 2 times, most recently from ee17d64 to a500815 Compare November 19, 2019 09:04
@elasticmachine
Copy link
Collaborator

Pinging @elastic/ml-core (:ml)

@przemekwitek
Copy link
Contributor Author

run elasticsearch-ci/packaging-sample-matrix

@przemekwitek
Copy link
Contributor Author

run elasticsearch-ci/packaging-sample-matrix

Copy link
Contributor

@dimitris-athanasiou dimitris-athanasiou left a comment

Choose a reason for hiding this comment

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

LGTM This is great stuff!

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