-
Notifications
You must be signed in to change notification settings - Fork 73
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
[Backport to 1.3] restart bug fix #496
Conversation
* Fix restart HCAD detector bug To prevent repeatedly cold starting a model due to sparse data, HCAD has a cache that remembers we have done cold start for a model. A second attempt to cold start will need to wait for 60 detector intervals. Previously, when stopping a detector, I forgot to clean the cache. So the cache remembers the model and won’t retry cold start after some time. This PR fixes the bug by cleaning the cache when stopping a detector. Testing done: 1. added unit and integration tests. 2. manually reproduced the issue and verified the fix. Signed-off-by: Kaituo Li <[email protected]>
Signed-off-by: Amit Galitzky <[email protected]>
Codecov Report
@@ Coverage Diff @@
## 1.3 #496 +/- ##
============================================
+ Coverage 77.68% 77.75% +0.06%
- Complexity 4111 4116 +5
============================================
Files 296 296
Lines 17669 17673 +4
Branches 1878 1878
============================================
+ Hits 13727 13742 +15
+ Misses 3043 3029 -14
- Partials 899 902 +3
Flags with carried forward coverage won't be shown. Click here to find out more.
|
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.
Seems like test retry isn't helping here as much, is it just a lot more flaky on jdk8? |
not sure. Will debug after oncall. |
Signed-off-by: Kaituo Li <[email protected]>
Description
backport #460 and #456 to 1.3 branch.
Check List
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.