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

Identify whether SG is running in persistent config mode (or not) via REST API

    XMLWordPrintable

Details

    • Improvement
    • Resolution: Fixed
    • Major
    • 3.1.0
    • 3.0
    • SyncGateway
    • Security Level: Public
    • CBG Sprint 105, CBG Sprint 106
    • 2

    Description

      We log on startup when we're running in legacy config mode - but don't actually expose any info on the REST API to determine if this is the case, which can make it difficult - becuase the in-memory representation is "upgraded" to look like a bootstrapped/persistent config!

      2022-08-31T04:11:17.846-07:00 [WRN] Running in legacy config mode -- rest.legacyServerMain() at main_legacy.go:17
      

      Suggest just returning the value of the field ServerContext.persistentConfig in the root API response (handleRoot()) - to avoid overloading or introducing any new StartupConfig fields required to populate the /_config endpoint.

      Attachments

        Activity

          People

            gregory.newmansmith Gregory Newman-Smith
            ben.brooks Ben Brooks
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              PagerDuty