Consider sorting documents by recordId before applying entries on secondaries

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Unresolved
    • Priority: Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None
    • None
    • Storage Execution
    • ALL
    • None
    • 3
    • None
    • None
    • None
    • None
    • None
    • None

      Currently each applier thread receives a bunch of documents to insert (in the form of oplog entries). With recordIdsReplicated:true collections, the secondaries receive recordIds to use in the oplog entries, so they don't need to assign recordIds anymore. This means that the documents being inserted may not actually be in recordId order.

      SERVER-88392 tracks a dassert being triggered as a result.

      However, we should see if maybe we can sort the documents first by recordId to see if we can improve performance (making it different from the correctness issue in SERVER-88392).

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

              Created:
              Updated: