[ML] Delete annotation method assumes annotation is in current write index #113365
Labels
bug
Fixes for quality problems that affect the customer experience
Feature:Anomaly Detection
ML anomaly detection
:ml
v7.16.0
The
deleteAnnotation
function in ML assumes that the annotation to be deleted is in the index that the annotations write alias currently points to:kibana/x-pack/plugins/ml/server/models/annotation_service/annotation.ts
Lines 409 to 418 in a251dbf
This assumption is incorrect. The annotation to be deleted could be in any one of the indices that the annotations read alias points to.
There are two possible ways to fix this:
I'll leave it up to the UI team to decide which is easiest to implement.
This needs to be fixed for 7.16, because then in 8.0 we'll have the chance to actually have multiple annotations indices behind the aliases. (We have got away with this bug up to now because there's only been one index that both the read and write aliases point at. But the whole point of having separate read and write aliases was to give the flexibility to have multiple backing indices.)
The text was updated successfully, but these errors were encountered: