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

Provide correct bound zookeeper interface

    XMLWordPrintableJSON

Details

    Description

      We have a lot of places internally where we try to connect to "localhost" and end up hitting the ipv6 interface for whatever reason. Is this an OS issue? A VPN issue?

      Regardless, the embedded ZK isn't listening on ipv6, so we fail and retry (sometimes multiple times). Each retry adds a second to our tests, but should be easy to give a more specific address to connect to.

      2022-04-11 21:54:54.682 WARN  (main-SendThread(localhost:9983)) [] o.a.z.ClientCnxn Session 0x0 for sever localhost/[0:0:0:0:0:0:0:1]:9983, Closing socket connection. Attempting reconnect except it is a SessionExpiredException. => java.net.ConnectException: Connection refused
              at java.base/sun.nio.ch.Net.pollConnect(Native Method)
      java.net.ConnectException: Connection refused
              at sun.nio.ch.Net.pollConnect(Native Method) ~[?:?]
              at sun.nio.ch.Net.pollConnectNow(Net.java:672) ~[?:?]
              at sun.nio.ch.SocketChannelImpl.finishConnect(SocketChannelImpl.java:946) ~[?:?]
              at org.apache.zookeeper.ClientCnxnSocketNIO.doTransport(ClientCnxnSocketNIO.java:344) ~[?:?]
              at org.apache.zookeeper.ClientCnxn$SendThread.run(ClientCnxn.java:1280) ~[?:?]
      

      Attachments

        Issue Links

          Activity

            People

              krisden Kevin Risden
              mdrob Mike Drob
              Votes:
              1 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 50m
                  50m