anomaly-detection icon indicating copy to clipboard operation
anomaly-detection copied to clipboard

[BUG]Can't initialize detector after disable/re-enable AD plugin

Open kaituo opened this issue 2 years ago • 2 comments

What is the bug? https://github.com/opendistro-for-elasticsearch/anomaly-detection/issues/132

kaituo avatar Jan 30 '23 19:01 kaituo

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.

kaituo avatar Jan 30 '23 19:01 kaituo

@jackiehanyang what is the updated status of this issue? Is the fix in 2.8.0 ?

minalsha avatar Aug 09 '23 17:08 minalsha