Solr报错Index locked for write for core '***'. Solr now longer supports forceful unlocking via
Posted 右介
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了Solr报错Index locked for write for core '***'. Solr now longer supports forceful unlocking via相关的知识,希望对你有一定的参考价值。
unlockOnStartup 告知 Solr 忽略在多线程环境中用来保护索引的锁定机制。在某些情况下,索引可能会由于不正确的关机或其他错误而一直处于锁定,这就妨碍了添加和更新。将其设置为 true 可以禁用启动锁定,进而允许进行添加和更新。
进入solr-5.3.1/server/solr/被锁住的集合名/conf, 修改solrconfig.xml文件, 在<lockType>${solr.lock.type:native}</lockType>语句上面加一条语句:<unlockOnStartup>true</unlockOnStartup>
以上是关于Solr报错Index locked for write for core '***'. Solr now longer supports forceful unlocking via的主要内容,如果未能解决你的问题,请参考以下文章
yum 报错:Another app is currently holding the yum lock; waiting for it to exit
yum 报错:Another app is currently holding the yum lock; waiting for it to exit
yum 报错:Another app is currently holding the yum lock; waiting for it to exit
spring-data-solr 选用高版本Cannot locate BeanDefinitionParser for element [solr-server]