[JAVA-404] Allow inline M/R w/SlaveOk go to secondaries Created: 29/Jul/11 Updated: 25/Jun/13 Resolved: 24/Oct/11 |
|
| Status: | Closed |
| Project: | Java Driver |
| Component/s: | Cluster Management |
| Affects Version/s: | None |
| Fix Version/s: | 2.7 |
| Type: | Improvement | Priority: | Minor - P4 |
| Reporter: | Scott Hernandez (Inactive) | Assignee: | Scott Hernandez (Inactive) |
| Resolution: | Done | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Issue Links: |
|
||||||||
| Backwards Compatibility: | Major Change | ||||||||
| Description |
|
Send secondaries map/reduce request if they are Inline and SlaveOk |
| Comments |
| Comment by auto [ 22/Oct/11 ] |
|
Author: {u'login': u'scotthernandez', u'name': u'Scott Hernandez', u'email': u'scotthernandez@gmail.com'}Message: |
| Comment by Brendan W. McAdams [ 19/Oct/11 ] |
|
This should be much easier now, since we can pass ReadPreference to each op. Should be easily fixable for 2.8 or 2.7.1 |
| Comment by Scott Hernandez (Inactive) [ 29/Jul/11 ] |
|
Like other read operations (find/cursor) we need to support specifying slaveOk at the method level. We can add the options to the MapReduceCommand (slaveOk + setOptions) for this. |
| Comment by Antoine Girbal [ 29/Jul/11 ] |
|
This is the case already, in DBCollection.java: if (command.getOutputType() == MapReduceCommand.OutputType.INLINE) |