Skip to content

Releases: silaev/mongodb-replica-set

Support for MongoDB 5+

13 Jan 07:23
b24a191
Compare
Choose a tag to compare

What's Changed

🚀Features

Add support for MongoDB 5+

0.4.3

26 Feb 15:45
Compare
Choose a tag to compare

What's Changed

🚀Features

  • Add commandLineOptions to input.

🧹 Other Changes

  • Disable privilegedMode for qoomon/docker-host in favour of NET_ADMIN, NET_RAW capabilities.

Add ability to use host.docker.internal

22 Feb 14:58
a16fb6f
Compare
Choose a tag to compare

What's Changed

🚀Features

  • Add ability to use host.docker.internal via MongoDbReplicaSet.builder().useHostDockerInternal(true|false).build(); or the system property mongoReplicaSetProperties.useHostDockerInternal=true|false. If true then use host.docker.internal of Docker, otherwise take dockerhost of Qoomon docker-host (default value is false to support all Docker versions). Make sure that your OS host file includes one of them. All new Docker versions support the first variant.

Code stabilization

17 Feb 15:50
311d1e5
Compare
Choose a tag to compare

What's Changed

🧹 Other Changes

  • Fix incorrect json representation coming from framed stdout;
  • Fix waiting conditions;
  • Add retry to provisioning replica-set;
  • Add GitHub Actions.

Adjust to MongoDB 4.4.0, code stabilization

18 Aug 15:59
dc9ff73
Compare
Choose a tag to compare

What's Changed

🚀Features

  • Adjust to MongoDB 4.4.0;
  • Add slaveDelayNumber;
  • Split connectNodeToNetwork into proper methods for soft and hard connections.

📖 Examples

  • Change MongoDbDelayedMembersITTest to possibility turn delayed node into secondary.

🧹 Other Changes

  • Code stabilization.

0.3.1

16 May 05:58
Compare
Choose a tag to compare

What's Changed

🚀Features

  • Add Delayed Replica Set Members support
  • Add try-with-resources support

📖 Examples

  • Add MongoDbDelayedMembersITTest to simulate a delayed member to become a primary node

🧹 Other Changes

  • Code stabilization

Fault tolerance test support

11 Mar 07:07
Compare
Choose a tag to compare

What's Changed

🚀Features

  • Stop or kill a MongoDB node
  • Disconnect a MongoDB node from network
  • Connect a MongoDB node to network (with or without replica set reconfiguration)
  • Toxiproxy for soft disconnections
  • Wait for master re-election, wait for all MongoDB nodes up/down etc.
  • Get arbiter/master/secondary MongoDB node

📖 Examples

  • Add MongoDbReplicaSetDistributionTestITTest to simulate failures between 2 data centers when one or another goes down (ReadPreference, master reelection, support for write/read operations)
  • Add MongoDbReplicaSetFaultTolerancePSAApiITTest and MongoDbReplicaSetFaultTolerancePSSApiITTest to test failovers for Primary with a Secondary and an Arbiter (PSA) and Primary with Two Secondary Members (P-S-S)

🐛 Bug Fixes

  • Fix container exit code check

🧹 Other Changes

  • Add Testcontainers and JUnit BOM