New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Distributed Index] Intermittent panic during start up #1279
Comments
xxx.xxx.xx.251 was the crash. The other 3 sync_gateways launched as expected. Full logs - https://s3.amazonaws.com/sync-gateway-logs/2015-11-12-11-04-23-sglogs.zip |
What's the test scenario here? Are all sync_gateways intended to be index writers? |
Querying the /db/_config provide some clues This configuration works
however if they are launched as non writers, they fail intermittantly
|
In the failing case, they are all set as non writers. In the successful case, they are all writers. |
That's helpful - I think it's the case that nodes are registering themselves as writers even when the writer flag isn't set to true. |
Sync Gateway nodes that aren't index writers don't need the cluster config definition or the writer=true in their config. If cluster config isn't present, Sync Gateway shouldn't be trying to register the CbgtPindexType during NewServerContext. If the cluster config is present, but no databases have writer=false, we should still handle the case where a db config is loaded dynamically (from a ConfigServer) with writer=true set, but we shouldn't be starting DCP feeds for the databases with writer=false (which seems to be what's happening above). |
Closing as duplicate of #1322 |
"Couchbase Sync Gateway/0.0.1(360;b85b1c8)"
Using dev build feature/distributed_index build-number=360
The text was updated successfully, but these errors were encountered: