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

Improve sync source selection logging

    • Type: Icon: Improvement Improvement
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 7.2.0-rc0, 7.0.3
    • Affects Version/s: None
    • Component/s: None
    • Replication
    • Fully Compatible
    • v7.0, v6.0, v5.0, v4.4
    • Repl 2023-09-04, Repl 2023-09-18

      Improve log verbosity around sync source selection to include reasons why a certain node is/isn't chosen as a sync source. For example, customers want to know why the "nearest" node isn't chosen (e.g. not being a voter) when initialSyncSourceReadPreference is "nearest".

      FWIW, currently in the function _isEligibleSyncSource, we have some debug log messages (e.g. "Cannot select sync source because we are a voter and it is not"). I wonder if it would be good enough to make those info level logs.

            Assignee:
            evelyn.wu@mongodb.com Evelyn Wu
            Reporter:
            lingzhi.deng@mongodb.com Lingzhi Deng
            Votes:
            0 Vote for this issue
            Watchers:
            7 Start watching this issue

              Created:
              Updated:
              Resolved: