[SERVER-30357] Allow users to run the validate cmd with {background:true} Created: 26/Jul/17  Updated: 30/Oct/23  Resolved: 05/Sep/19

Status: Closed
Project: Core Server
Component/s: Storage
Affects Version/s: None
Fix Version/s: 4.3.1

Type: Task Priority: Major - P3
Reporter: Gregory Wlodarek Assignee: Dianna Hohensee (Inactive)
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Attachments: Text File 0001-Background-Validation.patch    
Issue Links:
Depends
depends on SERVER-42223 Use checkpoint cursors for collection... Closed
is depended on by SERVER-42357 Periodically release locks during col... Closed
Documented
is documented by DOCS-13157 Investigate changes in SERVER-30357: ... Closed
Duplicate
is duplicated by SERVER-43172 Add 'requires_persistence' tag to bac... Closed
Problem/Incident
Related
is related to SERVER-43134 Only run background validation on che... Closed
Backwards Compatibility: Fully Compatible
Sprint: Storage 2017-08-21, Execution Team 2019-08-26, Execution Team 2019-09-09
Participants:
Linked BF Score: 26

 Description   

Instead of the existing code

background = false;

in validate.cpp, we will parse the user cmd request's "background" field and initialize it with that value. If unspecified, "background" defaults to false. SERVER-42223 will set up the code to act on background==false.

Additionally, return an error if {full:true} is specified along with {background:true}.



 Comments   
Comment by Githook User [ 05/Sep/19 ]

Author:

{'email': 'dianna.hohensee@mongodb.com', 'name': 'Dianna Hohensee'}

Message: SERVER-30357 Allow users to run the validate cmd with

{background:true}

Branch: master
https://github.com/mongodb/mongo/commit/c792cb14e0a555c78e67bb4547aa220e42fe2653

Comment by Dianna Hohensee (Inactive) [ 05/Sep/19 ]

Reverting this because the parallel test suites are broken:
My test takes a IX collection lock
Another test queues a global X lock request
My test queues CRUD op IX collection lock requests behind the X lock request, hanging.

Comment by Githook User [ 05/Sep/19 ]

Author:

{'email': 'dianna.hohensee@mongodb.com', 'name': 'Dianna Hohensee'}

Message: Revert "SERVER-30357 Allow users to run the validate cmd with

{background:true}

"

This reverts commit e8e3f6ff2604e33e2d7fe1ec56d6559df066a452.
Branch: master
https://github.com/mongodb/mongo/commit/1d5d6a2fa25ebf81e96052c32425816f6d64d2e1

Comment by Githook User [ 05/Sep/19 ]

Author:

{'email': 'dianna.hohensee@mongodb.com', 'name': 'Dianna Hohensee'}

Message: SERVER-30357 Allow users to run the validate cmd with

{background:true}

Branch: master
https://github.com/mongodb/mongo/commit/e8e3f6ff2604e33e2d7fe1ec56d6559df066a452

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