adding tags on 2.4 config DB from 2.6 mongo shell is no-op

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Duplicate
    • Priority: Major - P3
    • None
    • Affects Version/s: 2.6.3, 2.7.3
    • Component/s: Sharding, Shell, Write Ops
    • None
    • ALL
    • Hide

      2.6 shell, 2.4 config DB/shards
      sh.addShardTag("shard0000","ZERO");
      /* no effect */
      db.getSiblingDB("config").shards.update(db.getSiblingDB("config").shards.update({_id:"shard0000"},{$addToSet:{"tags":"ZERO"}}
      ... )
      WriteResult({
      "writeError" :

      { "code" : undefined, "errmsg" : "no such cmd: update" }

      })

      Show
      2.6 shell, 2.4 config DB/shards sh.addShardTag("shard0000","ZERO"); /* no effect */ db.getSiblingDB("config").shards.update(db.getSiblingDB("config").shards.update({_id:"shard0000"},{$addToSet:{"tags":"ZERO"}} ... ) WriteResult({ "writeError" : { "code" : undefined, "errmsg" : "no such cmd: update" } })
    • None
    • 3
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      It seems that mongo shell helpers in 2.6 send updates as 2.6 update commands, but 2.4 config DB doesn't know what those are.

      This makes some sharding helpers like sh.addShardTag() silently fail.

              Assignee:
              Unassigned
              Reporter:
              Asya Kamsky
              Votes:
              0 Vote for this issue
              Watchers:
              7 Start watching this issue

                Created:
                Updated:
                Resolved: