{"action":"opened","issue":{"url":"https://api.github.com/repos/couchbase/sync_gateway/issues/1374","labels_url":"https://api.github.com/repos/couchbase/sync_gateway/issues/1374/labels{/name}","comments_url":"https://api.github.com/repos/couchbase/sync_gateway/issues/1374/comments","events_url":"https://api.github.com/repos/couchbase/sync_gateway/issues/1374/events","html_url":"https://github.com/couchbase/sync_gateway/issues/1374","id":122999428,"number":1374,"title":"[Distributed Index] Querying a running db config with default num_shards returning num_shards = 0","user":{"login":"sethrosetter","id":1365736,"avatar_url":"https://avatars.githubusercontent.com/u/1365736?v=3","gravatar_id":"","url":"https://api.github.com/users/sethrosetter","html_url":"https://github.com/sethrosetter","followers_url":"https://api.github.com/users/sethrosetter/followers","following_url":"https://api.github.com/users/sethrosetter/following{/other_user}","gists_url":"https://api.github.com/users/sethrosetter/gists{/gist_id}","starred_url":"https://api.github.com/users/sethrosetter/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sethrosetter/subscriptions","organizations_url":"https://api.github.com/users/sethrosetter/orgs","repos_url":"https://api.github.com/users/sethrosetter/repos","events_url":"https://api.github.com/users/sethrosetter/events{/privacy}","received_events_url":"https://api.github.com/users/sethrosetter/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-12-18T18:08:43Z","updated_at":"2015-12-18T18:08:43Z","closed_at":null,"body":"I have 1 writer using the following config\r\n```\r\n{\r\n    \"interface\":\":4984\",\r\n    \"adminInterface\": \"0.0.0.0:4985\",\r\n    \"maxIncomingConnections\": 0,\r\n    \"maxCouchbaseConnections\": 16,\r\n    \"maxFileDescriptors\": 90000,\r\n    \"slowServerCallWarningThreshold\": 500,\r\n    \"compressResponses\": true,\r\n    \"log\":[\"HTTP+\"],\r\n    \"cluster_config\": {\r\n        \"server\":\"http://ec2-54-145-129-26.compute-1.amazonaws.com:8091\",\r\n        \"data_dir\":\".\",\r\n        \"bucket\":\"data-bucket\"\r\n    },\r\n    \"databases\":{\r\n        \"db\":{\r\n            \"feed_type\":\"DCPSHARD\",\r\n            \"server\":\"http://ec2-54-145-129-26.compute-1.amazonaws.com:8091\",\r\n            \"bucket\":\"data-bucket\",\r\n            \"users\":{\r\n                \"GUEST\":{\r\n                    \"disabled\":true,\r\n                    \"admin_channels\":[\r\n                        \"*\"\r\n                    ]\r\n                }\r\n            },\r\n            \"channel_index\":{\r\n                \"server\":\"http://ec2-54-145-129-26.compute-1.amazonaws.com:8091\",\r\n                \"bucket\":\"index-bucket\",\r\n                \"writer\":true\r\n            }\r\n        }\r\n    }\r\n}\r\n```\r\n\r\nNot specifying a num_shards should default to 64, however when I query the db endpoint :4985/db/_config, it returns 0 for num_shards.\r\n```\r\n{\r\n\"server\": \"http://ec2-54-145-129-26.compute-1.amazonaws.com:8091\",\r\n\"pool\": \"default\",\r\n\"bucket\": \"data-bucket\",\r\n\"name\": \"db\",\r\n\"sync\": null,\r\n\"users\": {\r\n\"GUEST\": {\r\n\"name\": \"\",\r\n\"admin_channels\": [\r\n\"*\"\r\n],\r\n\"all_channels\": null,\r\n\"disabled\": true\r\n}\r\n},\r\n\"feed_type\": \"DCPSHARD\",\r\n\"channel_index\": {\r\n\"server\": \"http://ec2-54-145-129-26.compute-1.amazonaws.com:8091\",\r\n\"bucket\": \"index-bucket\",\r\n\"writer\": true,\r\n\"num_shards\": 0\r\n}\r\n}\r\n```"}}