[SERVER-28944] Change internal reporting order of validate() Created: 24/Apr/17  Updated: 30/Oct/23  Resolved: 13/Jun/17

Status: Closed
Project: Core Server
Component/s: Internal Code
Affects Version/s: 3.5.6
Fix Version/s: 3.5.9

Type: Improvement Priority: Minor - P4
Reporter: Robert Guo (Inactive) Assignee: Robert Guo (Inactive)
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Related
Backwards Compatibility: Fully Compatible
Sprint: TIG 2017-06-19
Participants:
Linked BF Score: 0

 Description   

As pointed out in SERVER-28801, when there's an index key/document mismatch, both if and else if statements will be true here. But if we switch the order of the if and else if statements, we'll be able to see which specific index is invalid.



 Comments   
Comment by Githook User [ 13/Jun/17 ]

Author:

{u'username': u'guoyr', u'name': u'Robert Guo', u'email': u'robert.guo@10gen.com'}

Message: SERVER-28944 change validate() reporting order
Branch: master
https://github.com/mongodb/mongo/commit/e9e578b937bc3d7bfa15478c59b974a165c615c5

Comment by Max Hirschhorn [ 05/Jun/17 ]

Reverted due to Evergreen failures with running the ./dbtest validate_tests test case: https://evergreen.mongodb.com/task/mongodb_mongo_master_enterprise_rhel_62_64_bit_dbtest_ff41e9df657f70900bc812d29346790370f7d177_17_06_05_20_28_13.

Comment by Githook User [ 05/Jun/17 ]

Author:

{u'username': u'visemet', u'name': u'Max Hirschhorn', u'email': u'max.hirschhorn@mongodb.com'}

Message: Revert "SERVER-28944 change validate() reporting order"

This reverts commit ff41e9df657f70900bc812d29346790370f7d177.
Branch: master
https://github.com/mongodb/mongo/commit/48c33c144b68369d47dd6a3cf0a978fbfb833066

Comment by Githook User [ 05/Jun/17 ]

Author:

{u'username': u'guoyr', u'name': u'Robert Guo', u'email': u'robert.guo@10gen.com'}

Message: SERVER-28944 change validate() reporting order
Branch: master
https://github.com/mongodb/mongo/commit/ff41e9df657f70900bc812d29346790370f7d177

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