flapdoodle-oss / de.flapdoodle.embed.mongo

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

Extract package hash collision #491

Closed michaelmosmann closed 10 months ago

michaelmosmann commented 11 months ago

Discussed in https://github.com/flapdoodle-oss/de.flapdoodle.embed.mongo/discussions/488

Originally posted by **jagjit-arora** October 28, 2023 When downloading the package we check if file is present but in case of a extracting it if something is present with the same hash why do we throw an exception? src/main/java/de/flapdoodle/embed/process/store/ContentHashExtractedFileSetStore.java Scenario, running multiple test(working with `@springboottest`) simultaneously where it starts downloading the binary is able to successfully download it, after it was extracted by whichever test finished the test all other test would face hash collision IO exception. What is best way to deal with this.