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

Log warning when hedging options are specified

    • Type: Icon: Improvement Improvement
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 8.0.0-rc13
    • Affects Version/s: None
    • Component/s: None
    • None
    • Networking & Observability
    • Fully Compatible
    • v8.0
    • Networking & Obs 2024-07-08, Networking & Obs 2024-07-22, Networking & Obs 2024-08-05, Networking & Obs 2024-08-19, Networking & Obs 2024-09-02, Networking & Obs 2024-09-16, Networking & Obs 2024-09-30

      Hedged reads are deprecated and are set to be removed in 9.0, but we still need to accept the option without erroring to avoid breaking API compatibility. To alert users that they may be specifying options that have no effect, we should introduce a log warning whenever hedging options are received. A good place to put this is in ParseAndRunCommand::_parseCommand.

      To avoid spamming the logs, we should rate limit this (e.g. at most once per minute).

            Assignee:
            hriday.sheth@mongodb.com Hriday Sheth (Inactive)
            Reporter:
            patrick.freed@mongodb.com Patrick Freed
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: