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

Netty epoll implementation not included in 8.11.3

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 8.11.3
    • 8.11.4
    • None
    • None

    Description

      Solr 8.11.3 updated netty from 4.1.69 to 4.1.99.

      While it still contains the netty-transport-native-epoll dependency, the epoll implementation moved to a separate jar in netty 4.1.70.

      That jar is included in Solr 9, but it's not been added to the ivy-versions used in Solr 8.

      As a result, attemping to use Netty for SSL results in an exception:

      {{2024-02-20T09:53:17.350:out: Caused by: java.lang.NoClassDefFoundError: io/netty/channel/epoll/Epoll
      2024-02-20T09:53:17.352:out: at org.apache.zookeeper.common.NettyUtils.newNioOrEpollEventLoopGroup(NettyUtils.java:74) ~[zookeeper-3.6.2.jar:3.6.2]
      2024-02-20T09:53:17.353:out: at org.apache.zookeeper.ClientCnxnSocketNetty.<init>(ClientCnxnSocketNetty.java:86) ~[zookeeper-3.6.2.jar:3.6.2]
      2024-02-20T09:53:17.355:out: at jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) ~[?:?]
      2024-02-20T09:53:17.357:out: at jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62) ~[?:?]
      2024-02-20T09:53:17.358:out: at jdk.internal.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45) ~[?:?]
      2024-02-20T09:53:17.360:out: at java.lang.reflect.Constructor.newInstance(Constructor.java:490) ~[?:?]
      2024-02-20T09:53:17.361:out: at org.apache.zookeeper.ZooKeeper.getClientCnxnSocket(ZooKeeper.java:3404) ~[zookeeper-3.6.2.jar:3.6.2]
      2024-02-20T09:53:17.363:out: at org.apache.zookeeper.ZooKeeper.<init>(ZooKeeper.java:1027) ~[zookeeper-3.6.2.jar:3.6.2]
      2024-02-20T09:53:17.364:out: at org.apache.zookeeper.ZooKeeper.<init>(ZooKeeper.java:937) ~[zookeeper-3.6.2.jar:3.6.2]
      2024-02-20T09:53:17.366:out: at org.apache.zookeeper.ZooKeeper.<init>(ZooKeeper.java:1108) ~[zookeeper-3.6.2.jar:3.6.2]
      2024-02-20T09:53:17.368:out: at org.apache.zookeeper.ZooKeeper.<init>(ZooKeeper.java:818) ~[zookeeper-3.6.2.jar:3.6.2]
      2024-02-20T09:53:17.369:out: at org.apache.solr.common.cloud.SolrZooKeeper.<init>(SolrZooKeeper.java:44) ~[solr-solrj-8.11.3.jar:8.11.3 baa7c80af4278cc8951a344d8e9320386588d12d - houstonputman - 2024-02-05 15:08:47]
      2024-02-20T09:53:17.371:out: at org.apache.solr.common.cloud.ZkClientConnectionStrategy.createSolrZooKeeper(ZkClientConnectionStrategy.java:109) ~[solr-solrj-8.11.3.jar:8.11.3 baa7c80af4278cc8951a344d8e9320386588d12d - houstonputman - 2024-02-05 15:08:47]
      2024-02-20T09:53:17.372:out: at org.apache.solr.common.cloud.DefaultConnectionStrategy.connect(DefaultConnectionStrategy.java:37) ~[solr-solrj-8.11.3.jar:8.11.3 baa7c80af4278cc8951a344d8e9320386588d12d - houstonputman - 2024-02-05 15:08:47]
      2024-02-20T09:53:17.374:out: at org.apache.solr.common.cloud.SolrZkClient.<init>(SolrZkClient.java:166) ~[solr-solrj-8.11.3.jar:8.11.3 baa7c80af4278cc8951a344d8e9320386588d12d - houstonputman - 2024-02-05 15:08:47]
      2024-02-20T09:53:17.375:out: ... 7 more
      2024-02-20T09:53:17.377:out: Caused by: java.lang.ClassNotFoundException: io.netty.channel.epoll.Epoll
      2024-02-20T09:53:17.379:out: at jdk.internal.loader.BuiltinClassLoader.loadClass(BuiltinClassLoader.java:581) ~[?:?]
      2024-02-20T09:53:17.381:out: at jdk.internal.loader.ClassLoaders$AppClassLoader.loadClass(ClassLoaders.java:178) ~[?:?]
      2024-02-20T09:53:17.382:out: at java.lang.ClassLoader.loadClass(ClassLoader.java:527) ~[?:?]
      2024-02-20T09:53:17.384:out: at org.apache.zookeeper.common.NettyUtils.newNioOrEpollEventLoopGroup(NettyUtils.java:74) ~[zookeeper-3.6.2.jar:3.6.2]
      2024-02-20T09:53:17.386:out: at org.apache.zookeeper.ClientCnxnSocketNetty.<init>(ClientCnxnSocketNetty.java:86) ~[zookeeper-3.6.2.jar:3.6.2]
      2024-02-20T09:53:17.387:out: at jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) ~[?:?]
      2024-02-20T09:53:17.389:out: at jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62) ~[?:?]
      2024-02-20T09:53:17.391:out: at jdk.internal.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45) ~[?:?]
      2024-02-20T09:53:17.392:out: at java.lang.reflect.Constructor.newInstance(Constructor.java:490) ~[?:?]
      2024-02-20T09:53:17.394:out: at org.apache.zookeeper.ZooKeeper.getClientCnxnSocket(ZooKeeper.java:3404) ~[zookeeper-3.6.2.jar:3.6.2]
      2024-02-20T09:53:17.396:out: at org.apache.zookeeper.ZooKeeper.<init>(ZooKeeper.java:1027) ~[zookeeper-3.6.2.jar:3.6.2]
      2024-02-20T09:53:17.397:out: at org.apache.zookeeper.ZooKeeper.<init>(ZooKeeper.java:937) ~[zookeeper-3.6.2.jar:3.6.2]
      2024-02-20T09:53:17.399:out: at org.apache.zookeeper.ZooKeeper.<init>(ZooKeeper.java:1108) ~[zookeeper-3.6.2.jar:3.6.2]
      2024-02-20T09:53:17.401:out: at org.apache.zookeeper.ZooKeeper.<init>(ZooKeeper.java:818) ~[zookeeper-3.6.2.jar:3.6.2]
      2024-02-20T09:53:17.402:out: at org.apache.solr.common.cloud.SolrZooKeeper.<init>(SolrZooKeeper.java:44) ~[solr-solrj-8.11.3.jar:8.11.3 baa7c80af4278cc8951a344d8e9320386588d12d - houstonputman - 2024-02-05 15:08:47]
      2024-02-20T09:53:17.404:out: at org.apache.solr.common.cloud.ZkClientConnectionStrategy.createSolrZooKeeper(ZkClientConnectionStrategy.java:109) ~[solr-solrj-8.11.3.jar:8.11.3 baa7c80af4278cc8951a344d8e9320386588d12d - houstonputman - 2024-02-05 15:08:47]
      2024-02-20T09:53:17.406:out: at org.apache.solr.common.cloud.DefaultConnectionStrategy.connect(DefaultConnectionStrategy.java:37) ~[solr-solrj-8.11.3.jar:8.11.3 baa7c80af4278cc8951a344d8e9320386588d12d - houstonputman - 2024-02-05 15:08:47]
      2024-02-20T09:53:17.407:out: at org.apache.solr.common.cloud.SolrZkClient.<init>(SolrZkClient.java:166) ~[solr-solrj-8.11.3.jar:8.11.3 baa7c80af4278cc8951a344d8e9320386588d12d - houstonputman - 2024-02-05 15:08:47]
      2024-02-20T09:53:17.409:out: ... 7 more}}

       

      Attachments

        Issue Links

          Activity

            People

              janhoy Jan Høydahl
              colvinco Colvin Cowie
              Votes:
              0 Vote for this issue
              Watchers:
              3 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 - 20m
                  20m