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

Projector refuses to start without the profiles it has whitelisted

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • Major
    • Morpheus
    • 7.6.0
    • secondary-index
    • None
    • Untriaged
    • 0
    • Unknown

    Description

      As part of Columnar work, I desired to create a new profile since it has unique functionality from provisioned, serverless and the default. Unfortunately, the projector has hardcoded the profiles it knows about, and refuses to otherwise start:

      2024-03-28T15:57:53.111-04:00 [Info] Parsing the args
      panic: Deployment model should be [provisioned|serverless|default] but it is columnar
       
      goroutine 1 [running]:
      github.com/couchbase/indexing/secondary/common.CrashOnError(...)
      	/Users/michaelblow/dev/capella-analytics/goproj/src/github.com/couchbase/indexing/secondary/common/util.go:509
      main.argParse()
      	goproj/src/github.com/couchbase/indexing/secondary/cmd/projector/main.go:87 +0xa48
      main.main()
      	goproj/src/github.com/couchbase/indexing/secondary/cmd/projector/main.go:125 +0x9c
      

      It seems unfortunate to have to update every service with every new profile added- I believe when profiles were added, they were intended to configure specific flags & features IN THE PROFILE, with that configuration then passed into the services; perhaps the 2i components can consider that change moving forward.

      In the meantime, I intend to add a flag which suppresses projector from running, since Columnar doesn't use 2i or Query service, Projector should not be needed anyway. I have done that in https://review.couchbase.org/c/ns_server/+/207835.

      Attachments

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

        Activity

          People

            amit.kulkarni Amit Kulkarni
            michael.blow Michael Blow
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes

                PagerDuty