Description
Build: 6.6.5.10080 --> 7.1.0-2232
- 4 node 6.6.5 cluster with kv,n1ql,fts + kv, n1ql + fts + fts
- Load travel-sample
- create fts indexes
- Do the below for kv nodes
- remove - node
- uninstall couchbase and install 7.1.0
- Addback the node with kv,n1ql
- Run the below command to create index with segmentVersion 15:
curl -XPUT -H "Content-Type: application/json" \
-u Administrator:password http://172.23.97.211:8094/api/index/second-6-6-upgrade -d \
'{
"type": "fulltext-index",
"sourceType": "couchbase",
"sourceName": "travel-sample",
"planParams": {
"maxPartitionsPerPIndex": 1024,
"indexPartitions": 10
},
"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": false
},
"default_type": "_default",
"docvalues_dynamic": false,
"index_dynamic": true,
"store_dynamic": false,
"type_field": "_type",
"types": {
"airport": {
"dynamic": false,
"enabled": true,
"properties": {
"country": {
"dynamic": false,
"enabled": true,
"fields": [
{
"index": true,
"name": "country",
"type": "text"
}
]
}
}
}
}
},
"store": {
"indexType": "scorch",
"segmentVersion": 15
}
},
"sourceParams": {}
}'
When we run the above command using 7.1 node it throws below error:
{"error":"rest_create_index: error creating index: second, err: manager_api: CreateIndex, Prepare failed, err: bleve: Prepare, err: zap version 15 isn't supported in mixed version cluster","request":{"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":false},"default_type":"_default","docvalues_dynamic":false,"index_dynamic":true,"store_dynamic":false,"type_field":"_type","types":{"airport":{"dynamic":false,"enabled":true,"properties":{"country":{"dynamic":false,"enabled":true,"fields":[{"index":true,"name":"country","type":"text"}]}}}}},"store":{"indexType":"scorch","segmentVersion":15}},"planParams":{"indexPartitions":6,"maxPartitionsPerPIndex":1024},"sourceName":"travel-sample","sourceParams":{},"sourceType":"couchbase","type":"fulltext-index"},"status":"fail"}
|
Is the above documented ?
When we run the above command on 6.6 node it succeeds. Is this expected?