[SERVER-13589] Background index builds with 2.6.0 primary fail to complete on 2.4.x secondary nodes Created: 15/Apr/14 Updated: 11/Jul/16 Resolved: 16/Apr/14 |
|
| Status: | Closed |
| Project: | Core Server |
| Component/s: | Index Maintenance, Replication |
| Affects Version/s: | 2.5.5, 2.6.0 |
| Fix Version/s: | 2.6.1, 2.7.0 |
| Type: | Bug | Priority: | Critical - P2 |
| Reporter: | Linda Qin | Assignee: | Eric Milkie |
| Resolution: | Done | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Issue Links: |
|
||||
| Operating System: | ALL | ||||
| Backport Completed: | |||||
| Steps To Reproduce: | 1. Start a replica set
3. Build an index in background on the primary.
4. It fails to build the index in background on the secondary.
|
||||
| Participants: | |||||
| Description |
|
Issue Status as of April 28, 2014 ISSUE SUMMARY USER IMPACT WORKAROUNDS Alternatively, starting the mongo shell with the --writeMode=compatibility option avoids the issue altogether. RESOLUTION AFFECTED VERSIONS PATCHES Original descriptionIf you use the new createIndexes() command to build an index in the background, it may not build on replica set secondaries. Inserting an index spec into system.indexes will still work correctly. Note that by default, the 2.6 MongoDB shell uses the createIndexes() command for the .ensureIndex() shell helper. To force the shell to insert an entry into system.indexes for the .ensureIndex() shell helper, start the shell with the "--writeMode=compatibility" command line parameter. |
| Comments |
| Comment by Githook User [ 16/Apr/14 ] |
|
Author: {u'username': u'milkie', u'name': u'Eric Milkie', u'email': u'milkie@10gen.com'}Message: (cherry picked from commit 430cd62d0dfd6d29a9b4768422981c7cd9f1e334) |
| Comment by Githook User [ 16/Apr/14 ] |
|
Author: {u'username': u'milkie', u'name': u'Eric Milkie', u'email': u'milkie@10gen.com'}Message: |