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

Indexing service should return an error code as well as an error string

    XMLWordPrintable

Details

    • Improvement
    • Resolution: Unresolved
    • Major
    • feature-backlog
    • 4.5.0, 5.0.0, 5.1.0, 5.5.0, 6.0.0, 6.6.0, 6.5.0, Cheshire-Cat
    • secondary-index

    Description

      When n1ql passes a request to the indexing service, and this fails, n1ql may have a need to return a specific error code.
      For instance - if an index we are trying to create already exists, we should be returning a 4300.
      We currently return 5000 (a general error) which is incorrect.
      In order to do that - the only choice currently open to n1ql is to scan the indexing error string for keywords, which is inelegant, and less than ideal.
      This could be solved if the indexing service could pass n1ql an integer error code alongside the error string.
      n1ql conversely would provide a new NewIndexingError() error method, which the indexing client could call, so that n1ql could set the error appropriately.

      Attachments

        Issue Links

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

          Activity

            People

              jeelan.poola Jeelan Poola
              marco.greco Marco Greco (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              7 Start watching this issue

              Dates

                Created:
                Updated:

                Gerrit Reviews

                  There are no open Gerrit changes

                  PagerDuty