Details
-
Bug
-
Resolution: Unresolved
-
Minor
-
Cheshire-Cat
-
Untriaged
-
1
-
No
Description
FTS Index Replica is an Enterprise only feature. When trying to create an FTS index with replicas, it correctly fails. However the error msg can be changed to be a more intuitive giving the user the exact reason on why the index cannot be created.
[2020-08-23 17:04:52,550] - [rest_client:3092] INFO - {"type": "fulltext-index", "name": "default_index_1", "uuid": "", "params": {"store": {"kvStoreName": "mossStore", "mossStoreOptions": {}}}, "sourceType": "couchbase", "sourceName": "default", "sourceUUID": "", "planParams": {"numReplicas": 1, "maxPartitionsPerPIndex": 171}, "sourceParams": {}}
|
[2020-08-23 17:04:52,616] - [rest_client:964] ERROR - PUT http://172.23.122.83:8094/api/index/default_index_1 body: {"type": "fulltext-index", "name": "default_index_1", "uuid": "", "params": {"store": {"kvStoreName": "mossStore", "mossStoreOptions": {}}}, "sourceType": "couchbase", "sourceName": "default", "sourceUUID": "", "planParams": {"numReplicas": 1, "maxPartitionsPerPIndex": 171}, "sourceParams": {}} headers: {'Content-Type': 'application/json', 'Authorization': 'Basic QWRtaW5pc3RyYXRvcjpwYXNzd29yZA==', 'Accept': '*/*'} error: 400 reason: rest_create_index: error creating index: default_index_1, err: manager_api: CreateIndex failed, maxReplicasAllowed: '0', but request for '1' b'{"error":"rest_create_index: error creating index: default_index_1, err: manager_api: CreateIndex failed, maxReplicasAllowed: \'0\', but request for \'1\'","request":{"name":"default_index_1","params":{"store":{"kvStoreName":"mossStore","mossStoreOptions":{}}},"planParams":{"maxPartitionsPerPIndex":171,"numReplicas":1},"sourceName":"default","sourceParams":{},"sourceType":"couchbase","sourceUUID":"","type":"fulltext-index","uuid":""},"status":"fail"}\n' auth: Administrator:password
|