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

[v3.6] Omit "versions" from {shardingState: 1} command when not running as a --shardsvr

    • Type: Icon: Improvement Improvement
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 3.6.22
    • Affects Version/s: None
    • Component/s: Sharding
    • Labels:
      None
    • Minor Change
    • Sharding 2020-12-14

      This behavior was already changed on the 4.0 and later branches with https://github.com/mongodb/mongo/commit/24e411d5cd7f64c5b4da25a351529cd1873284b8#diff-35082d6dcfe629e5c519b3883801b8cd2d7d2fa57db997ad1566e0e35c93dc99 from SERVER-29908. We'd like to do the same on the 3.6 branch to avoid having the {shardingState: 1} command response exceed the maximum BSONObj size (16MB) when sharding isn't even enabled.

            Assignee:
            max.hirschhorn@mongodb.com Max Hirschhorn
            Reporter:
            max.hirschhorn@mongodb.com Max Hirschhorn
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: