Uploaded image for project: 'Ratis'
  1. Ratis
  2. RATIS-1443

Do not provide non-shaded Netty native libraries

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 2.2.0
    • thirdparty-1.0.0
    • thirdparty
    • None

    Description

      Please see https://github.com/netty/netty-tcnative/issues/681

      Currently Netty loads the first libnetty-tcnative-** resource on the classpath.

      If https://github.com/netty/netty/pull/11856 is accepted then Netty will stop tolerating this and throw an exception if there are more than one jars in the classpath providing its native libraries.

       

      I see that https://repo1.maven.org/maven2/org/apache/ratis/ratis-thirdparty-misc/0.7.0/ partially solves this problem by shading half of the .so files. The other half should be shaded as well!

       

      libnetty_resolver_dns_native_macos_x86_64.jnilib
      libnetty_tcnative_linux_aarch_64.so
      libnetty_transport_native_epoll_aarch_64.so
      libnetty_transport_native_epoll_x86_64.so
      libnetty_transport_native_kqueue_x86_64.jnilib
      liborg_apache_ratis_thirdparty_netty_tcnative_linux_x86_64.so
      liborg_apache_ratis_thirdparty_netty_tcnative_osx_x86_64.jnilib
      liborg_apache_ratis_thirdparty_netty_transport_native_epoll_x86_64.so
      liborg_apache_ratis_thirdparty_netty_transport_native_kqueue_x86_64.jnilib
      org_apache_ratis_thirdparty_netty_tcnative_windows_x86_64.dll
       

      Attachments

        Issue Links

          Activity

            People

              mgrigorov Martin Tzvetanov Grigorov
              mgrigorov Martin Tzvetanov Grigorov
              Votes:
              0 Vote for this issue
              Watchers:
              2 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