SERVER-90516 Require magic restore node to run with --replSet and set parameter in targeted tests (#22230) This PR addresses the issue where we weren't running magic restore nodes with `--replSet` in our targeted tests. I've now made it a requirement to pass in the parameter when we run magic restore. Cloud confirmed they don't support backing up standalones, and we already implicitly require the node being restored to be a replica set (`--replSetConfig` is a required restore configuration parameter). I want to note that the automation credentials test were breaking with an error `no timestamp provided for an update to a table configured to always use timestamps`. This was occurring when we tried to do an untimestamped write to a restored table that had existing timestamped writes. Turns out we hit this issue in the legacy restore procedure as well ([HELP-45192](https://jira.mongodb.org/browse/HELP-45192)), so I needed to add a line of code that skipped the WT timestamp check for magic restore. This is safe because we're only taking unstable checkpoints during the restore process, and all timestamps are set correctly at the end. We also aren't concerned with resumability of the restore procedure at the moment. The linked HELP ticket has a reference to the `wiredTigerSkipTableLoggingChecksOnStartup` parameter, but that's not relevant for magic restore since we're not doing restarts. [evergreen](https://evergreen.mongodb.com/version/66450586b4a29f0007ba0417) (all magic restore targeted tests are passing except `magic_restore_oidc_replica_set.js`, but [that's a known issue](https://jira.mongodb.org/browse/BF-33184). --------- Co-authored-by: Alex Neben <alex.neben@mongodb.com> GitOrigin-RevId: 6b7adfd56c3a8b5a7c6f48a342305015575c2e95
3 месяца назад История
README.md

Logo MongoDB README

Welcome to MongoDB!

Components

  • mongod - The database server.
  • mongos - Sharding router.
  • mongo - The database shell (uses interactive javascript).

Download MongoDB

  • https://www.mongodb.com/try/download/community
  • Using homebrew brew tap mongodb/brew
  • Using docker image docker pull mongo

Building

See Building MongoDB.

Running

For command line options invoke:

$ ./mongod --help

To run a single server database:

$ sudo mkdir -p /data/db
$ ./mongod
$
$ # The mongo javascript shell connects to localhost and test database by default:
$ ./mongo
> help

Installing Compass

You can install compass using the install_compass script packaged with MongoDB:

$ ./install_compass

This will download the appropriate MongoDB Compass package for your platform and install it.

Drivers

Client drivers for most programming languages are available at https://docs.mongodb.com/manual/applications/drivers/. Use the shell (mongo) for administrative tasks.

Bug Reports

See https://github.com/mongodb/mongo/wiki/Submit-Bug-Reports.

Packaging

Packages are created dynamically by the buildscripts/packager.py script. This will generate RPM and Debian packages.

Learn MongoDB

  • Documentation - https://docs.mongodb.com/manual/
  • Developer Center - https://www.mongodb.com/developer/
  • MongoDB University - https://learn.mongodb.com

Cloud Hosted MongoDB

https://www.mongodb.com/cloud/atlas

Forums

  • https://mongodb.com/community/forums/

    Technical questions about using MongoDB.

  • https://mongodb.com/community/forums/c/server-dev

    Technical questions about building and developing MongoDB.

LICENSE

MongoDB is free and the source is available. Versions released prior to October 16, 2018 are published under the AGPL. All versions released after October 16, 2018, including patch fixes for prior versions, are published under the Server Side Public License (SSPL) v1. See individual files for details.

Конвейеры
0 успешных
0 с ошибкой