Details
-
Bug
-
Resolution: Unresolved
-
Major
-
7.6.0
-
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.