[SERVER-72677] Full validation doesn't always report information about indexes Created: 10/Jan/23  Updated: 29/Oct/23  Resolved: 31/Jan/23

Status: Closed
Project: Core Server
Component/s: None
Affects Version/s: None
Fix Version/s: 4.4.19, 5.0.15, 6.3.0-rc0, 6.0.5, 6.2.1

Type: Bug Priority: Major - P3
Reporter: Gregory Noma Assignee: Dan Larkin-York
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Backports
Documented
is documented by DOCS-15860 [SERVER] Investigate changes in SERVE... Closed
Duplicate
is duplicated by SERVER-73381 Validation does not correctly surface... Closed
Related
is related to SERVER-73481 Validate does not detect out-of-order... Closed
Assigned Teams:
Storage Execution
Backwards Compatibility: Fully Compatible
Operating System: ALL
Backport Requested:
v6.2, v6.0, v5.0, v4.4
Sprint: Execution Team 2023-02-06
Participants:

 Description   

If the collection portion of full validation reports errors, we return early from the command after also doing the index portion of full validation. However, since we have't yet populated the indexes map, any index information (including warnings, errors, or even simply number of indexes) will not be reported in the validate results.



 Comments   
Comment by Githook User [ 11/Feb/23 ]

Author:

{'name': 'Dan Larkin-York', 'email': 'dan.larkin-york@mongodb.com', 'username': 'dhly-etc'}

Message: SERVER-72677 Surface index validation errors arising from WT::verify

(cherry picked from commit 40c93f028e36f78c06756f4bfd358d240bdd9b34)
Branch: v6.2
https://github.com/mongodb/mongo/commit/1239081e30fb48fc06cae77dc1993e19b56f506c

Comment by Githook User [ 10/Feb/23 ]

Author:

{'name': 'Dan Larkin-York', 'email': 'dan.larkin-york@mongodb.com', 'username': 'dhly-etc'}

Message: SERVER-72677 Surface index validation errors arising from WT::verify

(cherry picked from commit 40c93f028e36f78c06756f4bfd358d240bdd9b34)
Branch: v4.4
https://github.com/mongodb/mongo/commit/d1b4e28c9607457cf2dff73d9a11a68334a76aec

Comment by Githook User [ 10/Feb/23 ]

Author:

{'name': 'Dan Larkin-York', 'email': 'dan.larkin-york@mongodb.com', 'username': 'dhly-etc'}

Message: SERVER-72677 Surface index validation errors arising from WT::verify

(cherry picked from commit 40c93f028e36f78c06756f4bfd358d240bdd9b34)
Branch: v6.0
https://github.com/mongodb/mongo/commit/7ffb9df1e14a114a15b87a3158e6be5701290c28

Comment by Githook User [ 10/Feb/23 ]

Author:

{'name': 'Dan Larkin-York', 'email': 'dan.larkin-york@mongodb.com', 'username': 'dhly-etc'}

Message: SERVER-72677 Surface index validation errors arising from WT::verify

(cherry picked from commit 40c93f028e36f78c06756f4bfd358d240bdd9b34)
Branch: v5.0
https://github.com/mongodb/mongo/commit/7877b7785b5276fed86f17bd3dd2dd1a18ab0a97

Comment by Githook User [ 31/Jan/23 ]

Author:

{'name': 'Dan Larkin-York', 'email': 'dan.larkin-york@mongodb.com', 'username': 'dhly-etc'}

Message: SERVER-72677 Surface index validation errors arising from WT::verify
Branch: master
https://github.com/mongodb/mongo/commit/40c93f028e36f78c06756f4bfd358d240bdd9b34

Comment by Matt Kneiser [ 10/Jan/23 ]

Our public docs document nIndexes which is at issue here. So this is a bug.
https://www.mongodb.com/docs/manual/reference/command/validate/#mongodb-data-validate.nIndexes

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