Details
-
Bug
-
Resolution: Fixed
-
Minor
-
None
-
Cheshire-Cat
-
Untriaged
-
Centos 64-bit
-
1
-
Unknown
Description
Build: 7.0.0-4137.
Having the following KV structure:
b1.s1.c1 - means bucket b1 has a scope s1 with collection c1.
|
b2.s1.c1 - means bucket b2 has a scope s1 with collection c1.
|
and 1 fts index i1 which covers collection b1.s1.c1
I'm trying to remap this index to b2.s1.c1.
Corresponding REST call is here:
Executing POST request for following api http://192.168.10.10:8094/api/v1/backup?remap=b1.s1:b2.s1 with Params: |
{
|
"uuid":"51ead49aafe2ab14", |
"indexDefs":{ |
"i1":{ |
"type":"fulltext-index", |
"name":"i1", |
"uuid":"", |
"sourceType":"gocbcore", |
"sourceName":"b1", |
"planParams":{ |
"maxPartitionsPerPIndex":171 |
},
|
"params":{ |
"doc_config":{ |
"docid_prefix_delim":"", |
"docid_regexp":"", |
"mode":"scope.collection.type_field", |
"type_field":"type" |
},
|
"mapping":{ |
"analysis":{ |
|
},
|
"default_analyzer":"standard", |
"default_datetime_parser":"dateTimeOptional", |
"default_field":"_all", |
"default_mapping":{ |
"dynamic":false, |
"enabled":false |
},
|
"default_type":"_default", |
"docvalues_dynamic":true, |
"index_dynamic":true, |
"store_dynamic":false, |
"type_field":"_type", |
"types":{ |
"s1.c1":{ |
"default_analyzer":"standard", |
"dynamic":true, |
"enabled":true |
}
|
}
|
},
|
"store":{ |
"indexType":"scorch", |
"mossStoreOptions":{ |
|
},
|
"segmentVersion":15 |
}
|
},
|
"sourceParams":{ |
|
}
|
}
|
},
|
"implVersion":"5.5.0" |
}
|
Getting the following error:
{'error': 'rest_backup_restore: processRemapRequest failed, err: index remapping error: rest_backup_restore: indexName: i1, remap=b1.s1:b2.s1 conflicts the existing type mappings for: s1.c1', 'request': '', 'status': 'fail'} |