Make the estimation of remaining time in resharding more robust

XMLWordPrintableJSON

    • Fully Compatible
    • ALL
    • Sharding 2021-05-17
    • 1
    • None
    • 3
    • None
    • None
    • None
    • None
    • None
    • None

      The resharding coordinator consumes the estimation of remaining operation time, reported by the recipients, to engage the critical section when recipients are about to finishing cloning and applying oplog entries.

      However, the estimation does not consider the possibility of having no oplog entries to fetch/apply. When there are no oplog entries to fetch, the estimation algorithm assumes fetching/applying oplog entires will take as long as the duration of cloning from donors, and the estimated remaining time will never reach zero. This would prevent the coordinator from automatically engaging the critical section.

      This ticket should improve the estimation algorithm (here) to account for the aforementioned situations.

            Assignee:
            Janna Golden
            Reporter:
            Amirsaman Memaripour
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: