[SERVER-26927] Update Max Staleness implementation Created: 07/Nov/16  Updated: 19/Jun/17  Resolved: 15/Nov/16

Status: Closed
Project: Core Server
Component/s: Sharding
Affects Version/s: None
Fix Version/s: 3.4.0-rc4

Type: Improvement Priority: Major - P3
Reporter: A. Jesse Jiryu Davis Assignee: Kaloian Manassiev
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Depends
is depended on by JAVA-2377 Update Max Staleness implementation Closed
Documented
is documented by DOCS-8723 3.4: add maxStalenessSeconds to read ... Closed
Related
related to SERVER-26980 Allow maxStalenessSeconds values as s... Closed
Backwards Compatibility: Fully Compatible
Sprint: Sharding 2016-11-21
Participants:

 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.


 Comments   
Comment by Githook User [ 27/Dec/16 ]

Author:

{u'username': u'mikety', u'name': u'Misha Tyulenev', u'email': u'misha@mongodb.com'}

Message: SERVER-26927 support integer values for maxStalenessSeconds

(cherry picked from commit 3878fd8993b361207a853b8db11a1a3b484ea837)
Branch: v3.4
https://github.com/mongodb/mongo/commit/2385fd34587de3b75c4205f45821b23cecb79dce

Comment by Githook User [ 12/Dec/16 ]

Author:

{u'username': u'mikety', u'name': u'Misha Tyulenev', u'email': u'misha@mongodb.com'}

Message: SERVER-26927 support integer values for maxStalenessSeconds
Branch: master
https://github.com/mongodb/mongo/commit/3878fd8993b361207a853b8db11a1a3b484ea837

Comment by Githook User [ 16/Nov/16 ]

Author:

{u'username': u'kaloianm', u'name': u'Kaloian Manassiev', u'email': u'kaloian.manassiev@mongodb.com'}

Message: SERVER-26927 Rename maxStalenessMS to maxStalenessSeconds and support doubles
Branch: master
https://github.com/mongodb/mongo/commit/21821549cdeef84173293c46725695fc3a7834b0

Comment by Kaloian Manassiev [ 15/Nov/16 ]

Fixed by https://github.com/mongodb/mongo/commit/21821549cdeef84173293c46725695fc3a7834b0

Comment by Kaloian Manassiev [ 14/Nov/16 ]

None of the things in this ticket sound 3.4 blockers except for the renaming of maxStalenessMS to maxStalenessSeconds. I am going to do just this and move it out of 3.4. We will further triage it later on for possible inclusion in 3.4.1 or later.

Comment by Daniel Pasette (Inactive) [ 08/Nov/16 ]

schwerin, please triage.

Comment by A. Jesse Jiryu Davis [ 08/Nov/16 ]

3.4, please. I'm setting the fixVersion.

Comment by Misha Tyulenev [ 07/Nov/16 ]

jesse what release does it target?

Generated at Thu Feb 08 04:13:38 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.