Skip to content

Align backend and integration tests with MongoDB 7 - #266

Merged
bwaldvogel merged 5 commits into
mainfrom
chore/mongodb-7-testing
Nov 15, 2026
Merged

bwaldvogel merged 5 commits into
mainfrom
chore/mongodb-7-testing

Conversation

@bwaldvogel

Copy link
Copy Markdown
Owner

Upgrade the reference MongoDB from 5.0.18 to 7.0.48 and align backend behavior with MongoDB 7 using shared test expectations.

  • Remove getLastError, resetError and getFreeMonitoringStatus, which are no longer supported by MongoDB 7.
  • Match MongoDB 7 behavior for repeated collection creation, database statistics and aggregation errors.
  • Remove the legacy Java driver and its example, and simplify the remaining JUnit 5 example.
  • Simplify backend interfaces following the removal of per-connection error tracking.

Use the standalone BSON module in core tests and the current sync driver
in examples. Remove the legacy client example and update dependency locks.
Drop getLastError and resetError, including per-connection error history
and synchronized bookkeeping hooks. Assert removed commands directly and
check write failures from CRUD responses without querying getLastError.
Remove the obsolete free-monitoring command. Match MongoDB 7 collection
creation, database statistics and aggregation errors using shared test
expectations.

Upgrade Compose and Testcontainers to MongoDB 7.0.48, use mongosh for the
healthcheck and set nofile to 2048. Integration tests passed twice at 2048;
1024 exhausted file descriptors and crashed MongoDB.
@bwaldvogel
bwaldvogel merged commit ebb46b4 into main Nov 15, 2026
3 checks passed
@bwaldvogel
bwaldvogel deleted the chore/mongodb-7-testing branch November 15, 2026 15:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant