What is the bug?
There is discrepancy between the results returned from the profile API and search tasks API. This occurs when restarting an Opensearch cluster that already has a HCAD running.
How can one reproduce the bug?
Steps to reproduce the behavior:
- Start Opensearch cluster and dashboards with AD plugin
- create and wait for HCAD to be running and returning anomaly results
- stop and start OpenSearch cluster
- HCAD will go back to showing as initializing again on frontend
- Profile API for detector will return response of
running
- Search request to
..._plugins/_anomaly_detection/detectors/tasks/_search with body of:
{
"query": {
"bool": {
"filter": [
{
"term": {
"detector_id": "N64oKYABE8ZUzJlQp33e"
}
},
{
"term": {
"task_type": "REALTIME_HC_DETECTOR"
}
},
{
"term": {
"is_latest": "true"
}
}
]
}
}
}
returns response with initializing
What is the expected behavior?
HCAD to show as running on frontend and all relevant API responses
What is your host/environment?
- Opensearch 2.0.0-alpha1-snapshot (4/14/22)
What is the bug?
There is discrepancy between the results returned from the profile API and search tasks API. This occurs when restarting an Opensearch cluster that already has a HCAD running.
How can one reproduce the bug?
Steps to reproduce the behavior:
running..._plugins/_anomaly_detection/detectors/tasks/_searchwith body of:returns response with
initializingWhat is the expected behavior?
HCAD to show as
runningon frontend and all relevant API responsesWhat is your host/environment?