我目前正在将现有的SOLR云实施迁移到Datastax Enterprise(3.2.1)Solr实施。
我有8个DSE节点,6个cassandra节点和2个solr节点。当其中一个solr节点发生故障时,另一个节点也无法执行查询,但出现以下异常:
ERROR [http-8983-98] 2013-11-22 20:03:32,447 SolrDispatchFilter.java (line 641) Error request exception: java.io.IOException: Unavailable shards for ranges: [(-6148914691236517206,-3074457345618258604], (-3074457345618258604,-2], (-9223372036854775807,-6148914691236517206], (-2,0]]
java.lang.RuntimeException: java.io.IOException: Unavailable shards for ranges: [(-6148914691236517206,-3074457345618258604], (-3074457345618258604,-2], (-9223372036854775807,-6148914691236517206], (-2,0]]
at org.apache.solr.handler.component.CassandraHttpShardHandler.checkDistributed(CassandraHttpShardHandler.java:40)
at org.apache.solr.handler.component.SearchHandler.handleRequestBody(SearchHandler.java:178)
at org.apache.solr.handler.RequestHandlerBase.handleRequest(RequestHandlerBase.java:135)
at org.apache.solr.core.SolrCore.execute(SolrCore.java:1839)
at org.apache.solr.servlet.SolrDispatchFilter.execute(SolrDispatchFilter.java:667)
at com.datastax.bdp.cassandra.index.solr.CassandraDispatchFilter.execute(CassandraDispatchFilter.java:176)
at org.apache.solr.servlet.SolrDispatchFilter.doFilter(SolrDispatchFilter.java:359)
at org.apache.solr.servlet.SolrDispatchFilter.doFilter(SolrDispatchFilter.java:155)
at com.datastax.bdp.cassandra.index.solr.CassandraDispatchFilter.doFilter(CassandraDispatchFilter.java:139)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at com.datastax.bdp.cassandra.audit.SolrHttpAuditLogFilter.doFilter(SolrHttpAuditLogFilter.java:194)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at com.datastax.bdp.cassandra.index.solr.auth.CassandraAuthorizationFilter.doFilter(CassandraAuthorizationFilter.java:95)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at com.datastax.bdp.cassandra.index.solr.auth.DseAuthenticationFilter.doFilter(DseAuthenticationFilter.java:102)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:298)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:859)
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:588)
at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:489)
at java.lang.Thread.run(Thread.java:722)
Caused by: java.io.IOException: Unavailable shards for ranges: [(-6148914691236517206,-3074457345618258604], (-3074457345618258604,-2], (-9223372036854775807,-6148914691236517206], (-2,0]]
at com.datastax.bdp.cassandra.index.solr.dht.OptimizedShardSelectionStrategy.select(OptimizedShardSelectionStrategy.java:59)
at com.datastax.bdp.cassandra.index.solr.dht.ShardRouter.endpointsToContact(ShardRouter.java:579)
at com.datastax.bdp.cassandra.index.solr.dht.ShardRouter.route(ShardRouter.java:184)
at org.apache.solr.handler.component.CassandraHttpShardHandler.checkDistributed(CassandraHttpShardHandler.java:36)
... 29 more
我无法弄清楚为什么会发生这种情况,它应该是容错的吗?
任何人都有一些想法如何解决这个问题?
答案 0 :(得分:4)
你有一个复制因子吗?如果是这样,则错误表明无法查询节点,因此无法返回完整的结果。