[SERVER-46567] Update shell methods Mongo.setReadPref and cursor.readPref to support hedging Created: 03/Mar/20 Updated: 29/Oct/23 Resolved: 10/Mar/20 |
|
| Status: | Closed |
| Project: | Core Server |
| Component/s: | Sharding |
| Affects Version/s: | None |
| Fix Version/s: | 4.4.0-rc0, 4.7.0 |
| Type: | Task | Priority: | Major - P3 |
| Reporter: | Cheahuychou Mao | Assignee: | Cheahuychou Mao |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Issue Links: |
|
||||||||||||
| Backwards Compatibility: | Fully Compatible | ||||||||||||
| Backport Requested: |
v4.4
|
||||||||||||
| Sprint: | Service Arch 2020-03-09, Service Arch 2020-03-23 | ||||||||||||
| Participants: | |||||||||||||
| Description |
|
Change Mongo.setReadPref(mode, tagSet) to Mongo.setReadPref(mode, tagSet, hedgeOptions) and Cursor.readPref(mode, tagSet) to cursor.readPref(mode, tagSet, hedgeOptions), where hedgeOptions is an optional argument of the form {enabled: <bool>}. Similar to the $readPreference subkey {hedge: {enabled: <bool>}}, passing {} is equivalent to passing {enabled: true}since 'enabled' defaults to true. |
| Comments |
| Comment by Githook User [ 18/Mar/20 ] |
|
Author: {'name': 'Cheahuychou Mao', 'username': 'cheahuychou', 'email': 'cheahuychou.mao@mongodb.com'}Message: (cherry picked from commit f042509f1c46e292cc14af7c7ba23b9cc97c5185) |
| Comment by Githook User [ 10/Mar/20 ] |
|
Author: {'username': 'cheahuychou', 'name': 'Cheahuychou Mao', 'email': 'cheahuychou.mao@mongodb.com'}Message: |