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

Long overflow in setParameter

    • Type: Icon: Bug Bug
    • Resolution: Duplicate
    • Priority: Icon: Minor - P4 Minor - P4
    • None
    • Affects Version/s: 3.2.12, 3.4.10
    • Component/s: None
    • ALL
    • Hide

      1. Login to mongo shell
      2. Input command with a huge number
      3. Check the new value

      Show
      1. Login to mongo shell 2. Input command with a huge number 3. Check the new value

      I wanted to disable the cursorTimeout, since I do huge aggregate queries (and no_cursor_timeout does not exist for aggregate framework).

      I accidentaly found a long integer overflow:

      > db.getSiblingDB('admin').runCommand( { setParameter: 1, cursorTimeoutMillis: 2592000000 } )
      { "was" : 18000001, "ok" : 1 }
      > db.getSiblingDB('admin').runCommand( { setParameter: 1, cursorTimeoutMillis: 2592000001 } )
      { "was" : -2147483648, "ok" : 1 }
      

            Assignee:
            backlog-server-platform DO NOT USE - Backlog - Platform Team
            Reporter:
            CrimsonGlory Crimson Glory
            Votes:
            0 Vote for this issue
            Watchers:
            9 Start watching this issue

              Created:
              Updated:
              Resolved: