-
Notifications
You must be signed in to change notification settings - Fork 24.8k
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
[ML] Adding an open job to a group does not update autodetect with related scheduled events #31651
Comments
Pinging @elastic/ml-core |
Hi, can I take a stab at this? @davidkyle @pheyos |
I tried reproducing your steps and got this, it looks like the job |
Hi @jucaleb4 thank for your interest I'm delighted you want to take a stab at this. For background on ML Calendars and Scheduled events see the docs, the basic idea is to define periods of time where anomalies won't be generated. Below are the detailed steps to reproduce, you will need some sample data and a script into index it I've created a gist for that purpose.
This time the calendar worked as expected as no anomalies were created you should see results similar to this. The bug occurs when you add the job to a group after the job has been created. To recreate the bug:
The job is part of the job group which uses the The relevant code is in JobManager.updateJob, in particular when the job is changed by adding a group it needs to send an update to the native ML process |
This will help me get started, thanks @davidkyle. If I have anymore questions, I'll let you know along the way. |
@davidkyle Hi David, so the current elasticsearch source code is es7.0. However, the kibana download version I have is 6.3.0. So when I try to run ES, the Kibana complains about the type mismatch. Is there a way I can either a) downgrade es to 6.3.0 or b) upgrade kibana to 7.0 to test this code? edit: figured it out! |
Hi @jucaleb4. Are you still planning to submit a PR for this? |
@droberts195 I have not submitted a PR, I have been trying to get this to work but have not gotten a working solution. If it's fine with @davidkyle, you can tackle it |
Thanks for having a go @jucaleb4. We'll transfer it to someone in the ML team. |
@jucaleb4 hey, I just opened a PR, let me know if you want to go over how I figured it out/fixed it :) |
@benwtrent hey, thanks for fixing it. Your changes make sense, it's something similar to what I did by adding a new boolean for a new group inside |
Job has to be open for the change to be captured. Additionally, you have to signal that a change has occurred: https://github.com/elastic/elasticsearch/pull/32881/files#diff-150690f539e82196e503011ae92ed227R69 Scheduled events are separate but related things to a job, so one has to take into account letting the system know that the scheduled events need refreshed for the job as well. |
* elastic/master: (46 commits) NETWORKING: Make RemoteClusterConn. Lazy Resolve DNS (#32764) [DOCS] Splits the users API documentation into multiple pages (#32825) [DOCS] Splits the token APIs into separate pages (#32865) [DOCS] Creates redirects for role management APIs page Bypassing failing test PainlessDomainSplitIT#testHRDSplit (#32966) TEST: Mute testRetentionPolicyChangeDuringRecovery [DOCS] Fixes more broken links to role management APIs [Docs] Tweaks and fixes to rollup docs [DOCS] Fixes links to role management APIs [ML][TEST] Fix BasicRenormalizationIT after adding multibucket feature [DOCS] Splits the roles API documentation into multiple pages (#32794) [TEST] Run pre 6.4 nodes in non-FIPS JVMs (#32901) Make Geo Context Mapping Parsing More Strict (#32821) [ML] fix updating opened jobs scheduled events (#31651) (#32881) Scripted metric aggregations: add deprecation warning and system property to control legacy params (#31597) Tests: Fix timezone conversion in DateTimeUnitTests Enable FIPS140LicenseBootstrapCheck (#32903) Fix InternalAutoDateHistogram reproducible failure (#32723) Remove assertion in testDocStats on deletedDocs counter (#32914) HLRC: Move ML request converters into their own class (#32906) ...
* 6.x: (42 commits) [DOCS] Splits the users API documentation into multiple pages (#32825) [DOCS] Splits the token APIs into separate pages (#32865) [DOCS] Creates redirects for role management APIs page Bypassing failing test PainlessDomainSplitIT#testHRDSplit (#32966) TEST: Mute testRetentionPolicyChangeDuringRecovery [DOCS] Fixes more broken links to role management APIs [Docs] Tweaks and fixes to rollup docs [DOCS] Fixes links to role management APIs [ML][TEST] Fix BasicRenormalizationIT after adding multibucket feature [DOCS] Splits the roles API documentation into multiple pages (#32794) [TEST] Run pre 6.4 nodes in non-FIPS JVMs (#32901) Remove assertion in testDocStats on deletedDocs counter (#32914) [ML] fix updating opened jobs scheduled events (#31651) (#32881) Enable FIPS140LicenseBootstrapCheck (#32903) HLRC: Move ML request converters into their own class (#32906) [DOCS] Update getting-started.asciidoc (#29518) Fix allowed value for HighlighterBuilder encoder in javadocs (#32780) [DOCS] Add "remove a tag" script logic as an example (#32556) RFC: Test that example plugins build stand-alone (#32235) Security: remove put privilege API (#32879) ...
Steps to reproduce:
The problem is that updating the job with a group does not update autodetect with scheduled events.
cc @pheyos
The text was updated successfully, but these errors were encountered: