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

Can't enable 3.6 features on Shard and can't restart mongos after it

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Done
    • Affects Version/s: 3.6.11
    • Fix Version/s: None
    • Component/s: Admin
    • Labels:
      None
    • Operating System:
      ALL

      Description

      I upgraded Mongo Shard from 3.4 to 3.6 and trying to enable this:

      mongos> db.adminCommand( \{ setFeatureCompatibilityVersion: "3.6" } );
      {
       "ok" : 0,
       "errmsg" : "Could not find host matching read preference \{ mode: \"primary\" } for set shard2",
       "code" : 133,
       "codeName" : "FailedToSatisfyReadPreference"
      }
      mongos>
      

       

      Now FeatureCompatibilityVersion: "3.6" is set on Config and shard. 

      configReplSet:SECONDARY> db.adminCommand( \{ getParameter: 1, featureCompatibilityVersion: 1});
      {
       "featureCompatibilityVersion" : {
       "version" : "3.4",
       "targetVersion" : "3.6"
       },
       "ok" : 1,
       "$gleStats" : {
       "lastOpTime" : Timestamp(0, 0),
       "electionId" : ObjectId("000000000000000000000000")
       }
      }
      configReplSet:SECONDARY>
      

      shard1:SECONDARY> db.adminCommand( \{ getParameter: 1, featureCompatibilityVersion: 1})
      {
       "featureCompatibilityVersion" : {
       "version" : "3.6"
       },
       "ok" : 1,
       "$gleStats" : {
       "lastOpTime" : Timestamp(0, 0),
       "electionId" : ObjectId("000000000000000000000000")
       },
       "$configServerState" : {
       "opTime" : {
       "ts" : Timestamp(1556145038, 2),
       "t" : NumberLong(7)
       }
       }
      }
      shard1:SECONDARY>
      

       

      Now try to bounce mongos server and face this error:

      tail -f /vol/logs/mongos.log
      2019-04-24T22:42:20.951+0000 I SHARDING [mongosMain] Waiting for signing keys, sleeping for 1s and trying again.
      2019-04-24T22:42:21.952+0000 I SHARDING [mongosMain] Waiting for signing keys, sleeping for 1s and trying again.
      2019-04-24T22:42:22.952+0000 I SHARDING [mongosMain] Waiting for signing keys, sleeping for 1s and trying again.
      2019-04-24T22:42:23.952+0000 I SHARDING [mongosMain] Waiting for signing keys, sleeping for 1s and trying again.
      2019-04-24T22:42:24.952+0000 I SHARDING [mongosMain] Waiting for signing keys, sleeping for 1s and trying again.
      2019-04-24T22:42:25.952+0000 I SHARDING [mongosMain] Waiting for signing keys, sleeping for 1s and trying again.
      2019-04-24T22:42:26.953+0000 I SHARDING [mongosMain] Waiting for signing keys, sleeping for 1s and trying again.
      2019-04-24T22:42:27.953+0000 I SHARDING [mongosMain] Waiting for signing keys, sleeping for 1s and trying again.
      2019-04-24T22:42:28.953+0000 I SHARDING [mongosMain] Waiting for signing keys, sleeping for 1s and trying again.
      2019-04-24T22:42:29.953+0000 I SHARDING [mongosMain] Waiting for signing keys, sleeping for 1s and trying again.
      2019-04-24T22:42:30.953+0000 I SHARDING [mongosMain] Waiting for signing keys, sleeping for 1s and trying again.
      2019-04-24T22:42:31.954+0000 I SHARDING [mongosMain] Waiting for signing keys, sleeping for 1s and trying again.
      2019-04-24T22:42:32.954+0000 I SHARDING [mongosMain] Waiting for signing keys, sleeping for 1s and trying again.
      

       

        Attachments

          Activity

            People

            • Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: