You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The Memory-Leak fix ThreadLocal for all threads will be cleared up on shutdown clears all ThreadLocals of the whole JVM even if they are not owned/created by exist.
When using embedded exist-db in e.g integration testing this leads to a changed system state if the db is shutdown before the end of the test and ThreadLocals are used by the system under test or the testing harness.
Our current solution is to snapshot relevant ThreadLocals and restore them after completing the db.shutdown().
But maybe the current implementation could be extended to filter/skip "external" ThreadLocals.
This issue was encountered with eXist-db 6.3.0
The text was updated successfully, but these errors were encountered:
@SamuelBussmann First of all, thank you for reporting this issue. We will probably discuss this next week on Monday on our community call. You can join us if you are interested.
For us we have several options to workaround the issue. So it's not really a problem anymore.
But it was a bit tricky to trace it back to this source, as the behaviour seemed to differ between single local tests or CI. It seemed to be skiped or delayed for some cases of shutdown()-calls, but I couldn't find any reason within the code-path to not always execute the clearThreadLocals()
The Memory-Leak fix ThreadLocal for all threads will be cleared up on shutdown clears all ThreadLocals of the whole JVM even if they are not owned/created by exist.
When using embedded exist-db in e.g integration testing this leads to a changed system state if the db is shutdown before the end of the test and ThreadLocals are used by the system under test or the testing harness.
Our current solution is to snapshot relevant ThreadLocals and restore them after completing the db.shutdown().
But maybe the current implementation could be extended to filter/skip "external" ThreadLocals.
This issue was encountered with eXist-db 6.3.0
The text was updated successfully, but these errors were encountered: