Closed kanpov closed 4 weeks ago
Tried 3.5.0 version of Testcontainers, same issue. This makes testing incredibly unproductive (having to wait 30 secs to even run a test).
This makes it look much more like a testcontainers bug.
The root of the issue was the fact that the /
running btrfs had been tortured to a point where read/write operations slowed down to a grinding halt (I'm using openSUSE where btrfs for everything is default).
For anyone else reading this, please put your /home
on xfs and not btrfs.
Testcontainers version
3.8.0
Using the latest Testcontainers version?
Yes
Host OS
Linux
Host arch
x86
.NET version
8.0.6
Docker version
Docker info
What happened?
Creating a postgresql container using
Testcontainers.PostgreSql
takes about 30 seconds on a fast machine (ryzen 7 2700x, 32gb ram) with native docker (linux, no wsl). The initialization process seems to hang for a while (20-25s) on thesyncing data to disk ... ok
step.Relevant log output
In the below log, you can see the change between "10:40:37" and "10:41:07" in time, hence the delay.
Additional information
No response