maven-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Milos Kleint (JIRA)" <>
Subject [jira] (MINDEXER-52) reentrant locking in DefaultIndexingContent flawed
Date Mon, 19 Mar 2012 09:33:03 GMT
Milos Kleint created MINDEXER-52:

             Summary: reentrant locking in DefaultIndexingContent flawed
                 Key: MINDEXER-52
             Project: Maven Indexer
          Issue Type: Bug
    Affects Versions: 4.1.2
            Reporter: Milos Kleint
            Priority: Critical contains the following pattern:

    public IndexReader getIndexReader()
        throws IOException

            return indexReader;


together with installBottleWarmer() method that spawns a concurrent thread that performs "warmup"
operations, it makes it impossible to access the indexReader instance safely. A correct approach
would be to wrap the entire operation with the indexreader in the mutex lock, not the the
accessor method.

please see  and
for examples when this approach is failing. it's fairly rare but  keeps on reoccuring, all
access (searching, indexing) from netbeans is protected by a mutex and happens exclusively.
I'm assuming that the installBottleWarmer() thread is the one iterfering with our access occasionally.

This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:!default.jspa
For more information on JIRA, see:


View raw message