[SERVER-13404] 2.6 secondaries abort when replicated index spec contains a dollar-sign field Created: 28/Mar/14 Updated: 08/Dec/15 Resolved: 08/Dec/15 |
|
| Status: | Closed |
| Project: | Core Server |
| Component/s: | Index Maintenance |
| Affects Version/s: | 2.6.0-rc2 |
| Fix Version/s: | None |
| Type: | Bug | Priority: | Major - P3 |
| Reporter: | Kamran K. | Assignee: | Unassigned |
| Resolution: | Won't Fix | Votes: | 0 |
| Labels: | 26qa | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Issue Links: |
|
||||||||||||||||||||||||||||||||||||
| Operating System: | ALL | ||||||||||||||||||||||||||||||||||||
| Steps To Reproduce: |
|
||||||||||||||||||||||||||||||||||||
| Participants: | |||||||||||||||||||||||||||||||||||||
| Description |
|
A 2.6 secondary will abort if a replicated index spec contains a field with a dollar sign. This bug is similar to Output on secondaries:
Version: 6412fa7eca5c834f29490ab6cdd1cb13b3d99c97 |
| Comments |
| Comment by J Rassi [ 18/Apr/14 ] | |
|
I'm starting to think it's correct to let 2.6 secondaries halt replication if they encounter these indexes (the defense being that 2.6 just does not support them). Though I do think that it's worth it to consider adding an "index pre-validation" step to initial sync, so that the initial sync can fail fast if it would otherwise replicate an unsupported index. | |
| Comment by J Rassi [ 02/Apr/14 ] | |
|
Note this also affects initial sync, where the sync source has a "dollar index" or "empty string index". I think skipping index key pattern validation on secondaries (in style of We could additionally pre-validate indexes at the start of initial sync (in style of | |
| Comment by Eric Milkie [ 28/Mar/14 ] | |
|
Actually, the code that took care of this was enhanced in | |
| Comment by Eric Milkie [ 28/Mar/14 ] | |
|
Yes, that was fixed in | |
| Comment by Kamran K. [ 28/Mar/14 ] | |
|
When I insert an unindexable document on a 2.4 primary, I see this on the 2.6 secondaries:
I don't see any aborts though. | |
| Comment by Eric Milkie [ 28/Mar/14 ] | |
|
I think this is the same problem as if you insert a document on 2.4 that is unindexable due to the key length restriction. 2.4 allows this and 2.6 does not. |