[SERVER-22241] "not master and slaveOk=false" error because of config primary forced stepdown Created: 20/Jan/16  Updated: 14/Apr/16  Resolved: 26/Jan/16

Status: Closed
Project: Core Server
Component/s: Sharding
Affects Version/s: None
Fix Version/s: None

Type: Bug Priority: Major - P3
Reporter: Dianna Hohensee (Inactive) Assignee: Dianna Hohensee (Inactive)
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Related
related to SERVER-22265 Add support for retries against the c... Closed
Tested
is testing SERVER-22157 Force primary config server step down... Closed
Backwards Compatibility: Fully Compatible
Operating System: ALL
Steps To Reproduce:

This bug is not consistent in appearing (showed up in one of two evergreen builds), but this is the build that provoked it: https://evergreen.mongodb.com/task/mongodb_mongo_master_enterprise_rhel_62_64_bit_sharding_csrs_continuous_config_stepdown_WT_920d38ceb07bff0ec18e2f173d942c3b743dea4b_16_01_19_22_35_06

With the changes found in the build, run the following command:
python buildscripts/resmoke.py --executor=sharding_continuous_config_stepdown --storageEngine=wiredTiger -j4 jstests/sharding/split_large_key.js

Sprint: Sharding F (01/29/16)
Participants:

 Description   

Caught this bug testing sharding_csrs_continuous_config_stepdown_WT suite with forced primary config server stepdown.

The count command to the config server isn't retrying when it abruptly (due to the forced primary step down) finds a secondary, but slipping through and throwing an error.

Log: https://logkeeper.mongodb.org/build/569ec1129041300b277bfb39/test/569ec5f6be07c46e4d29f476#L5542

Error:

[js_test:split_large_key] 2016-01-19T23:26:05.735+0000 2016-01-19T23:26:05.479+0000 E QUERY    [thread1] Error: count failed: {
[js_test:split_large_key] 2016-01-19T23:26:05.735+0000 	"shards" : {
[js_test:split_large_key] 2016-01-19T23:26:05.735+0000 
[js_test:split_large_key] 2016-01-19T23:26:05.735+0000 	},
[js_test:split_large_key] 2016-01-19T23:26:05.736+0000 	"cause" : {
[js_test:split_large_key] 2016-01-19T23:26:05.736+0000 		"ok" : 0,
[js_test:split_large_key] 2016-01-19T23:26:05.736+0000 		"errmsg" : "not master and slaveOk=false",
[js_test:split_large_key] 2016-01-19T23:26:05.736+0000 		"code" : 13435
[js_test:split_large_key] 2016-01-19T23:26:05.736+0000 	},
[js_test:split_large_key] 2016-01-19T23:26:05.736+0000 	"code" : 13435,
[js_test:split_large_key] 2016-01-19T23:26:05.736+0000 	"ok" : 0,
[js_test:split_large_key] 2016-01-19T23:26:05.736+0000 	"errmsg" : "failed on : config"
[js_test:split_large_key] 2016-01-19T23:26:05.736+0000 } :
[js_test:split_large_key] 2016-01-19T23:26:05.736+0000 _getErrorWithCode@src/mongo/shell/utils.js:23:13
[js_test:split_large_key] 2016-01-19T23:26:05.737+0000 DBQuery.prototype.count@src/mongo/shell/query.js:359:11
[js_test:split_large_key] 2016-01-19T23:26:05.737+0000 verifyChunk@jstests/sharding/split_large_key.js:15:22
[js_test:split_large_key] 2016-01-19T23:26:05.737+0000 @jstests/sharding/split_large_key.js:61:5
[js_test:split_large_key] 2016-01-19T23:26:05.737+0000 @jstests/sharding/split_large_key.js:38:1
[js_test:split_large_key] 2016-01-19T23:26:05.737+0000 @jstests/sharding/split_large_key.js:3:2
[js_test:split_large_key] 2016-01-19T23:26:05.737+0000 	
[js_test:split_large_key] 2016-01-19T23:26:05.739+0000 failed to load: jstests/sharding/split_large_key.js


Generated at Thu Feb 08 03:59:49 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.