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

Allow users to set a limit on acceptable staleness

    XMLWordPrintableJSON

Details

    • New Feature
    • Status: Closed
    • Major - P3
    • Resolution: Done
    • None
    • 1.2.0-alpha3, 1.2.0
    • None
    • None

    Description

      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"

      Attachments

        Issue Links

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved: