Make ReshardingOplogFetcher also update the average time to fetch when the batch doesn't have postBatchResumeToken

XMLWordPrintableJSON

    • Cluster Scalability
    • Fully Compatible
    • ClusterScalability Dec8-Dec22
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      Currently, the ReshardingOplogFetcher only updates the exponential moving average time to fetch oplog entries upon fetching a batch with a postBatchResumeToken. SERVER-106550 made ShardRemote::runAggregation go back to only returning postBatchResumeToken when the batch is empty. This essentially made the ReshardingOplogFetcher only update the average when it happens to get back an empty because there are no remaining oplog entries that the recipient needs to copy from that donor, i.e. when it has reached the end of the oplog on the node it is fetching from. This may not happen very often if there is a high write rate to the collection being resharded. 

            Assignee:
            Cheahuychou Mao
            Reporter:
            Cheahuychou Mao
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: