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

Duplicate documents in multiple shards

    • Type: Icon: Question Question
    • Resolution: Works as Designed
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: Sharding
    • Labels:
      None

      Hi,

      We have a sharded collection with hashed index on "_id" as the key. We started with 2 shards and added one more.

      However we are finding duplicate objects with the same _id on both shard-0 and and shard-2. We identified this by directly connecting to the primary of the shards.

      A few other observations
      1. Running a find from the mongos does not find the duplicate documents since it probably goes to the right shard

      Are these duplicates from a failed migration? If so how come mongod does not clean it up?

            Assignee:
            Unassigned Unassigned
            Reporter:
            dharshanr@scalegrid.net Dharshan Rangegowda
            Votes:
            0 Vote for this issue
            Watchers:
            7 Start watching this issue

              Created:
              Updated:
              Resolved: