d7b9c68705b380b45068d5461b389f7244b9a6aa | Author: Doug Rohrer <doug@therohrers.org>
| 2024-07-18 13:18:32-04:00
CASSANDRA-19783 InstanceClassLoader leak detection
This commit adds a WeakHashMap-backed set of InstanceClassLoaders which can be used to
count the live instances of classloaders. This, in turn, is used in ResourceLeakTest
in Cassandra's main source to detect leaking InstanceClassLoaders, and will allow us
to find them in CI before a commit gets through that adds a new leak.
f2c41accf847a4e8eb2529cad0408ff220c40683 | Author: Doug Rohrer <jeetkundoug@apache.org>
| 2024-06-28 16:56:03-04:00
CASSANDRA-19783 - InstanceClassLoader leak detection
This commit (along with the related in-jvm-dtest API change) adds the ability for ResourceLeakTest
to actually detect InstanceClassLoader leaks in 3 loops. In order to find these in CI:
- Pull in the in-jvm dtest API changes in 0.17.0
- Enable the looperEverythingTest to run (but not the others, which remain ignored)
In addition, this commit updates netty to 4.1.113 as the version
of netty previously used (4.1.96) caused a classloader leak (fixed in
Netty 4.1.98)
Patch by Doug Rohrer and Sam Tunnicliffe (in-jvm-dtest fix); reviewed by Mick Semb Wever for CASSANDRA-19783
and CASSANDRA-19239