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

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

    XMLWordPrintable

Details

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

    Description

      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().

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: