Uploaded image for project: 'Java Driver'
  1. Java Driver
  2. JAVA-2907

size not accepting $numberlong argument

    XMLWordPrintableJSON

Details

    • Icon: Bug Bug
    • Resolution: Gone away
    • Icon: Major - P3 Major - P3
    • None
    • 3.7.1
    • None
    • None

    Description

      We are using a command to create the oplog (as part of resizing the oplog).

      db.runCommand({ "create" : "oplog.rs", "capped" : true, "size" :

      { "$numberLong" : "2147483648" }

      })

      This returns error - specify size:<n> when capped is true, code - 14832. This used to work in previous version of the driver.

      If you pass in the size directly as long it works
      E.g. db.runCommand({ "create" : "oplog.rs", "capped" : true, "size" : 2147483648 });

       

       

       

       

      Attachments

        Activity

          People

            ross@mongodb.com Ross Lawley
            dharshanr@scalegrid.net Dharshan Rangegowda
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: