Uploaded image for project: 'Couchbase Gateway'
  1. Couchbase Gateway
  2. CBG-3946

[3.1.7 backport] provide bucket and collection when returning an error about inability to create collections

    XMLWordPrintable

Details

    • Improvement
    • Resolution: Fixed
    • Major
    • 3.1.7
    • None
    • None
    • Security Level: Public
    • None
    • CBG Sprint 150
    • 1

    Description

      We can see a problem of not showing the collection of a failed database:

      2024-05-17T18:29:30.092Z [ERR] Couldn't apply config for database "db-1": couldn't reload database: error waiting for indexes sg_allDocs_x1 ... -- rest.(*ServerContext)._applyConfigs() at config.go:1789
      2024-05-17T18:29:30.092Z [ERR] c:#1409 db:db-1 #1409: error waiting for indexes sg_roleAccess_x1 ... -- rest.(*handler).writeError() at handler.go:1384
      2024-05-17T18:29:30.092Z [INF] HTTP: c:#1409 db:db-1 #1409:     --> 500 Internal error: error waiting for indexes sg_roleAccess_x1 ...  (2826327.3 ms)
      

      You can search backward to find which collection that fails, since the general logging has the context information, but this error message could include the collection that has failed.

      Attachments

        Issue Links

          Activity

            People

              tor.colvin Tor Colvin
              tor.colvin Tor Colvin
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                PagerDuty