question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Mongo versions (many 3.6 versions right now) don't always work because versions are whitelisted in Version.java

See original GitHub issue

Right now, in Version.java https://github.com/flapdoodle-oss/de.flapdoodle.embed.mongo/blob/master/src/main/java/de/flapdoodle/embed/mongo/distribution/Version.java, specific versions are called out. As new versions get introduced, they aren’t always added to this list, or even if they are, they take time to propagate through the release cycle of this repo, and then through the release cycle of other places where this plugin is used (in our case, maven central). The result is that the latest versions supported right now in the 2.0.3 version in maven central are 3.6.0 and 3.6.2. We’re trying to use 3.6.5, and the version doesn’t match exactly.

Can you change this to look for the “latest version below the number specified”? So if we use 3.6.5, it will downgrade to using the config found in the 3.6.2 version.

Right now this is manifesting itself because I can download the 3.6.5 version, but it won’t start, because it’s not grabbing the param overrides that exist in 3.6.2 in Version.java, namely the one to omit --nohttpinterface. Because of this, mongo won’t start because this option is passed, and is not allowed in 3.6.x.

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Reactions:1
  • Comments:7 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
Loki-Afrocommented, Jun 7, 2018

@glajchs well if that’s all you need 😃 - done

1reaction
Loki-Afrocommented, Jun 5, 2018

@joelittlejohn so basically all he really needs is a getter on IFeatureAwareVersion which returns the Features so that one could write the follwoing:

		EnumSet<Feature> features = Version.Main.PRODUCTION.getFeatures();
		IFeatureAwareVersion iFeatureAwareVersion = Versions.withFeatures(new GenericVersion("6.6.6"), features);

that way the black magic happens not in this library. Since PRODUCTION is a moving target itself … If you wanna extend that further than check if your version starts with 3.6 and use the feaatures of de.flapdoodle.embed.mongo.distribution.Version.Main#V3_6 - features on the main versions basically never change …

@philwebb could be interested in this too

correct?

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to downgrade mongo shell version from 4.4 to 3.6?
Now in the terminal, I'm having WARNING: shell and server versions do not match in the terminal. I wanna downgrade only mongo shell...
Read more >
Mongodb Mongodb : List of security vulnerabilities - CVE Details
# CVE ID CWE ID Vulnerability Type(s) Publish Date Update Date Score Gaine... 1 CVE‑2022‑24272 617 DoS 2022‑04‑21 2022‑05‑11 4.0 None 2 CVE‑2021‑32040 787 Overflow...
Read more >
How to Fix MongoDB Atlas IP Whitelisting Issues - Studio 3T
Troubleshoot your connection error and find solutions to the most common MongoDB Atlas login issues that relate to IP whitelisting.
Read more >
MongoDB 3.6 end of life April 2021 - UniFi controller
MongoDB 3.6 is the most pressing legacy issue, the next one is Java 8, while still supported and obtainable via i.e. AdoptOpenJDK you...
Read more >
Knowledge Base - JFrog
x, it was possible to remove the /artifactory context, either by modifying the Tomcat configuration or via the reverse proxy. In subsequent versions...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found