lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Dawid Weiss <>
Subject Thread leak hunt (solr), help needed.
Date Mon, 30 Jul 2012 20:33:51 GMT
So, I've started looking at thread leaks. Lucene tests are, so far,
leak-free at the suite level. Solr has some problems and I could use
some help in trying to figure out how to handle these. So, the first
one is this:


This one leaks a thread from:

	   1) Thread[id=22, name=Thread-3, state=WAITING, group=Overseer
collection creation process.]
	        at sun.misc.Unsafe.park(Native Method)
	        at java.util.concurrent.locks.LockSupport.park(
	        at java.util.concurrent.CountDownLatch.await(

This thread is started by Overseer(.java):

    ThreadGroup ccTg = new ThreadGroup("Overseer collection creation process.");
    Thread ccThread = new Thread(ccTg, new
OverseerCollectionProcessor(reader, id, shardHandler, adminPath));

The fact it's a daemon thread is fine, but it still shouldn't survive
the end of the suite (should be closed/ interrupted). The problem is I
don't see how it can be closed (or interrupted) in a clean way. I am
completely green in terms of zookeeper -- what is it that I should
close/ interrupt to shut this thing down cleanly?


To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message