[SERVER-42285] Add index field names to keyValue when constructing DuplicateKeyErrorInfo Created: 18/Jul/19 Updated: 29/Oct/23 Resolved: 22/Jul/19 |
|
| Status: | Closed |
| Project: | Core Server |
| Component/s: | Index Maintenance |
| Affects Version/s: | 4.2.0-rc3 |
| Fix Version/s: | 4.2.0-rc4, 4.3.1 |
| Type: | Bug | Priority: | Major - P3 |
| Reporter: | James Wahlin | Assignee: | James Wahlin |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Issue Links: |
|
||||||||
| Backwards Compatibility: | Fully Compatible | ||||||||
| Operating System: | ALL | ||||||||
| Backport Requested: |
v4.2
|
||||||||
| Sprint: | Query 2019-07-29 | ||||||||
| Participants: | |||||||||
| Case: | (copied to CRM) | ||||||||
| Description |
|
When constructing a DuplicateKeyErrorInfo object we pass a keyValue object that contains an empty string and a value for each element of a compound index. This allows for a BSONObj that has the same field name (empty string) duplicated for multiple fields. We should instead replace the empty string with the actual index key field name. |
| Comments |
| Comment by Githook User [ 22/Jul/19 ] |
|
Author: {'name': 'James Wahlin', 'email': 'james@mongodb.com', 'username': 'jameswahlin'}Message: (cherry picked from commit 901e368a28c966a99168b4ff43b7b48caafbe876) |
| Comment by Githook User [ 22/Jul/19 ] |
|
Author: {'name': 'James Wahlin', 'email': 'james@mongodb.com', 'username': 'jameswahlin'}Message: |