[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:
Backports
Related
Backwards Compatibility: Fully Compatible
Operating System: ALL
Backport Requested:
v4.2
Sprint: Query 2019-07-29
Participants:
Case:

 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: SERVER-42285 Add index field names to keyValue when constructing DuplicateKeyErrorInfo

(cherry picked from commit 901e368a28c966a99168b4ff43b7b48caafbe876)
Branch: v4.2
https://github.com/mongodb/mongo/commit/8f34450146f33087a3e2b7e82860d4ab1346a829

Comment by Githook User [ 22/Jul/19 ]

Author:

{'name': 'James Wahlin', 'email': 'james@mongodb.com', 'username': 'jameswahlin'}

Message: SERVER-42285 Add index field names to keyValue when constructing DuplicateKeyErrorInfo
Branch: master
https://github.com/mongodb/mongo/commit/901e368a28c966a99168b4ff43b7b48caafbe876

Generated at Thu Feb 08 05:00:05 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.