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.

unrecognised option '--noprealloc' with Spring Boot 2.6.2 and de.flapdoodle.embed.mongo 3.2.7

See original GitHub issue

Hi, 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:closed
  • Created 2 years ago
  • Comments:10 (6 by maintainers)

github_iconTop GitHub Comments

2reactions
michaelmosmanncommented, Jan 23, 2022

@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…

1reaction
michaelmosmanncommented, Jan 24, 2022
Read more comments on GitHub >

github_iconTop 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 >

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