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

Wrong document returned by find({_id: value as Int64})

    XMLWordPrintableJSON

Details

    • Icon: Bug Bug
    • Resolution: Works as Designed
    • Icon: Critical - P2 Critical - P2
    • None
    • 4.0.4
    • None
    • None
    • ALL
    • Hide

      Store documents using an _id of type 64 bit integer.

      Add items, and search.

      Show
      Store documents using an _id of type 64 bit integer. Add items, and search.

    Description

      A search like : db.getCollection('gff').find({_id:71549674884444169})

      returns document with _id = 71549674884444168

      There is a 1 offset in the _id value.

      Happens in Mongo Compass and in Robot3T.

       

      Attachments

        1. BugMongo01.jpg
          BugMongo01.jpg
          79 kB
        2. BugMongo03.jpg
          BugMongo03.jpg
          152 kB

        Activity

          People

            Unassigned Unassigned
            szoke.szaniszlo@gmail.com Szaniszlo Szöke
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: