anomaly-detection
anomaly-detection copied to clipboard
[BUG]Can't initialize detector after disable/re-enable AD plugin
What is the bug? https://github.com/opendistro-for-elasticsearch/anomaly-detection/issues/132
Proposal: delete checkpoints when stopping detector in terms of EndRunException (same as what we do when stopping a detector using RestFul API). When failing to delete a checkpoint, we should retry using exponential backoff.
StopDetectorTransportAction has logic on how to delete models.
https://github.com/opensearch-project/anomaly-detection/blob/553688aae45590c37cc4d86102642d0b3a6ebb33/src/main/java/org/opensearch/ad/AnomalyDetectorJobRunner.java#L516 is the place you might want to add the delete model logic.
@jackiehanyang what is the updated status of this issue? Is the fix in 2.8.0 ?