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

group command does not fail in maintenance mode

    • Type: Icon: Bug Bug
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • 3.1.0
    • Affects Version/s: None
    • Component/s: Replication
    • None
    • Fully Compatible
    • ALL
    • RPL 0 3/13/15

      This tests that group should fail:

      https://github.com/mongodb/mongo/blob/r2.6.0-rc0/jstests/replsets/maintenance2.js#L51

      However, the group command actually succeeds but the test still passes anyway because db here is undefined:

      https://github.com/mongodb/mongo/blob/r2.6.0-rc0/jstests/replsets/maintenance2.js#L4

      Note: the count command below actually fails with:

      { "note" : "from execCommand", "ok" : 0, "errmsg" : "node is recovering" } 
      

            Assignee:
            matt.dannenberg Matt Dannenberg
            Reporter:
            randolph@mongodb.com Randolph Tan
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: