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

Make ReshardingOplogFetcher fetch oplog entries from the primary during the critical section

    • Type: Icon: Bug Bug
    • Resolution: Unresolved
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None
    • Cluster Scalability
    • Fully Compatible
    • ALL
    • ClusterScalability Apr14-Apr28
    • 200
    • None
    • 3
    • None
    • None
    • None
    • None
    • None
    • None

      Currently, the aggregation command run by the ReshardingOplogFetcher against the each donor shard specifies readPreference "nearest" to avoid overloading the donor's primary. The read also specifies maxStalenessSeconds to 90 to avoid reading from a secondary that is "too stale". The issue with this setup is that if during the critical section , the aggregate command ends up targeting a secondary with staleness greater than the critical section timeout window, then it would not be able to reach the "final" oplog entry and enter the "strict-consistency" in time.

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

              Created:
              Updated: