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

XMLWordPrintableJSON

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

      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
            Reporter:
            Cheahuychou Mao
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: