-
Notifications
You must be signed in to change notification settings - Fork 163
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add a app id to schema change history store to prevent server drop op…
…timization from running (#6927) * Prevent baas server drop optimization from running * Copy entire evergreen/ directory to remote host * Renamed add_dummy_app.js; moved fake app id to earlier in script --------- Co-authored-by: Kirollos Morkos <kiro.morkos@mongodb.com>
- Loading branch information
Showing
6 changed files
with
39 additions
and
21 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
// Add a fake version to the schema change history store so that the drop optimization does not run. | ||
// Drop optimization runs asynchronously to drop the schema change history store after PBS sync is | ||
// terminated or a PBS app is deleted and there is only one PBS app present at the time of sync | ||
// termination or app deletion. | ||
// This caused issues with CI tests failing once app deletions starting being done asynchronously | ||
let dummy_app = db.schema_change_history.insertOne({"_id" : new ObjectId()}); | ||
if (!dummy_app) { | ||
throw "Could not insert a dummy app!"; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters