You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by "Erick Erickson (JIRA)" <ji...@apache.org> on 2015/08/20 04:55:46 UTC

[jira] [Commented] (SOLR-7947) SolrCloud: after a solr node restarted, all cores in the node are down in /clusterstate.json due to java.nio.channels.OverlappingFileLockException.

    [ https://issues.apache.org/jira/browse/SOLR-7947?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14704217#comment-14704217 ] 

Erick Erickson commented on SOLR-7947:
--------------------------------------

Please raise this kind of thing on the user's list first, and if the consensus is that it's actually a code issue, _then_ raise a JIRA.

At a glance, it _looks_ like you've either killed a Solr abnormally and left a write.lock file laying around and upon restart the core can't load because of that lock.

Or, you have somehow configured two or more cores to point at the same data directory.

> SolrCloud: after a solr node restarted, all cores in the node are down in /clusterstate.json due to java.nio.channels.OverlappingFileLockException.
> ---------------------------------------------------------------------------------------------------------------------------------------------------
>
>                 Key: SOLR-7947
>                 URL: https://issues.apache.org/jira/browse/SOLR-7947
>             Project: Solr
>          Issue Type: Bug
>          Components: SolrCloud
>    Affects Versions: 4.7
>         Environment: Redhat Linux Enterprise Server 5.9 64bit
>            Reporter: Forest Soup
>         Attachments: solr.zip
>
>
> A SolrCloud with 2 solr node in Tomcat server on 2 VM servers. After restart one solr node, the cores on it turns to "down" state and logs showing below errors.
> Logs are in attachmenent.
> ERROR - 2015-07-24 09:40:34.887; org.apache.solr.common.SolrException; null:org.apache.solr.common.SolrException: Unable to create core: collection1_shard1_replica1
> at org.apache.solr.core.CoreContainer.recordAndThrow(CoreContainer.java:989)
> at org.apache.solr.core.CoreContainer.create(CoreContainer.java:606)
> at org.apache.solr.core.CoreContainer$1.call(CoreContainer.java:258)
> at org.apache.solr.core.CoreContainer$1.call(CoreContainer.java:250)
> at java.util.concurrent.FutureTask.run(FutureTask.java:273)
> at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:482)
> at java.util.concurrent.FutureTask.run(FutureTask.java:273)
> at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1156)
> at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:626)
> at java.lang.Thread.run(Thread.java:804)
> Caused by: org.apache.solr.common.SolrException
> at org.apache.solr.core.SolrCore.<init>(SolrCore.java:844)
> at org.apache.solr.core.SolrCore.<init>(SolrCore.java:630)
> at org.apache.solr.core.ZkContainer.createFromZk(ZkContainer.java:244)
> at org.apache.solr.core.CoreContainer.create(CoreContainer.java:595)
> ... 8 more
> Caused by: java.nio.channels.OverlappingFileLockException
> at sun.nio.ch.SharedFileLockTable.checkList(FileLockTable.java:267)
> at sun.nio.ch.SharedFileLockTable.add(FileLockTable.java:164)
> at sun.nio.ch.FileChannelImpl.tryLock(FileChannelImpl.java:1078)
> at java.nio.channels.FileChannel.tryLock(FileChannel.java:1165)
> at org.apache.lucene.store.NativeFSLock.obtain(NativeFSLockFactory.java:217)
> at org.apache.lucene.store.NativeFSLock.isLocked(NativeFSLockFactory.java:319)
> at org.apache.lucene.index.IndexWriter.isLocked(IndexWriter.java:4510)
> at org.apache.solr.core.SolrCore.initIndex(SolrCore.java:485)
> at org.apache.solr.core.SolrCore.<init>(SolrCore.java:761)
> ... 11 more



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org