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

Large enough Opid will overflow when appended to currentOp output

    • Query Execution
    • ALL
    • Server 2.7.4, Server 2.7.5, Server 2.7.6

      We keep the opid as an AtomicUInt but to display we append this to a bsonobject using the BsonObjBuilder.

      BSON doesn't support unsigned integers and simply casts them to int's when they are appended so when a large enough opid is passed the number would overload and wrap thus we see a large negative number.

            Assignee:
            backlog-query-execution [DO NOT USE] Backlog - Query Execution
            Reporter:
            david.hows David Hows
            Votes:
            2 Vote for this issue
            Watchers:
            16 Start watching this issue

              Created:
              Updated: