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

Mongos 3.6 requires min and max wire version to be 6 (6,6)

    • Type: Icon: Bug Bug
    • Resolution: Works as Designed
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: 3.6.7
    • Component/s: Internal Code
    • Labels:
      None
    • ALL
    • Hide
      1. Perform a rolling downgrade (config replSet, each shard replSet, then finally mongos nodes).  
      2. Before downgrading the mongos nodes, connect with the shell and note that the cluster is inaccessible.
      3. View the mongos.log and note the aforementioned log message.
      4. Downgrade the mongos and reconnect with the shell.  Note that the cluster is now accessible.
      Show
      Perform a rolling downgrade (config replSet, each shard replSet, then finally mongos nodes).   Before downgrading the mongos nodes, connect with the shell and note that the cluster is inaccessible. View the mongos.log and note the aforementioned log message. Downgrade the mongos and reconnect with the shell.  Note that the cluster is now accessible.

      When performing a rolling downgrade on a version 3.6.7 cluster to version 3.4, once the config servers and shards have all been downgraded, the remaining version 3.6 mongos nodes can no longer connect to the cluster.  This can be seen in the mongos.log:

      <timestamp> W NETWORK [UserCacheInvalidator] remote host has incompatible wire version: IncompatibleServerVersion: Server min and max wire version are incompatible (0,5) with client min wire version (6,6).

      However, when connecting to a version 3.6.7 mongod and running the command db.isMaster(), the resulting document shows "minWireVersion" : 0, "maxWireVersion" : 6.

      This makes it impossible to perform a rolling downgrade from 3.6.7 to 3.4.x without taking an outage, as all mongos nodes become unusable from the time that the config servers are downgraded until the time that at least one mongos is downgraded.

            Assignee:
            kaloian.manassiev@mongodb.com Kaloian Manassiev
            Reporter:
            robert.m.manning@gmail.com Rob Manning
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: