-
-
Notifications
You must be signed in to change notification settings - Fork 23
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
Anomaly detector detection re running in inspect mode #757 #759
Anomaly detector detection re running in inspect mode #757 #759
Conversation
@@ -644,7 +644,7 @@ export async function getHSR( | |||
hsr: TableTimeSeries, |
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.
let's make a class for this
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.
according TODOs we should make it in data-kit
related issue CorpGlory/grafana-datasource-kit#89
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.
Please add a test which reproduces the bug.
Co-Authored-By: Alexey Velikiy <[email protected]>
' of github.com:hastic/hastic-server into anomaly-detector-detection-re-running-in-inspect-mode-#757
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.
Test should fail without new changes
Co-Authored-By: Alexey Velikiy <[email protected]>
' of github.com:hastic/hastic-server into anomaly-detector-detection-re-running-in-inspect-mode-#757
Co-Authored-By: rozetko <[email protected]>
' of github.com:hastic/hastic-server into anomaly-detector-detection-re-running-in-inspect-mode-#757
Co-Authored-By: Alexey Velikiy <[email protected]>
Co-Authored-By: Alexey Velikiy <[email protected]>
' of github.com:hastic/hastic-server into anomaly-detector-detection-re-running-in-inspect-mode-#757
fixes #757
Problem
getHSR
method runs learning if cache of analytic unit isnull
or outdated. Panel requests HSR every second and creates a race condition between learning process and HSR requests.Note: cache can't be outdated because learning started on each unit's update if it required in class definition.
Changes
LEARNING
stateisCacheOutdated