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

Error when creating partition index with num_replica and node list

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Major
    • 5.5.0
    • 5.5.0
    • secondary-index
    • None
    • Untriaged
    • Unknown

    Description

      create index name on default(name) partition by hash(meta().id) with

      {"nodes":["127.0.0.1:9002", "127.0.0.1:9003", "127.0.0.1:9001"], "num_replica":1}

      [
      {
      "code": 5000,
      "msg": "GSI CreateIndex() - cause: Fails to create index. Parameter num_replica should be one less than parameter nodes.",
      "query_from_user": "create index name on default(name) partition by hash(meta().id) with

      {\"nodes\":[\"127.0.0.1:9002\", \"127.0.0.1:9003\", \"127.0.0.1:9001\"], \"num_replica\":1}

      "
      }
      ]

      Attachments

        Issue Links

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

          Activity

            People

              jliang John Liang
              jliang John Liang
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes

                  PagerDuty