Skip to content

Add compatibility with MongoDB 6#5771

Merged
eddumelendez merged 1 commit intomasterfrom
gh-5768
Aug 26, 2022
Merged

Add compatibility with MongoDB 6#5771
eddumelendez merged 1 commit intomasterfrom
gh-5768

Conversation

@eddumelendez
Copy link
Member

MongoDB 6 removed mongo shell and mongosh is recommended.
See here

Closes #5768

@eddumelendez eddumelendez requested a review from a team August 25, 2022 16:43
@eddumelendez eddumelendez added this to the next milestone Aug 25, 2022
Comment on lines +95 to +96
String cmd = this.isAtLeastVersion6 ? "mongosh" : "mongo";
return new String[] { cmd, "--eval", command };
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@eddumelendez WDYT about not using ComparableVersion but doing "mongosh || mongo"-style command, so that the shell will "fallback" automatically?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That sounds like a good idea, let's do a follow-up PR for this @eddumelendez and keep this in mind as a pattern when possible 👍

@luketn
Copy link
Contributor

luketn commented Sep 27, 2022

@eddumelendez (cc @loicmathieu) it would be really awesome for Quarkus users if we could get a release of test containers with Mongo 6 containers support included. Any chance of that?

@kiview
Copy link
Member

kiview commented Sep 27, 2022

@luketn There will be a release very soon that will include this PR 🙂

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug]: mongodb 6.0 does not start

4 participants