We are running OpenSearch of version 2.15.0 and backing up OpenSearch data to AWS S3.
When multiple snapshots exist in snapshot repo and delete one of the snapshot by API, it will return 400 with error groupSize must be greater than 0 but was -1, but the snapshot is successfully deleted.
When only one snapshot exist in snapshot repo, the snapshot deletion will succeed and return 200.
Related component
Storage:Snapshots
To Reproduce
Register snapshot repository
Take multiple snapshots
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
}
Describe the bug
We are running OpenSearch of version 2.15.0 and backing up OpenSearch data to AWS S3.
groupSize must be greater than 0 but was -1
, but the snapshot is successfully deleted.Related component
Storage:Snapshots
To Reproduce
DELETE _snapshot/{snapshot-repository}/{snapshot}
Expected behavior
Although multiple snapshots exist in snapshot repository, we could delete the snapshot successfully.
Additional Details
Error: