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

MongoDB is accepting duplicate elements within the same level

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Critical - P2
    • Resolution: Duplicate
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: Write Ops
    • Labels:
      None
    • Operating System:
      ALL
    • Steps To Reproduce:
      Hide

      Create a list in R and try to append it to itself then insert the record into Mongo

      Show
      Create a list in R and try to append it to itself then insert the record into Mongo

      Description

      MongoDB is found to accept duplicate elements within the same level inside a document.
      The issue is faced when inserting record into MongoDB from R 3.3.2 using rmongodb library.

      The severity of this issue is that Mongodb didn't complain about it at all.
      When trying to view the document inside Mongochef Studio 3T, you can't actually see the duplicate, instead you only see one element.

      However, when trying to query it using C# driver and looping through the code generates an error complaining about a duplicate element.

      When trying to view the document using Mongo Shell you can't see the duplicate either and you just see one element.

      So basically you have duplicate inside your documents but you can't see it and you are not aware of it until you interrogate it using C# driver.

      I hope this explains it, and I'm happy to answer any questions.

        Attachments

          Issue Links

            Activity

              People

              • Votes:
                0 Vote for this issue
                Watchers:
                8 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: