opensearch-project / OpenSearch

🔎 Open source distributed and RESTful search engine.
https://opensearch.org/docs/latest/opensearch/index/
Apache License 2.0
9.84k stars 1.83k forks source link

[BUG] Issue with OpenSearch Snapshot Deletion When Multiple Snapshots Exist in AWS S3 Repository #16579

Open PiaopiaoZheng opened 2 weeks ago

PiaopiaoZheng commented 2 weeks ago

Describe the bug

We are running OpenSearch of version 2.15.0 and backing up OpenSearch data to AWS S3.

Related component

Storage:Snapshots

To Reproduce

  1. Register snapshot repository
  2. Take multiple snapshots
  3. Delete one of the snapshot by API DELETE _snapshot/{snapshot-repository}/{snapshot}

Expected behavior

Although multiple snapshots exist in snapshot repository, we could delete the snapshot successfully.

Additional Details

Error:

{
  "error": {
    "root_cause": [
      {
        "type": "illegal_argument_exception",
        "reason": "groupSize must be greater than 0 but was -1"
      }
    ],
    "type": "illegal_argument_exception",
    "reason": "groupSize must be greater than 0 but was -1"
  },
  "status": 400
}