tolbertam / sstable-tools

Tools for parsing, creating and doing other fun stuff with sstables
Apache License 2.0
163 stars 31 forks source link

Debug InstanceTidier leak that only seems to appear when running in maven console #39

Open tolbertam opened 8 years ago

tolbertam commented 8 years ago
org.apache.cassandra.utils.concurrent.Ref$State@6b25a2cc) to class org.apache.cassandra.io.sstable.format.SSTableReader$InstanceTidier@1601791084:/Users/atolbert/Documents/Projects/sstable-tools/ma-1-big was not released before the reference was garbage collected.

Seems to happen for each SSTable opened, but only with mvn exec:java. I can't seem to reproduce using an executable jar.

tolbertam commented 8 years ago

Can reproduce it with executable jar too by attaching a yourkit agent. Must just be that there were no full GCs happening in my session.

tolbertam commented 8 years ago

The result of this is a file stays open per query/page until GC which is bad (such fix it).