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

Consider sleeping only if there are more to fetch in ReshardingOplogFetcher

    • Type: Icon: Improvement Improvement
    • Resolution: Unresolved
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: Sharding
    • Cluster Scalability
    • 5

      Consider moving this sleep to maybe the following then statement. And perhaps change this line to something like this:

      // original comment on why we're sleeping
      return executor->sleepFor(Seconds{1}, cancelToken).then([...] {
        return _reschedule(std::move(executor), cancelToken, factory);
      });
      

            Assignee:
            backlog-server-cluster-scalability [DO NOT USE] Backlog - Cluster Scalability
            Reporter:
            randolph@mongodb.com Randolph Tan
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: