Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-22241

"not master and slaveOk=false" error because of config primary forced stepdown

    • Type: Icon: Bug Bug
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: Sharding
    • None
    • Fully Compatible
    • ALL
    • Hide

      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

      Show
      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
    • Sharding F (01/29/16)

      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
      

            Assignee:
            dianna.hohensee@mongodb.com Dianna Hohensee (Inactive)
            Reporter:
            dianna.hohensee@mongodb.com Dianna Hohensee (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: