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

Large enough Opid will overflow when appended to currentOp output

    XMLWordPrintable

    Details

    • Operating System:
      ALL
    • Sprint:
      Server 2.7.4, Server 2.7.5, Server 2.7.6
    • Case:

      Description

      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.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              backlog-server-query Backlog - Query Team
              Reporter:
              david.hows David Hows
              Participants:
              Votes:
              2 Vote for this issue
              Watchers:
              16 Start watching this issue

                Dates

                Created:
                Updated: