[SERVER-29096] Set readPreference to secondary in causally_consistent_jscore_passthrough suite Created: 05/May/17 Updated: 30/Oct/23 Resolved: 03/Aug/17 |
|
| Status: | Closed |
| Project: | Core Server |
| Component/s: | Sharding |
| Affects Version/s: | None |
| Fix Version/s: | 3.5.12 |
| Type: | Task | Priority: | Major - P3 |
| Reporter: | Misha Tyulenev | Assignee: | Misha Tyulenev |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Backwards Compatibility: | Fully Compatible |
| Sprint: | Sharding 2017-07-31, Sharding 2017-08-21 |
| Participants: |
| Description |
|
Currently all the reads in jscore suite run under causally_consistent_jscore_passthrough executor send to the primary. Once the safe secondary reads project is completed it should send the reads to secondary. For that
2. As setReadPref("secondary") doesn't actually do anything . https://github.com/mongodb/mongo/blob/r3.5.6/src/mongo/shell/db.js#L100 Hence, need override Mongo.prototype.runCommand() to ). |
| Comments |
| Comment by Githook User [ 10/Aug/17 ] |
|
Author: {'name': 'Misha Tyulenev', 'email': 'misha@mongodb.com'}Message: |