zoukankan      html  css  js  c++  java
  • Solr[Q] -No live SolrServers available to handle this request, no servers hosting shard

    No live SolrServers available to handle this request , no servers hosting shard

    当某一片索引对应的结点全部宕了以后,会报这个异常。

    "error": {
        "msg": "no servers hosting shard: ",
        "code": 503
      }
    

      

    需要在请求上加上:

    params.setParam("shards.tolerant", true)

    表示只从存活的节点上获取数据。因此这个时候数据极有可能是不完整的。

  • 相关阅读:
    PKU1008
    PKU 1007
    PKU 3983
    PKU 1005
    PKU1004
    PKU 1003解题
    new.target
    debugger 关键字
    React 高阶组件
    CSS|规范
  • 原文地址:https://www.cnblogs.com/huangfox/p/3937632.html
Copyright © 2011-2022 走看看