Details
-
Bug
-
Resolution: Cannot Reproduce
-
Major
-
Cheshire-Cat
-
Untriaged
-
Centos 64-bit
-
1
-
Unknown
Description
Build: 7.0.0-4103
The following backup json
{
|
"uuid": "1da740be81125e2e",
|
"indexDefs": {
|
"idx1": {
|
"type": "fulltext-index",
|
"name": "idx1",
|
"uuid": "",
|
"sourceType": "gocbcore",
|
"sourceName": "b1",
|
"planParams": {
|
"maxPartitionsPerPIndex": 171,
|
"indexPartitions": 6
|
},
|
"params": {
|
"doc_config": {
|
"docid_prefix_delim": "",
|
"docid_regexp": "",
|
"mode": "type_field",
|
"type_field": "type"
|
},
|
"mapping": {
|
"analysis": {},
|
"default_analyzer": "standard",
|
"default_datetime_parser": "dateTimeOptional",
|
"default_field": "_all",
|
"default_mapping": {
|
"dynamic": true,
|
"enabled": true
|
},
|
"default_type": "_default",
|
"docvalues_dynamic": false,
|
"index_dynamic": true,
|
"store_dynamic": false,
|
"type_field": "_type"
|
},
|
"store": {
|
"indexType": "scorch",
|
"segmentVersion": 15
|
}
|
},
|
"sourceParams": {}
|
}
|
},
|
"implVersion": "5.5.0"
|
}
|
was incorrectly restored using the following endpoint:
curl -POST -H "Content-Type: application/json" -u <username>:<password> http://<your_ip>:<your_port>/api/v1/backup -d '@backup.json' |
resulting index json is here ("sourceName": "b1" field is missed):
{
|
"status": "ok", |
"indexDefs": { |
"uuid": "2877a13117bcc977", |
"indexDefs": { |
"idx1": { |
"type": "fulltext-index", |
"name": "idx1", |
"uuid": "", |
"sourceType": "gocbcore", |
"planParams": { |
"maxPartitionsPerPIndex": 171, |
"indexPartitions": 6 |
},
|
"params": { |
"doc_config": { |
"docid_prefix_delim": "", |
"docid_regexp": "", |
"mode": "type_field", |
"type_field": "type" |
},
|
"mapping": { |
"analysis": {}, |
"default_analyzer": "standard", |
"default_datetime_parser": "dateTimeOptional", |
"default_field": "_all", |
"default_mapping": { |
"dynamic": true, |
"enabled": true |
},
|
"default_type": "_default", |
"docvalues_dynamic": false, |
"index_dynamic": true, |
"store_dynamic": false, |
"type_field": "_type" |
},
|
"store": { |
"indexType": "scorch", |
"segmentVersion": 15 |
}
|
},
|
"sourceParams": {} |
}
|
},
|
"implVersion": "5.5.0" |
}
|
}
|