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

Make sure that analyzeShardKey command never inserts a split point document more than once

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 7.0.0-rc0
    • Affects Version/s: None
    • Component/s: None
    • None
    • Fully Compatible
    • ALL
    • Sharding NYC 2023-03-20

      Currently, the analyzeShardKey command doesn't assign an _id to the split point documents that it generates. As a result, if there is a failover during the inserts, some documents can get inserted multiple times due to the auto retry. To solve this, each document must be assigned an _id and DuplicateKey errors should be ignored just like what that's done in the QueryAnalysisWriter.

            Assignee:
            cheahuychou.mao@mongodb.com Cheahuychou Mao
            Reporter:
            cheahuychou.mao@mongodb.com Cheahuychou Mao
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: