You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@solr.apache.org by "Mike Drob (Jira)" <ji...@apache.org> on 2022/03/10 20:13:00 UTC

[jira] [Created] (SOLR-16093) HttpClient does not gracefully handle IPv6

Mike Drob created SOLR-16093:
--------------------------------

             Summary: HttpClient does not gracefully handle IPv6
                 Key: SOLR-16093
                 URL: https://issues.apache.org/jira/browse/SOLR-16093
             Project: Solr
          Issue Type: Test
      Security Level: Public (Default Security Level. Issues are Public)
            Reporter: Mike Drob


I was running tests inside of a docker container (trying to parallelize some stuff in a different way) and likely had my networking set up incorrectly. This was with JDK17.

I'm not sure how the IPv6 shard addresses got in there, maybe that what Solr decided to register in zookeeper, or maybe it was an artifact of my docker container doing some weird translation.

{{shards=http://127.0.0.1:41629/x_bm/lr/collection1|[::1]:4/x_bm/lr|[::1]:6/x_bm/lr,http://127.0.0.1:44693/x_bm/lr/collection1,[::1]:4/x_bm/lr|http://127.0.0.1:44741/x_bm/lr/collection1}}
{noformat}
  2> 88712 INFO  (qtp1293439783-64) [ x:collection1] o.a.s.c.S.Request webapp=/x_bm/lr path=/select params={q=id:42&shards=http://127.0.0.1:41629/x_bm/lr/collection1|[::1]:4/x_bm/lr|[::1]:6/x_bm/lr,http://127.0.0.1:44693/x_bm/lr/collection1,[::1]:4/x_bm/lr|http://127.0.0.1:44741/x_bm/lr/collection1&rows=0&wt=javabin&version=2} status=500 QTime=252
  2> 88716 ERROR (qtp1293439783-64) [ x:collection1] o.a.s.s.HttpSolrCall org.apache.solr.common.SolrException: org.apache.solr.client.solrj.SolrServerException: Unsupported address type
  2>           => org.apache.solr.common.SolrException: org.apache.solr.client.solrj.SolrServerException: Unsupported address type
  2>    at org.apache.solr.handler.component.SearchHandler.handleRequestBody(SearchHandler.java:504)
  2> org.apache.solr.common.SolrException: org.apache.solr.client.solrj.SolrServerException: Unsupported address type
  2>    at org.apache.solr.handler.component.SearchHandler.handleRequestBody(SearchHandler.java:504) ~[main/:?]
  2>    at org.apache.solr.handler.RequestHandlerBase.handleRequest(RequestHandlerBase.java:230) ~[main/:?]
  2>    at org.apache.solr.core.SolrCore.execute(SolrCore.java:2866) ~[main/:?]
  2>    at org.apache.solr.servlet.HttpSolrCall.execute(HttpSolrCall.java:881) [main/:?]
  2>    at org.apache.solr.servlet.HttpSolrCall.call(HttpSolrCall.java:600) [main/:?]
  2>    at org.apache.solr.servlet.SolrDispatchFilter.dispatch(SolrDispatchFilter.java:234) [main/:?]
  2>    at org.apache.solr.servlet.SolrDispatchFilter.lambda$doFilter$0(SolrDispatchFilter.java:202) [main/:?]
  2>    at org.apache.solr.servlet.ServletUtils.traceHttpRequestExecution2(ServletUtils.java:257) [main/:?]
  2>    at org.apache.solr.servlet.ServletUtils.rateLimitRequest(ServletUtils.java:227) [main/:?]
  2>    at org.apache.solr.servlet.SolrDispatchFilter.doFilter(SolrDispatchFilter.java:197) [main/:?]
  2>    at org.apache.solr.servlet.SolrDispatchFilter.doFilter(SolrDispatchFilter.java:179) [main/:?]
  2>    at org.eclipse.jetty.servlet.FilterHolder.doFilter(FilterHolder.java:193) [jetty-servlet-9.4.44.v20210927.jar:9.4.44.v20210927]
  2>    at org.eclipse.jetty.servlet.ServletHandler$Chain.doFilter(ServletHandler.java:1601) [jetty-servlet-9.4.44.v20210927.jar:9.4.44.v20210927]
  2>    at org.apache.solr.client.solrj.embedded.JettySolrRunner$DebugFilter.doFilter(JettySolrRunner.java:187) [main/:?]
  2>    at org.eclipse.jetty.servlet.FilterHolder.doFilter(FilterHolder.java:193) [jetty-servlet-9.4.44.v20210927.jar:9.4.44.v20210927]
  2>    at org.eclipse.jetty.servlet.ServletHandler$Chain.doFilter(ServletHandler.java:1601) [jetty-servlet-9.4.44.v20210927.jar:9.4.44.v20210927]
  2>    at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:548) [jetty-servlet-9.4.44.v20210927.jar:9.4.44.v20210927]
  2>    at org.eclipse.jetty.server.handler.ScopedHandler.nextHandle(ScopedHandler.java:233) [jetty-server-9.4.44.v20210927.jar:9.4.44.v20210927]
  2>    at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:1624) [jetty-server-9.4.44.v20210927.jar:9.4.44.v20210927]
  2>    at org.eclipse.jetty.server.handler.ScopedHandler.nextHandle(ScopedHandler.java:233) [jetty-server-9.4.44.v20210927.jar:9.4.44.v20210927]
  2>    at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1434) [jetty-server-9.4.44.v20210927.jar:9.4.44.v20210927]
  2>    at org.eclipse.jetty.server.handler.ScopedHandler.nextScope(ScopedHandler.java:188) [jetty-server-9.4.44.v20210927.jar:9.4.44.v20210927]
  2>    at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:501) [jetty-servlet-9.4.44.v20210927.jar:9.4.44.v20210927]
  2>    at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:1594) [jetty-server-9.4.44.v20210927.jar:9.4.44.v20210927]
  2>    at org.eclipse.jetty.server.handler.ScopedHandler.nextScope(ScopedHandler.java:186) [jetty-server-9.4.44.v20210927.jar:9.4.44.v20210927]
  2>    at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1349) [jetty-server-9.4.44.v20210927.jar:9.4.44.v20210927]
  2>    at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:141) [jetty-server-9.4.44.v20210927.jar:9.4.44.v20210927]
  2>    at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:127) [jetty-server-9.4.44.v20210927.jar:9.4.44.v20210927]
  2>    at org.eclipse.jetty.rewrite.handler.RewriteHandler.handle(RewriteHandler.java:322) [jetty-rewrite-9.4.44.v20210927.jar:9.4.44.v20210927]
  2>    at org.eclipse.jetty.server.handler.gzip.GzipHandler.handle(GzipHandler.java:763) [jetty-server-9.4.44.v20210927.jar:9.4.44.v20210927]
  2>    at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:127) [jetty-server-9.4.44.v20210927.jar:9.4.44.v20210927]
  2>    at org.eclipse.jetty.server.Server.handle(Server.java:516) [jetty-server-9.4.44.v20210927.jar:9.4.44.v20210927]
  2>    at org.eclipse.jetty.server.HttpChannel.lambda$handle$1(HttpChannel.java:400) [jetty-server-9.4.44.v20210927.jar:9.4.44.v20210927]
  2>    at org.eclipse.jetty.server.HttpChannel.dispatch(HttpChannel.java:645) [jetty-server-9.4.44.v20210927.jar:9.4.44.v20210927]
  2>    at org.eclipse.jetty.server.HttpChannel.handle(HttpChannel.java:392) [jetty-server-9.4.44.v20210927.jar:9.4.44.v20210927]
  2>    at org.eclipse.jetty.server.HttpConnection.onFillable(HttpConnection.java:277) [jetty-server-9.4.44.v20210927.jar:9.4.44.v20210927]
  2>    at org.eclipse.jetty.io.AbstractConnection$ReadCallback.succeeded(AbstractConnection.java:311) [jetty-io-9.4.44.v20210927.jar:9.4.44.v20210927]
  2>    at org.eclipse.jetty.io.FillInterest.fillable(FillInterest.java:105) [jetty-io-9.4.44.v20210927.jar:9.4.44.v20210927]
  2>    at org.eclipse.jetty.io.ChannelEndPoint$1.run(ChannelEndPoint.java:104) [jetty-io-9.4.44.v20210927.jar:9.4.44.v20210927]
  2>    at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:883) [jetty-util-9.4.44.v20210927.jar:9.4.44.v20210927]
  2>    at org.eclipse.jetty.util.thread.QueuedThreadPool$Runner.run(QueuedThreadPool.java:1034) [jetty-util-9.4.44.v20210927.jar:9.4.44.v20210927]
  2>    at java.lang.Thread.run(Thread.java:833) [?:?]
  2> Caused by: org.apache.solr.client.solrj.SolrServerException: Unsupported address type
  2>    at org.apache.solr.client.solrj.impl.Http2SolrClient$1.onFailure(Http2SolrClient.java:432) ~[solr-solrj-10.0.0-SNAPSHOT.jar:10.0.0-SNAPSHOT f07b7b0c75ec818c787db07492c71e2064ccdc86 [snapshot build, details omitted]]
  2>    at org.eclipse.jetty.client.ResponseNotifier.notifyFailure(ResponseNotifier.java:197) ~[jetty-client-9.4.44.v20210927.jar:9.4.44.v20210927]
  2>    at org.eclipse.jetty.client.ResponseNotifier.notifyFailure(ResponseNotifier.java:189) ~[jetty-client-9.4.44.v20210927.jar:9.4.44.v20210927]
  2>    at org.eclipse.jetty.client.HttpExchange.notifyFailureComplete(HttpExchange.java:275) ~[jetty-client-9.4.44.v20210927.jar:9.4.44.v20210927]
  2>    at org.eclipse.jetty.client.HttpExchange.abort(HttpExchange.java:247) ~[jetty-client-9.4.44.v20210927.jar:9.4.44.v20210927]
  2>    at org.eclipse.jetty.client.HttpConversation.abort(HttpConversation.java:164) ~[jetty-client-9.4.44.v20210927.jar:9.4.44.v20210927]
  2>    at org.eclipse.jetty.client.HttpRequest.abort(HttpRequest.java:819) ~[jetty-client-9.4.44.v20210927.jar:9.4.44.v20210927]
  2>    at org.eclipse.jetty.client.HttpDestination.abort(HttpDestination.java:502) ~[jetty-client-9.4.44.v20210927.jar:9.4.44.v20210927]
  2>    at org.eclipse.jetty.client.HttpDestination.failed(HttpDestination.java:252) ~[jetty-client-9.4.44.v20210927.jar:9.4.44.v20210927]
  2>    at org.eclipse.jetty.client.AbstractConnectionPool$FutureConnection.failed(AbstractConnectionPool.java:557) ~[jetty-client-9.4.44.v20210927.jar:9.4.44.v20210927]
  2>    at org.eclipse.jetty.util.Promise$Wrapper.failed(Promise.java:136) ~[jetty-util-9.4.44.v20210927.jar:9.4.44.v20210927]
  2>    at org.eclipse.jetty.client.HttpClient$1$1.failed(HttpClient.java:633) ~[jetty-client-9.4.44.v20210927.jar:9.4.44.v20210927]
  2>    at org.eclipse.jetty.http2.client.http.HttpClientTransportOverHTTP2$SessionListenerPromise.failConnectionPromise(HttpClientTransportOverHTTP2.java:263) ~[http2-http-client-transport-9.4.44.v20210927.jar:9.4.44.v20210927]
  2>    at org.eclipse.jetty.http2.client.http.HttpClientTransportOverHTTP2$SessionListenerPromise.failed(HttpClientTransportOverHTTP2.java:199) ~[http2-http-client-transport-9.4.44.v20210927.jar:9.4.44.v20210927]
  2>    at org.eclipse.jetty.http2.client.HTTP2Client.connect(HTTP2Client.java:448) ~[http2-client-9.4.44.v20210927.jar:9.4.44.v20210927]
  2>    at org.eclipse.jetty.http2.client.http.HttpClientTransportOverHTTP2.connect(HttpClientTransportOverHTTP2.java:151) ~[http2-http-client-transport-9.4.44.v20210927.jar:9.4.44.v20210927]
  2>    at org.eclipse.jetty.http2.client.http.HttpClientTransportOverHTTP2.connect(HttpClientTransportOverHTTP2.java:146) ~[http2-http-client-transport-9.4.44.v20210927.jar:9.4.44.v20210927]
  2>    at org.eclipse.jetty.client.HttpClient$1.connect(HttpClient.java:638) ~[jetty-client-9.4.44.v20210927.jar:9.4.44.v20210927]
  2>    at org.eclipse.jetty.client.HttpClient$1.succeeded(HttpClient.java:615) ~[jetty-client-9.4.44.v20210927.jar:9.4.44.v20210927]
  2>    at org.eclipse.jetty.client.HttpClient$1.succeeded(HttpClient.java:607) ~[jetty-client-9.4.44.v20210927.jar:9.4.44.v20210927]
  2>    at org.eclipse.jetty.util.SocketAddressResolver$Async.lambda$resolve$1(SocketAddressResolver.java:186) ~[jetty-util-9.4.44.v20210927.jar:9.4.44.v20210927]
  2>    at org.apache.solr.common.util.ExecutorUtil$MDCAwareThreadPoolExecutor.lambda$execute$0(ExecutorUtil.java:259) ~[solr-solrj-10.0.0-SNAPSHOT.jar:10.0.0-SNAPSHOT f07b7b0c75ec818c787db07492c71e2064ccdc86 [snapshot build, details omitted]]
  2>    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136) ~[?:?]
  2>    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635) ~[?:?]
  2>    ... 1 more
  2> Caused by: java.net.SocketException: Unsupported address type
  2>    at sun.nio.ch.Net.translateToSocketException(Net.java:187) ~[?:?]
  2>    at sun.nio.ch.Net.translateException(Net.java:217) ~[?:?]
  2>    at sun.nio.ch.SocketAdaptor.connect(SocketAdaptor.java:103) ~[?:?]
  2>    at org.eclipse.jetty.http2.client.HTTP2Client.connect(HTTP2Client.java:432) ~[http2-client-9.4.44.v20210927.jar:9.4.44.v20210927]
  2>    at org.eclipse.jetty.http2.client.http.HttpClientTransportOverHTTP2.connect(HttpClientTransportOverHTTP2.java:151) ~[http2-http-client-transport-9.4.44.v20210927.jar:9.4.44.v20210927]
  2>    at org.eclipse.jetty.http2.client.http.HttpClientTransportOverHTTP2.connect(HttpClientTransportOverHTTP2.java:146) ~[http2-http-client-transport-9.4.44.v20210927.jar:9.4.44.v20210927]
  2>    at org.eclipse.jetty.client.HttpClient$1.connect(HttpClient.java:638) ~[jetty-client-9.4.44.v20210927.jar:9.4.44.v20210927]
  2>    at org.eclipse.jetty.client.HttpClient$1.succeeded(HttpClient.java:615) ~[jetty-client-9.4.44.v20210927.jar:9.4.44.v20210927]
  2>    at org.eclipse.jetty.client.HttpClient$1.succeeded(HttpClient.java:607) ~[jetty-client-9.4.44.v20210927.jar:9.4.44.v20210927]
  2>    at org.eclipse.jetty.util.SocketAddressResolver$Async.lambda$resolve$1(SocketAddressResolver.java:186) ~[jetty-util-9.4.44.v20210927.jar:9.4.44.v20210927]
  2>    at org.apache.solr.common.util.ExecutorUtil$MDCAwareThreadPoolExecutor.lambda$execute$0(ExecutorUtil.java:259) ~[solr-solrj-10.0.0-SNAPSHOT.jar:10.0.0-SNAPSHOT f07b7b0c75ec818c787db07492c71e2064ccdc86 [snapshot build, details omitted]]
  2>    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136) ~[?:?]
  2>    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635) ~[?:?]
  2>    ... 1 more
  2> Caused by: java.nio.channels.UnsupportedAddressTypeException
  2>    at sun.nio.ch.Net.checkAddress(Net.java:161) ~[?:?]
  2>    at sun.nio.ch.SocketChannelImpl.checkRemote(SocketChannelImpl.java:816) ~[?:?]
  2>    at sun.nio.ch.SocketChannelImpl.blockingConnect(SocketChannelImpl.java:1163) ~[?:?]
  2>    at sun.nio.ch.SocketAdaptor.connect(SocketAdaptor.java:98) ~[?:?]
  2>    at org.eclipse.jetty.http2.client.HTTP2Client.connect(HTTP2Client.java:432) ~[http2-client-9.4.44.v20210927.jar:9.4.44.v20210927]
  2>    at org.eclipse.jetty.http2.client.http.HttpClientTransportOverHTTP2.connect(HttpClientTransportOverHTTP2.java:151) ~[http2-http-client-transport-9.4.44.v20210927.jar:9.4.44.v20210927]
  2>    at org.eclipse.jetty.http2.client.http.HttpClientTransportOverHTTP2.connect(HttpClientTransportOverHTTP2.java:146) ~[http2-http-client-transport-9.4.44.v20210927.jar:9.4.44.v20210927]
  2>    at org.eclipse.jetty.client.HttpClient$1.connect(HttpClient.java:638) ~[jetty-client-9.4.44.v20210927.jar:9.4.44.v20210927]
  2>    at org.eclipse.jetty.client.HttpClient$1.succeeded(HttpClient.java:615) ~[jetty-client-9.4.44.v20210927.jar:9.4.44.v20210927]
  2>    at org.eclipse.jetty.client.HttpClient$1.succeeded(HttpClient.java:607) ~[jetty-client-9.4.44.v20210927.jar:9.4.44.v20210927]
  2>    at org.eclipse.jetty.util.SocketAddressResolver$Async.lambda$resolve$1(SocketAddressResolver.java:186) ~[jetty-util-9.4.44.v20210927.jar:9.4.44.v20210927]
  2>    at org.apache.solr.common.util.ExecutorUtil$MDCAwareThreadPoolExecutor.lambda$execute$0(ExecutorUtil.java:259) ~[solr-solrj-10.0.0-SNAPSHOT.jar:10.0.0-SNAPSHOT f07b7b0c75ec818c787db07492c71e2064ccdc86 [snapshot build, details omitted]]
  2>    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136) ~[?:?]
  2>    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635) ~[?:?]
  2>    ... 1 more
{noformat}



--
This message was sent by Atlassian Jira
(v8.20.1#820001)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@solr.apache.org
For additional commands, e-mail: issues-help@solr.apache.org