Uploaded image for project: 'Solr'
  1. Solr
  2. SOLR-5678

When SolrJ/SolrCloud can't talk to Zookeeper, it throws a RuntimeException

Agile BoardAttach filesAttach ScreenshotVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 4.6
    • 4.7, 6.0
    • None
    • None

    Description

      This class of exception should not be used for run-of-the-mill networking kinds of issues. SolrServerException or some variety of IOException should be thrown instead. Here's the trace:

      java.lang.RuntimeException: java.util.concurrent.TimeoutException: Could not connect to ZooKeeper localhost:2181 within 60000 ms
      	at org.apache.solr.common.cloud.SolrZkClient.<init>(SolrZkClient.java:130)
      	at org.apache.solr.common.cloud.SolrZkClient.<init>(SolrZkClient.java:88)
      	at org.apache.solr.common.cloud.ZkStateReader.<init>(ZkStateReader.java:148)
      	at org.apache.solr.client.solrj.impl.CloudSolrServer.connect(CloudSolrServer.java:147)
      	at org.apache.solr.client.solrj.impl.CloudSolrServer.request(CloudSolrServer.java:173)
      	at org.apache.manifoldcf.agents.output.solr.HttpPoster$SolrPing.process(HttpPoster.java:1315)
      	at org.apache.manifoldcf.agents.output.solr.HttpPoster$StatusThread.run(HttpPoster.java:1208)
      Caused by: java.util.concurrent.TimeoutException: Could not connect to ZooKeeper localhost:2181 within 60000 ms
      	at org.apache.solr.common.cloud.ConnectionManager.waitForConnected(ConnectionManager.java:173)
      	at org.apache.solr.common.cloud.SolrZkClient.<init>(SolrZkClient.java:127)
      	... 6 more
      

      Attachments

        Issue Links

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            markrmiller@gmail.com Mark Miller
            kwright@metacarta.com Karl Wright
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment