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

ReshardingOplogFetcher uses "secondaryPreferred" read preference instead of "nearest"

    • Fully Compatible
    • ALL
    • Sharding 2020-12-14, Sharding 2020-12-28
    • 1

      The ReadPreference::Nearest object constructed by ReshardingOplogFetcher is unused and so ShardRemote::runAggregation() ends up using its default read preference of "secondaryPreferred".

      aggRequest.setUnwrappedReadPref(ReadPreferenceSetting{ReadPreference::Nearest}.toContainingBSON());
      

      should be set on AggregationRequest constructed in ReshardingOplogFetcher::consume().

            Assignee:
            blake.oler@mongodb.com Blake Oler
            Reporter:
            max.hirschhorn@mongodb.com Max Hirschhorn
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: