[SERVER-73481] Validate does not detect out-of-order keys with {full: false} Created: 31/Jan/23  Updated: 29/Oct/23  Resolved: 03/Feb/23

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

Type: Improvement Priority: Major - P3
Reporter: Gregory Wlodarek Assignee: Gregory Wlodarek
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Backports
Related
related to SERVER-71950 Fail and log the operation when out-o... Closed
related to SERVER-72677 Full validation doesn't always report... Closed
Backwards Compatibility: Fully Compatible
Backport Requested:
v6.2, v6.0, v5.0, v4.4, v4.2
Sprint: Execution Team 2023-02-06
Participants:

 Description   

When running validate with {full: true}, we call WT_SESSION::verify() on all tables belonging to the collection. This will report if any keys are out-of-order. However, we have no checks to detect out-of-order keys when running {full: false}. In fact we invariant that RecordIds are returned in order, which can lead to a crash.



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

Author:

{'name': 'Gregory Wlodarek', 'email': 'gregory.wlodarek@mongodb.com', 'username': 'GWlodarek'}

Message: SERVER-73481 Ensure validate detects out-of-order keys with

{full: false}

(cherry picked from commit 288fee69456c966751a49870eefead1b7fa6ae76)
Branch: v4.2
https://github.com/mongodb/mongo/commit/056837054414f662df7c755b8c70ca1d7e4dc13a

Comment by Githook User [ 10/Feb/23 ]

Author:

{'name': 'Gregory Wlodarek', 'email': 'gregory.wlodarek@mongodb.com', 'username': 'GWlodarek'}

Message: SERVER-73481 Ensure validate detects out-of-order keys with

{full: false}

(cherry picked from commit 288fee69456c966751a49870eefead1b7fa6ae76)
Branch: v4.4
https://github.com/mongodb/mongo/commit/57c08db7751a049911c9d36837006814cd5ac3b5

Comment by Githook User [ 10/Feb/23 ]

Author:

{'name': 'Gregory Wlodarek', 'email': 'gregory.wlodarek@mongodb.com', 'username': 'GWlodarek'}

Message: SERVER-73481 Ensure validate detects out-of-order keys with

{full: false}

(cherry picked from commit 288fee69456c966751a49870eefead1b7fa6ae76)
Branch: v6.0
https://github.com/mongodb/mongo/commit/eeebf8387291cf2c0e92ab092e3db4882042b50b

Comment by Githook User [ 10/Feb/23 ]

Author:

{'name': 'Gregory Wlodarek', 'email': 'gregory.wlodarek@mongodb.com', 'username': 'GWlodarek'}

Message: SERVER-73481 Ensure validate detects out-of-order keys with

{full: false}

(cherry picked from commit 288fee69456c966751a49870eefead1b7fa6ae76)
Branch: v5.0
https://github.com/mongodb/mongo/commit/e31f1cca6073356a9463f6f0483a4f34c0f35e1e

Comment by Githook User [ 03/Feb/23 ]

Author:

{'name': 'Gregory Wlodarek', 'email': 'gregory.wlodarek@mongodb.com', 'username': 'GWlodarek'}

Message: SERVER-73481 Ensure validate detects out-of-order keys with

{full: false}

Branch: master
https://github.com/mongodb/mongo/commit/288fee69456c966751a49870eefead1b7fa6ae76

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