Details
-
Bug
-
Resolution: Won't Do
-
Minor
-
2.2.2
-
None
-
None
-
1
Description
Applying default sync gateway yaml file on 1 node Couchbase cluster results in sync gateway throwing the following error:
2021-12-03T15:17:11.439Z [INF] Initializing indexes with numReplicas: 1... |
2021-12-03T15:17:11.452Z [INF] Query: Index sg_tombstones_x1 doesn't exist, creating... |
2021-12-03T15:17:11.455Z [ERR] Error opening database cb-example: Unable to install index tombstones: Error installing Couchbase index: sg_tombstones_x1: Unable to create indexes with the specified number of replicas (1). Increase the number of index nodes, or modify 'num_index_replicas' in your Sync Gateway database config. -- rest.RunServer() at config.go:1086 |
This however goes away when we are increment the node count of the cluster to more than 1 understandably since a single node cluster won't support numReplicas=1.
This isn't a bug per se and needs a minor change in either node count when set as 1 or sync gateway yaml file. So I don't think it needs any modifications in the operator package. But I'll leave that for team to decide.