Uploaded image for project: 'Couchbase Server'
  1. Couchbase Server
  2. MB-41135

[CE] Improve the error msg when trying to create FTS index with replica in Community Edition

    XMLWordPrintable

Details

    • 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
      

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            abhinav Abhi Dangeti
            mihir.kamdar Mihir Kamdar (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes

                PagerDuty