Hi guys,
it's the second time this morning I face this problem :

1) I create my Solr Cloud cluster with external Zk ensemble
2) I create my collection from hosted config in Zk
3) I index some docs ( Index is build, InfixSuggester index is built for my
3 suggesting dictionaries)
4) I change my config so I need to reload my collection .
5) I run the collection reload command  ( no Indexing is happening)

6) BOOM - The reload command fails over all the  solr nodes because of :

Caused by: org.apache.solr.common.SolrException: Unable to reload core
[holidays_shard2_replica2]
        at org.apache.solr.core.CoreContainer.reload(CoreContainer.java:835)
        at 
org.apache.solr.handler.admin.CoreAdminHandler.handleReloadAction(CoreAdminHandler.java:774)
        ... 27 more
Caused by: org.apache.solr.common.SolrException:
org.apache.lucene.store.LockObtainFailedException: Lock held by this
virtual machine: /Users/.../data/countryIndex/write.lock
        at org.apache.solr.core.SolrCore.<init>(SolrCore.java:820)
        at org.apache.solr.core.SolrCore.reload(SolrCore.java:461)
        at org.apache.solr.core.CoreContainer.reload(CoreContainer.java:830)
        ... 28 more
Caused by: java.lang.RuntimeException:
org.apache.lucene.store.LockObtainFailedException: Lock held by this
virtual machine: /Users/.../data/countryIndex/write.lock
        at 
org.apache.solr.spelling.suggest.fst.AnalyzingInfixLookupFactory.create(AnalyzingInfixLookupFactory.java:138)
        at 
org.apache.solr.spelling.suggest.SolrSuggester.init(SolrSuggester.java:106)
        at 
org.apache.solr.handler.component.SuggestComponent.inform(SuggestComponent.java:119)
        at 
org.apache.solr.core.SolrResourceLoader.inform(SolrResourceLoader.java:619)
        at org.apache.solr.core.SolrCore.<init>(SolrCore.java:800)
        ... 30 more

I guess this should not happen.
My suggester is configured in this way :

<searchComponent name="suggest" class="solr.SuggestComponent">
    <lst name="suggester">
  <str name="name">Country</str>
  <str name="lookupImpl">AnalyzingInfixLookupFactory</str>
  <str name="indexPath">countryIndex</str>
  <str name="dictionaryImpl">DocumentDictionaryFactory</str>
  <str name="field">country</str>
  <str name="weightField">price</str>
  <str name="suggestAnalyzerFieldType">text_destination</str>
  <str name="buildOnCommit">true</str>
</lst>

Cheers
-- 
--------------------------

Benedetti Alessandro
Visiting card : http://about.me/alessandro_benedetti

"Tyger, tyger burning bright
In the forests of the night,
What immortal hand or eye
Could frame thy fearful symmetry?"

William Blake - Songs of Experience -1794 England

Reply via email to