lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Yandong Yao (JIRA)" <>
Subject [jira] [Commented] (SOLR-3861) regresion of SOLR-2008 - updateHandler should be closed before searcherExecutor
Date Tue, 25 Sep 2012 05:11:08 GMT


Yandong Yao commented on SOLR-3861:


Comment related with SOLR-2008 and this:

We are using many shards, and will load/unload shards according to its usage pattern. Sometime
when we try to unload shards, we encounter issues mentioned in SOLR-2008. 

I am not sure whether this will result in any data loss, (we have encountered some issues,
while it is caused by our client code mostly, we have used read write lock to protect unloading
shard code, so that if there are threads indexing data to this shard, then it won't be unloaded.
After this change, so far so good. while we still encounter exception mentioned in SOLR-2008
in solr log).

Also we have encountered following exception sometimes when we try to unloading shard (we
will always call commit before unloading shard): 

BTW: we are using one old (lucene.version=4.0-SNAPSHOT 1189391) solr 4 snapshot build. 

Sep 14, 2012 4:49:22 AM org.apache.solr.common.SolrException log
SEVERE: auto commit error...:java.lang.RuntimeException: org.apache.lucene.util.ThreadInterruptedException:
java.lang.InterruptedException: sleep interrupted
        at org.apache.solr.core.SolrCore.getSearcher(
        at org.apache.solr.core.SolrCore.getSearcher(
        at org.apache.solr.update.DirectUpdateHandler2.commit(
        at java.util.concurrent.Executors$
        at java.util.concurrent.FutureTask$Sync.innerRun(
        at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(
        at java.util.concurrent.ScheduledThreadPoolExecutor$
        at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(
        at java.util.concurrent.ThreadPoolExecutor$
Caused by: org.apache.lucene.util.ThreadInterruptedException: java.lang.InterruptedException:
sleep interrupted
        at org.apache.lucene.index.SegmentInfos$
        at org.apache.solr.core.StandardIndexReaderFactory.newReader(
        at org.apache.solr.core.SolrCore.getSearcher(
        ... 11 more
Caused by: java.lang.InterruptedException: sleep interrupted
        at java.lang.Thread.sleep(Native Method)
        at org.apache.lucene.index.SegmentInfos$
        ... 17 more 
> regresion of SOLR-2008 - updateHandler should be closed before searcherExecutor
> -------------------------------------------------------------------------------
>                 Key: SOLR-3861
>                 URL:
>             Project: Solr
>          Issue Type: Bug
>    Affects Versions: 4.0-ALPHA, 4.0-BETA
>            Reporter: Hoss Man
>            Assignee: Mark Miller
>            Priority: Blocker
>             Fix For: 4.1, 5.0
>         Attachments: SOLR-3861.patch
> SOLR-2008 fixed a possible RejectedExecutionException by ensuring that SolrCore closed
the updateHandler before the searcherExecutor.
> [] re-flipped this logic in r1159378, which is annotated as fixing
both SOLR-2654 and SOLR-2654 (dup typo i guess) but it's not clear why - pretty sure this
means that the risk of a Rejected exception is back in 4.0-BETA...

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

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

View raw message