[SERVER-10266] Support GLE with w:majority in master/slave Created: 19/Jul/13 Updated: 08/Apr/14 Resolved: 03/Dec/13 |
|
| Status: | Closed |
| Project: | Core Server |
| Component/s: | Replication |
| Affects Version/s: | None |
| Fix Version/s: | 2.5.5 |
| Type: | Improvement | Priority: | Major - P3 |
| Reporter: | Spencer Brody (Inactive) | Assignee: | Spencer Brody (Inactive) |
| Resolution: | Done | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Issue Links: |
|
||||||||||||||||||||||||||||||||
| Backwards Compatibility: | Fully Compatible | ||||||||||||||||||||||||||||||||
| Participants: | |||||||||||||||||||||||||||||||||
| Description |
|
Currently if you run GLE with w:majority on a master/slave setup you get the error "noreplset". We should pick a good definition for what w:majority means on a master/slave setup and make that work. |
| Comments |
| Comment by Eric Milkie [ 03/Dec/13 ] | ||
|
Decided, we're going to treat w:majority as w:1 in master/slave. | ||
| Comment by Tad Marshall [ 20/Jul/13 ] | ||
|
The above commit broke jstests/sharding/auth.js on all platforms:
| ||
| Comment by auto [ 20/Jul/13 ] | ||
|
Author: {u'username': u'stbrody', u'name': u'Spencer T Brody', u'email': u'spencer@10gen.com'}Message: Revert " This reverts commit 2f3bb8c8550a798c7388313273fe8c71e94dc552. | ||
| Comment by auto [ 19/Jul/13 ] | ||
|
Author: {u'username': u'stbrody', u'name': u'Spencer T Brody', u'email': u'spencer@10gen.com'}Message: | ||
| Comment by auto [ 19/Jul/13 ] | ||
|
Author: {u'username': u'stbrody', u'name': u'Spencer T Brody', u'email': u'spencer@10gen.com'}Message: | ||
| Comment by Scott Hernandez (Inactive) [ 19/Jul/13 ] | ||
|
Yep, that is exactly what I was going to suggest as well; a little confusing but there are technical limitations with master/slave. | ||
| Comment by Eric Milkie [ 19/Jul/13 ] | ||
|
This is in the spirit of making w:majority work on single nodes – it doesn't return an error, for the convenience of development. | ||
| Comment by Spencer Brody (Inactive) [ 19/Jul/13 ] | ||
|
After talking with milkie, we decided that GLE with w:majority will behave the same as w:1 (it will not wait for any replication) but will return successfully with a wnote warning that majority isn't supported on master/slave. |