Description
What's the issue?
Sending a GET request to the '/api/v1/backup' or '/api/v1/bucket/default/backup' endpoint when no FTS indexes/aliases have been created yet returns an empty body.
What do I expect to see?
I would expect to see a normal empty response be returned in the same fashion as the previous FTS backup/restore endpoints.
$ curl -s -u Administrator:asdasd "localhost:9206/api/index" | jq
|
{
|
"status": "ok",
|
"indexDefs": null
|
}
|
What am I actually seeing?
Before I create an index, I'm seeing:
$ curl -u Administrator:asdasd "localhost:9206/api/v1/bucket/default/backup?include=default"
|
curl: (52) Empty reply from server
|
After creating and removing an index I'm seeing:
$ curl -s -u Administrator:asdasd "localhost:9206/api/v1/bucket/default/backup?include=default" | jq
|
{
|
"status": "ok",
|
"indexDefs": {
|
"uuid": "7b51d96ca98a220a",
|
"indexDefs": {},
|
"implVersion": "5.5.0"
|
}
|
}
|
Attachments
Issue Links
- causes
-
MB-41922 cbbackupmgr failing to backup with an EOF error
- Closed