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

group command does not fail in maintenance mode

    XMLWordPrintableJSON

Details

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major - P3 Major - P3
    • 3.1.0
    • None
    • Replication
    • None
    • Fully Compatible
    • ALL
    • RPL 0 3/13/15

    Description

      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" } 

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: