SolrException: Error CREATEing SolrCore after deleting index

2015-08-10 Thread Hao
Hi,

I deleted a search index through Erlang client. Then I saw this in solr log 
showing every minute:


org.apache.solr.common.SolrException: Error CREATEing SolrCore 
'todoriak_main_movie_idx': Unable to create core: todoriak_main_movie_idx 
Caused by: /var/lib/riak/yz/todoriak_main_movie_idx/data/index/_0.si (No such 
file or directory)
at 
org.apache.solr.handler.admin.CoreAdminHandler.handleCreateAction(CoreAdminHandler.java:546)
at 
org.apache.solr.handler.admin.CoreAdminHandler.handleRequestBody(CoreAdminHandler.java:152)
at 
org.apache.solr.handler.RequestHandlerBase.handleRequest(RequestHandlerBase.java:135)
at 
org.apache.solr.servlet.SolrDispatchFilter.handleAdminRequest(SolrDispatchFilter.java:732)
at 
org.apache.solr.servlet.SolrDispatchFilter.doFilter(SolrDispatchFilter.java:268)
at 
org.apache.solr.servlet.SolrDispatchFilter.doFilter(SolrDispatchFilter.java:217)
at 
org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1419)
at 
org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:455)
at 
org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:137)
at 
org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:557)
at 
org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:231)
at 
org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1075)
Solr admin panel displays:

SolrCore Initialization Failures
todoriak_main_movie_idx: 
org.apache.solr.common.SolrException:org.apache.solr.common.SolrException: 
Error opening new searcher

How can I fix it?

-Hao___
riak-users mailing list
riak-users@lists.basho.com
http://lists.basho.com/mailman/listinfo/riak-users_lists.basho.com


Re: SolrException: Error CREATEing SolrCore after deleting index

2015-08-10 Thread Zeeshan Lakhani
Hello Hao,

I’m guessing that `todoriak_main_movie_idx` is the index you removed? Can you 
check to see if there are any buckets or bucket_types associated with that 
search_index? Also, what version of Riak are you using? 

We have a test here w/ the pb client to test a delete: 
https://github.com/basho/yokozuna/blob/3e749512d2df07c81def3c9c592615fd8d2d1234/riak_test/yz_pb.erl#L175
 
.
 I’m guessing that there may have been a race condition set in when deleting 
the index and the delete registering on all the nodes, as the operation happens 
asynchronously over cluster metadata. 

Is the error occurring on many nodes or just one?

Thanks. 

> On Aug 10, 2015, at 4:54 AM, Hao  wrote:
> 
> Error opening new searcher

___
riak-users mailing list
riak-users@lists.basho.com
http://lists.basho.com/mailman/listinfo/riak-users_lists.basho.com