两个solr线程试图在启动时加载核心

时间:2017-08-25 20:27:00

标签: solr lucene

我的solr安装只有一个核心,我注意到当我重新启动服务时,两个线程正在尝试加载核心。不可避免地,其中一个失败了,我看到这样的错误:

filesearch: org.apache.solr.common.SolrException:org.apache.solr.common.SolrException: Error opening new searcher

Caused by: org.apache.lucene.store.LockObtainFailedException: Lock held by this virtual machine: /local/var/solr/shard1/mysearch/data/index/write.lock

这是启动日志: -

(main) [ ] o.e.j.s.Server jetty-9.3.14.v20161028 (main) [ ] o.a.s.s.SolrDispatchFilter ___ _ Welcome to Apache Solr™ version 6.6.1-SNAPSHOT 1a390a91b5b658150478e6fc3c43381bedd3c6d3 - niqbal - 2017-08-09 10:31:27 (main) [ ] o.a.s.s.SolrDispatchFilter / __| ___| |_ _ Starting in standalone mode on port 8984 (main) [ ] o.a.s.s.SolrDispatchFilter \__ \/ _ \ | '_| Install dir: /local/bin/solr6/latest_solr (main) [ ] o.a.s.s.SolrDispatchFilter |___/\___/_|_| Start time: 2017-08-25T20:04:38.231Z (main) [ ] o.a.s.s.StartupLoggingUtils Property solr.log.muteconsole given. Muting ConsoleAppender named CONSOLE (main) [ ] o.a.s.c.SolrResourceLoader Using system property solr.solr.home: /local/etc/solr/shard1 (main) [ ] o.a.s.c.SolrXmlConfig Loading container configuration from /local/etc/solr/shard1/solr.xml (main) [ ] o.a.s.u.UpdateShardHandler Creating UpdateShardHandler HTTP client with params: socketTimeout=600000&connTimeout=60000&retry=true (main) [ ] o.a.s.c.CorePropertiesLocator Found 1 core definitions underneath /local/etc/solr/shard1 (main) [ ] o.a.s.c.CorePropertiesLocator Cores are: [mysearch] (coreLoadExecutor-6-thread-1) [ x:mysearch] o.a.s.u.SolrIndexConfig IndexWriter infoStream solr logging is enabled (coreLoadExecutor-6-thread-1) [ x:mysearch] o.a.s.c.SolrConfig Using Lucene MatchVersion: 6.5.2 (qtp761960786-29) [ ] o.a.s.c.TransientSolrCoreCacheDefault Allocating transient cache for 2147483647 transient cores (main) [ ] o.e.j.s.Server Started @1225ms (coreLoadExecutor-6-thread-1) [ x:mysearch] o.a.s.s.IndexSchema [mysearch] Schema name=local WARN (coreLoadExecutor-6-thread-1) [ x:mysearch] o.a.s.s.IndexSchema Field name_token is not multivalued and destination for multiple copyFields (7) WARN (coreLoadExecutor-6-thread-1) [ x:mysearch] o.a.s.s.IndexSchema Field name_shingle is not multivalued and destination for multiple copyFields (5) WARN (coreLoadExecutor-6-thread-1) [ x:mysearch] o.a.s.s.IndexSchema Field name_sort is not multivalued and destination for multiple copyFields (7) (coreLoadExecutor-6-thread-1) [ x:mysearch] o.a.s.s.IndexSchema Loaded schema local/1.5 with uniqueid field id INFO (coreLoadExecutor-6-thread-1) [ x:mysearch] o.a.s.c.CoreContainer Creating SolrCore 'mysearch' using configuration from instancedir /local/etc/solr/shard1/mysearch, trusted=true INFO (coreLoadExecutor-6-thread-1) [ x:mysearch] o.a.s.c.SolrCore solr.RecoveryStrategy.Builder INFO (coreLoadExecutor-6-thread-1) [ x:mysearch] o.a.s.c.SolrCore [[mysearch] ] Opening new SolrCore at [/local/etc/solr/shard1/mysearch], dataDir=[/local/etc/solr/shard1/mysearch/data/] INFO (coreLoadExecutor-6-thread-1) [ x:mysearch] o.a.s.r.XSLTResponseWriter xsltCacheLifetimeSeconds=5 INFO (qtp761960786-31) [ x:mysearch] o.a.s.u.SolrIndexConfig IndexWriter infoStream solr logging is enabled INFO (qtp761960786-31) [ x:mysearch] o.a.s.c.SolrConfig Using Lucene MatchVersion: 6.5.2 INFO (qtp761960786-31) [ x:mysearch] o.a.s.s.IndexSchema [mysearch] Schema name=local WARN (qtp761960786-31) [ x:mysearch] o.a.s.s.IndexSchema Field name_token is not multivalued and destination for multiple copyFields (7) WARN (qtp761960786-31) [ x:mysearch] o.a.s.s.IndexSchema Field name_shingle is not multivalued and destination for multiple copyFields (5) WARN (qtp761960786-31) [ x:mysearch] o.a.s.s.IndexSchema Field name_sort is not multivalued and destination for multiple copyFields (7) INFO (qtp761960786-31) [ x:mysearch] o.a.s.s.IndexSchema Loaded schema local/1.5 with uniqueid field id INFO (qtp761960786-31) [ x:mysearch] o.a.s.c.CoreContainer Creating SolrCore 'mysearch' using configuration from instancedir /local/etc/solr/shard1/mysearch, trusted=true INFO (qtp761960786-31) [ x:mysearch] o.a.s.c.SolrCore solr.RecoveryStrategy.Builder INFO (qtp761960786-31) [ x:mysearch] o.a.s.c.SolrCore [[mysearch] ] Opening new SolrCore at [/local/etc/solr/shard1/mysearch], dataDir=[/local/etc/solr/shard1/mysearch/data/] INFO (qtp761960786-31) [ x:mysearch] o.a.s.r.XSLTResponseWriter xsltCacheLifetimeSeconds=5 INFO (coreLoadExecutor-6-thread-1) [ x:mysearch] o.a.s.u.CommitTracker Hard AutoCommit: disabled INFO (qtp761960786-31) [ x:mysearch] o.a.s.u.CommitTracker Hard AutoCommit: disabled INFO (coreLoadExecutor-6-thread-1) [ x:mysearch] o.a.s.u.CommitTracker Soft AutoCommit: disabled INFO (qtp761960786-31) [ x:mysearch] o.a.s.u.CommitTracker Soft AutoCommit: disabled INFO (qtp761960786-31) [ x:mysearch] o.a.s.c.SolrCore [mysearch] CLOSING SolrCore org.apache.solr.core.SolrCore@3f24b393 INFO (qtp761960786-31) [ x:mysearch] o.a.s.m.SolrMetricManager Closing metric reporters for: solr.core.mysearch ERROR (qtp761960786-31) [ x:mysearch] o.a.s.s.HttpSolrCall null:org.apache.solr.common.SolrException: Unable to create core [mysearch] at org.apache.solr.core.CoreContainer.create(CoreContainer.java:935) at org.apache.solr.core.CoreContainer.getCore(CoreContainer.java:1331)

0 个答案:

没有答案