[SERVER-9502] Using regex in _id breaks replication Created: 29/Apr/13 Updated: 26/Jan/24 Resolved: 15/May/13 |
|
| Status: | Closed |
| Project: | Core Server |
| Component/s: | Replication |
| Affects Version/s: | 2.4.3 |
| Fix Version/s: | 2.4.4, 2.5.0 |
| Type: | Bug | Priority: | Major - P3 |
| Reporter: | Randolph Tan | 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 | ||||||||||||||||||||||||||||
| Participants: | |||||||||||||||||||||||||||||
| Description |
|
Steps to reproduce:
And watch secondaries exit with:
Similarly if you have the two documents above in your primary and do:
It will be converted into an oplog entry:
And deletes the documents matching the regex in the secondaries! |
| Comments |
| Comment by auto [ 17/May/13 ] |
|
Author: {u'date': u'2013-05-15T20:40:45Z', u'name': u'Eric Milkie', u'email': u'milkie@10gen.com'}Message: |
| Comment by auto [ 17/May/13 ] |
|
Author: {u'date': u'2013-05-15T18:34:13Z', u'name': u'Eric Milkie', u'email': u'milkie@10gen.com'}Message: |
| Comment by auto [ 17/May/13 ] |
|
Author: {u'date': u'2013-05-13T21:25:41Z', u'name': u'Eric Milkie', u'email': u'milkie@10gen.com'}Message: Otherwise, this breaks when replication attempts to do a query with the regular expression as _id. |
| Comment by auto [ 15/May/13 ] |
|
Author: {u'date': u'2013-05-15T20:40:45Z', u'name': u'Eric Milkie', u'email': u'milkie@10gen.com'}Message: |
| Comment by auto [ 15/May/13 ] |
|
Author: {u'date': u'2013-05-15T18:34:13Z', u'name': u'Eric Milkie', u'email': u'milkie@10gen.com'}Message: |
| Comment by auto [ 15/May/13 ] |
|
Author: {u'date': u'2013-05-13T21:25:41Z', u'name': u'Eric Milkie', u'email': u'milkie@10gen.com'}Message: Otherwise, this breaks when replication attempts to do a query with the regular expression as _id. |