Not sure what's going on yet... but under Java 1.6 it seems not to hang bug under Java 1.5 hangs fairly easily, on Linux. Java is 1.5.0_22.
I suspect this is relevant: http://stackoverflow.com/questions/3292577/is-it-possible-for-concurrenthashmap-to-deadlock which refers to this JVM bug http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6865591 which then refers to this one http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6822370
It looks like that last bug was fixed in Java 1.6 but not 1.5.
Migrated from LUCENE-3235 by Michael McCandless (@mikemccand), updated May 09 2016
Attachments: LUCENE-3235.patch (versions: 3)
Linked issues: