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

Duplicate _id when reading from secondaries on a sharded cluster

    • Type: Icon: Bug Bug
    • Resolution: Duplicate
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: 3.0.7
    • Component/s: Sharding
    • None
    • ALL

      We find there the same _id exist on different sharding, but we set different mode in client to query this _id data ,there will be different results, such as when we use the primary mode query returns only one data

      { "_id" : ObjectId("561fce30fd902e1234426ba7"), "adGroupId" : 6025696187079 }

      when we use secendaryPreferred or primaryPreferred mode query returns two data

      { "_id" : ObjectId("561fce30fd902e1234426ba7"), "adGroupId" : 6025696187079 } { "_id" : ObjectId("561fce30fd902e1234426ba7"), "adGroupId" : 6025696187079 }

            Assignee:
            Unassigned Unassigned
            Reporter:
            giser giser
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: