[SERVER-23590] Prevent propagation of DuplicateKeyValue error codes Created: 06/Apr/16  Updated: 24/Aug/16  Resolved: 14/Apr/16

Status: Closed
Project: Core Server
Component/s: Storage
Affects Version/s: 3.3.4
Fix Version/s: 3.3.5

Type: Improvement Priority: Critical - P2
Reporter: Kyle Suarez Assignee: Kyle Suarez
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Related
is related to SERVER-21254 Get rid of the DuplicateKeyValue erro... Closed
Backwards Compatibility: Fully Compatible
Sprint: Integration 13 (04/22/16)
Participants:
Linked BF Score: 0

 Description   

In MMAPv1, a DuplicateKeyValue error (error code 84) is a "safe" error, which indicates that a duplicate key has been encountered during a background index build. As mentioned in SERVER-21254, this is harmless and should not leave the MMAPv1-specific code in the storage engine layer.

This ticket is a temporary fix until SERVER-21254 is resolved.



 Comments   
Comment by Githook User [ 14/Apr/16 ]

Author:

{u'username': u'ksuarz', u'name': u'Kyle Suarez', u'email': u'ksuarz@gmail.com'}

Message: SERVER-23590 fix lint
Branch: master
https://github.com/mongodb/mongo/commit/0d32f203a8d292b4674eb89edf18ad052a376a71

Comment by Githook User [ 14/Apr/16 ]

Author:

{u'username': u'ksuarz', u'name': u'Kyle Suarez', u'email': u'ksuarz@gmail.com'}

Message: SERVER-23590 add background index build test

Tests that indexes are properly updated when updates are performed during a
background index scan.

This test is disabled for now and will be re-enabled in SERVER-23695.
Branch: master
https://github.com/mongodb/mongo/commit/81e98e4f298c22792e7158afeb6215e54ef5531a

Comment by Githook User [ 14/Apr/16 ]

Author:

{u'username': u'ksuarz', u'name': u'Kyle Suarez', u'email': u'ksuarz@gmail.com'}

Message: SERVER-23590 don't propagate DupKeyValue errs

It's possible for the MMAPv1 btree to encounter a key and value already in the
index because of concurrent updates during a background index scan.

We should expect Status::OK() rather than ErrorCodes::DuplicateKeyValue.
Branch: master
https://github.com/mongodb/mongo/commit/7082da52febebd96d6d7871dcfc8868299ec123b

Generated at Thu Feb 08 04:03:51 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.