flapdoodle-oss / de.flapdoodle.embed.mongo

...will provide a platform neutral way for running mongodb in unittests.
Apache License 2.0
910 stars 160 forks source link

Not working on ARm64V8 #499

Closed ams-amila closed 11 months ago

ams-amila commented 11 months ago

I'm using

<dependency>
    <groupId>de.flapdoodle.embed</groupId>
    <artifactId>de.flapdoodle.embed.mongo.spring30x</artifactId>
    <version>4.11.0</version>
    <scope>test</scope>
</dependency>

with

de.flapdoodle.mongodb.embedded.version=4.0.2

it looks embedded mongodb not supporting for this architecture.

Caused by: java.lang.RuntimeException: rollback after error on transition to State(DownloadCache), State(ProcessArguments), State(Package), State(ExtractedFileSetStore), successful reached:
--
15 | State(ProcessWorkingDir)=ProcessWorkingDir(/tmp/temp--8ab0139f-ac2d-443c-a8b5-0bbb395464cb/workingDir11440805366876635285),
16 | State(Distribution)=GenericFeatureAwareVersion{4.0.2}:Platform{operatingSystem=Linux, architecture=ARM_64, distribution=Amazon, version=AmazonLinux2},
17 | State(SupportConfig)=SupportConfig{name=mongod, supportUrl=https://github.com/flapdoodle-oss/de.flapdoodle.embed.mongo/issues, messageOnException=de.flapdoodle.embed.mongo.transitions.ProcessDefaults$$Lambda$1324/0x00000008011841b8@271f6597},
18 | State(Name)=Name(mongod),
19 | State(PersistentDir)=ImmutablePersistentDir(/root/.embedmongo),
20 | State(DatabaseDir)=DatabaseDir(/tmp/temp--8ab0139f-ac2d-443c-a8b5-0bbb395464cb/mongod-database14473766787065277724),
21 | State(TempDir)=ImmutableTempDir(/tmp/temp--8ab0139f-ac2d-443c-a8b5-0bbb395464cb),
22 | State(DistributionBaseUrl)=DistributionBaseUrl(https://fastdl.mongodb.org),
23 | State(Platform)=Platform{operatingSystem=Linux, architecture=ARM_64, distribution=Amazon, version=AmazonLinux2},
24 | State(ProcessConfig)=ProcessConfig{daemonProcess=false, stopTimeoutInMillis=5000},
25 | State(ProcessEnv)=ProcessEnv({}),
26 | State(ProcessOutput)=ProcessOutput{output=de.flapdoodle.embed.process.io.Slf4jStreamProcessor@773eb14c, error=de.flapdoodle.embed.process.io.Slf4jStreamProcessor@3289d5df, commands=de.flapdoodle.embed.process.io.NamedOutputStreamProcessor@284c84de},
michaelmosmann commented 11 months ago

@ams-amila currently there is only support for 4.2.24 and up (see https://github.com/flapdoodle-oss/de.flapdoodle.embed.mongo.packageresolver/blob/3bbe15adb6b49acaa83ea09201b119795b623da3/src/test/resources/de/flapdoodle/embed/mongo/packageresolver/explainedSnapshot.txt#L122C35-L122C83) ..

Even on the mongodb page itself i could not find support for this old version: https://www.mongodb.com/download-center/community/releases/archive

michaelmosmann commented 11 months ago

@ams-amila i guess i can close this issue, please reopen if needed.