[CSHARP-1094] ReadPreference and MaxTime not honored for cursor.Count() and Size() Created: 05/Nov/14 Updated: 02/Apr/16 Resolved: 07/Nov/14 |
|
| Status: | Closed |
| Project: | C# Driver |
| Component/s: | Operations |
| Affects Version/s: | 1.9.2 |
| Fix Version/s: | 1.10, 2.0 |
| Type: | Bug | Priority: | Major - P3 |
| Reporter: | Rod Adams | Assignee: | Robert Stam |
| Resolution: | Done | Votes: | 0 |
| Labels: | cs | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Issue Links: |
|
||||
| Description |
|
C# Driver: 1.9.2
The above specifies a Read Preference of Secondary Preferred, yet the count command is sent to the primary, even when there's a perfectly responsive Secondary about, as proven by iterating cursor built the same way running against the secondary. |
| Comments |
| Comment by Githook User [ 07/Nov/14 ] |
|
Author: {u'username': u'rstam', u'name': u'rstam', u'email': u'robert@robertstam.org'}Message: |
| Comment by Githook User [ 07/Nov/14 ] |
|
Author: {u'username': u'rstam', u'name': u'rstam', u'email': u'robert@robertstam.org'}Message: |
| Comment by Robert Stam [ 05/Nov/14 ] |
|
It also needs to honor MaxTime. |
| Comment by Robert Stam [ 05/Nov/14 ] |
|
I've looked at the source code and confirmed that this is true. It is also true for cursor.Size. |