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

Update Max Staleness implementation

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 3.4.0-rc4
    • Component/s: Sharding
    • Labels:
      None

      Description

      Respond to recent Max Staleness Spec changes:

      • Rename maxStalenessMS to maxStalenessSeconds in ReadPreferenceSetting::fromBSON
      • Parse maxStalenessSeconds as any numeric type, storing the parsed value in Milliseconds precision.
      • The smallest value is now heartbeatFrequencyMS + idleWritePeriodMS Deferred to SERVER-26980, the current minimum value in mongos is higher than this, anyhow.
      • Implement Max Staleness prose tests for mongos in src/mongo/client/read_preference_client_test.cpp.

        Attachments

          Issue Links

            Activity

              People

              • Votes:
                0 Vote for this issue
                Watchers:
                9 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: