Community
Chat Logs
Tuesday, October 6, 2026
- * julemand101 joined #java
- * svm_invictvs joined #java
- * hwpplayer1 joined #java
- * OmniRadix69891 joined #java
- * Inline joined #java
- * ptomli9 joined #java
- * michele joined #java
- * deadmarshal joined #java
- * New-Dawn-Owl joined #java
- * metalmaniac joined #java
- * stfstfm joined #java
- * node1 joined #java
- * Ragnor joined #java
- * stfstfm joined #java
- * PocketKiller joined #java
- * handicraftsman joined #java
- * inlineE joined #java
- * Afroboy joined #java
- * node1 joined #java
- * acidjnk joined #java
- * pebble joined #java
- * node1 joined #java
- * schan99 joined #java
- * ztevoz joined #java
- * Exa joined #java
- * jreicher joined #java
- * MikeBux joined #java
- * raj joined #java
- * Exagone313 joined #java
- * stfstfm joined #java
- * acidjnk joined #java
- * svm_invictvs joined #java
- * PocketKiller joined #java
- * AllxIO64 joined #java
- * vitaliy joined #java
- * nevet joined #java
- * CodeGeek!~codegeek@about/java/CodeGeek changed the topic to: Welcome! || Read Channel Rules at https://javachannel.org/ before participating. || Paste limit is two lines; ~pastebin lists options. || No applets, please. || Minecraft, Android, and Javascript all have their own channel. || You are being logged.
- * GreenResponse joined #java
- dreamrealhttps://bytecode.news/posts/2026/10/testcontainers-and-reuse
- javabotdreamreal's title: "Testcontainers and Reuse | ByteCode.News"
- * jreicher joined #java
- * stfstfm_ joined #java
- * stfstfm joined #java
- * johnjay joined #java
- * johnjay joined #java
- * johnjay joined #java
- dreamrealhttps://news.ycombinator.com/item?id=49977000 upvotes appreciated, I'm trying to get this to the front page of HN so I can see how the front end endures
- nevetTestcontainers and Reuse | Hacker News
- javabotdreamreal's title: "Testcontainers and Reuse | Hacker News"
- * sojuus3r joined #java
- dreamreal(I did not post this to HN)
- Paradreamreal: neat, i'm gonna steal that
- dreamrealPara: :)
- dreamrealIt's definitely nicer - my builds for nevet lost five literal minutes on deployments
- * jamezp joined #java
- * ferdna joined #java
- * iusr joined #java
- * New-Dawn-Owl joined #java
- * ramontjunior joined #java
- * Inline joined #java
- * JonathanD joined #java
- * nevet joined #java
- * CodeGeek!~codegeek@about/java/CodeGeek changed the topic to: Welcome! || Read Channel Rules at https://javachannel.org/ before participating. || Paste limit is two lines; ~pastebin lists options. || No applets, please. || Minecraft, Android, and Javascript all have their own channel. || You are being logged.
- * Inline joined #java
- deeboi've been kinda battling the opposite of that in spring boot, if you use jdbc:tc:postgresql as the spring boot jdbc url, context caching still reuses the same underlying container for new contexts
- deeboso all tests have to make sure they can run with possibly garbage data left by other tests not running transactionally (intentional or not)
- dreamrealHmm, I wonder how that's propagating: on my machine, every module was getting its own container and choking docker out
- dreamrealmoving to unique scoped *databases* cleared everything up
- deeboat this point i've forgotten what the issue was, each new context in the cache had its own hikaripool to the same db, but somehow new containers were not started
- dreamrealThat's the problem *I* had! New containers were taking too long to initialize
- dreamrealso now: one container, so it initializes ONCE, and new dbs can be created and destroyed instantly because connecting to postgres doesn't have to wait on docker
- * michele joined #java
- deebomaybe the container is created on Class.forName() or something so it's only done once per jvm, never looked into how jdbc testcontainers work
- ParaI have this in my personal project https://gist.github.com/esuomi/1a7a5b847f0b5943a63b35b91a226c1f
- nevetPostgreSQLExtension.java
- ParaFeel free to steal if there's anything worth stealing.
- dreamrealdeebo: if you don't explicitly turn on reuse, it starts a container for every JVM
- dreamrealbut turning on reuse isn't enough, you also need to differentiate schemas if they differ
- deeboyeah we don't fork tests from gradle and any multimodules are trivial, mostly for sharing domain classes etc so basically single jvm for tests
- dreamreal*nod*
- deeboyeah the driver has one container per url, i remember testing adding like ?cachebust=${time} or something and it made it work, but broke something else
- * stfstfm_ joined #java
- * Inline joined #java
- * stfstfm joined #java
- * CodeGeek!~codegeek@about/java/CodeGeek changed the topic to: Welcome! || Read Channel Rules at https://javachannel.org/ before participating. || Paste limit is two lines; ~pastebin lists options. || No applets, please. || Minecraft, Android, and Javascript all have their own channel. || You are being logged.
- * nevet joined #java
- * akaWolf joined #java
- * michele joined #java
- * magla joined #java
- * gareppa joined #java
- * New-Dawn-Owl joined #java
- * Fiji joined #java
- * m2 joined #java
- * schan99 joined #java
- * cheeser joined #java
- * ztevoz joined #java
- * metalmaniac joined #java
- * stfstfm_ joined #java
- * NewDawnOwl joined #java
- * magla joined #java
- * Fiji joined #java
- * APic joined #java
- * node1 joined #java
- * ramontjunior joined #java
- * svm_invictvs joined #java
- * stfstfm joined #java
- * stfstfm_ joined #java
- * schan99 joined #java
- * stfstfm joined #java
- * kathadris joined #java
- * New-Dawn-Owl joined #java
- * stfstfm_ joined #java
- * Fiji joined #java
- * New-Dawn-Owl joined #java
- * stfstfm joined #java
- * comrad joined #java
- * Ekho joined #java
- * kathadris joined #java
- * kusanagi joined #java
- * aduke2704 joined #java
- * Cyp_ joined #java
- * nts joined #java