lucene-solr-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Yonik Seeley (JIRA)" <>
Subject [jira] Updated: (SOLR-1543) StreamingUpdateSolrServer threading bug
Date Fri, 06 Nov 2009 00:57:32 GMT


Yonik Seeley updated SOLR-1543:

    Attachment: SOLR-1543.patch

This patch most likely does not fix the problem (I don't even know how to reproduce the problem
at this point).  But it does:
 - unlock the lock in a finally block
 - fix thread visibility of the lock by making it volatile
 - change the lock in each runner to be a countdown latch since the only purpose appears to
be to wait for the runner to stop.  This fixes a race condition where previously the lock/unlock
pair in blockUntilFinished() could possibly execute *before* the runner itself locks the lock.

There are other race conditions and thread safety problems I see, but I'm not sure if any
are serious or not.

> StreamingUpdateSolrServer threading bug
> ---------------------------------------
>                 Key: SOLR-1543
>                 URL:
>             Project: Solr
>          Issue Type: Bug
>    Affects Versions: 1.4
>            Reporter: Yonik Seeley
>         Attachments: SOLR-1543.patch
> StreamingUpdateSolrServer - indexing process stops in a couple of hours

This message is automatically generated by JIRA.
You can reply to this email to add a comment to the issue online.

View raw message