unrecognised option '--noprealloc' with Spring Boot 2.6.2 and de.flapdoodle.embed.mongo 3.2.7
See original GitHub issueHi, I am upgrading from Spring Boot 2.5.8 to 2.6.2.
Since now the property spring.mongodb.embedded.version
is mandatory, I am annotating my test (in a Maven multi-module project) with:
@DataMongoTest(properties = {
"spring.mongodb.embedded.version=5.0.1"
})
but I have a
Caused by: java.lang.RuntimeException: Could not start process: <EOF>
I debugged it, and seen that Mongo is started with this command:
/var/folders/rg/1n7z661961s444dbs1cw3s380000gq/T/extract-1d38d22e-0012-4abf-ba43-3e872d888de9extractmongod --dbpath /var/folders/rg/1n7z661961s444dbs1cw3s380000gq/T/embedmongo-db-a8b668e5-4944-4198-84e6-75067c3fa79a --noauth --noprealloc --smallfiles --nojournal --nohttpinterface --port 60078 --bind_ip 127.0.0.1
which, when manually started, fails with the following errors:
Error parsing command line: unrecognised option '--noprealloc'
Error parsing command line: unrecognised option '--smallfiles'
Error parsing command line: unrecognised option '--nohttpinterface'
I am currently running it on a x86 Mac, but this should run on all environments. Is there any Spring Configuration property to set these?
Issue Analytics
- State:
- Created 2 years ago
- Comments:10 (6 by maintainers)
Top Results From Across the Web
flapdoodle-oss - Bountysource
I'm getting following error when trying to run unit test cases that use embedded mongodb. Springboot version is 2.7.2 and the de.flapdoodle.embed.mongo version ......
Read more >Unable to download embedded MongoDB, behind proxy ...
I am behind a proxy that uses automatic configuration script, as I have observed in the Connection tab of Internet Options. I am...
Read more >Flapdoodle Embedded MongoDB - Maven Repository
Version Vulnerabilities Repository Usages Date
4.1.x 4.1.3 Central 0 Dec 09, 2022
4.1.2 4.1.x Central 0 Dec 09, 2022
4.1.1 4.1.x Central 0 Dec 08, 2022...
Read more >Spring Boot Integration Testing with Embedded MongoDB
Learn how to use Flapdoodle's embedded MongoDB solution together with Spring Boot to run MongoDB integration tests smoothly.
Read more >Spring Boot 2 Test with Embedded MongoDB | by Ian Lim
Is it possible to run a fake embedded MongoDB for Spring Boot 2 testing? ... <groupId>de.bwaldvogel</groupId> ... Option 2 — Flapdoodle Embedded MongoDB....
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
@xiaodongli7 hmm… did a new release… 5.0.5. should work now, but i suspect that the way spring integrates embed mongo is responsible for these issues…
@xiaodongli7 maybe 4.4.9 may work too… i think it depends if a version is in this list: https://github.com/flapdoodle-oss/de.flapdoodle.embed.mongo/blob/master/src/main/java/de/flapdoodle/embed/mongo/distribution/Version.java