Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add compatibility with MongoDB 6 #5771

Merged
merged 1 commit into from Aug 26, 2022
Merged

Add compatibility with MongoDB 6 #5771

merged 1 commit into from Aug 26, 2022

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 as a code owner 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

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