Uploaded image for project: 'PHP Driver: Extension'
  1. PHP Driver: Extension
  2. PHPC-752

Allow users to set a limit on acceptable staleness

    • Type: Icon: New Feature New Feature
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • 1.2.0-alpha3, 1.2.0
    • Affects Version/s: None
    • Component/s: None
    • None

      It should be possible for a user or operator to set a limit on how stale a member might be before allowing queries. An extension of this would be to improve driver discovery such that they do not choose a node that is excessively stale, when serving reads.

      Exception messages for invalid maxStalenessMS values in ReadPreference constructor:

      • "Expected maxStalenessMS to be >= 0, %d given", value
      • "Expected maxStalenessMS to be <= %d, %d given", INT32_MAX, value
      • "maxStalenessMS may not be used with primary mode"

      Exception messages for invalid maxStalenessMS values in URI option parsing:

      • "Expected maxStalenessMS to be >= 0, %d given", value
      • "Expected maxStalenessMS to be <= %d, %d given", INT32_MAX, value
      • "Primary read preference mode conflicts with maxStalenessMS"

            Assignee:
            jmikola@mongodb.com Jeremy Mikola
            Reporter:
            rathi.gnanasekaran Rathi Gnanasekaran
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: