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

Configuring Ratis fails when hostname is used, and is an IPv6 host

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 3.1.0
    • 3.1.1, 3.2.0
    • common
    • None

    Description

      If the address is IPv6, NetUtils.address2String always surrounds it with '[]'.
      This is require when the input is an IP - but causes failures if it is a hostname (for a IPv6 host).

      In Apache Celeborn, this results in error messages like:

      24/07/24 23:10:46,068 INFO [x1@group-47BEDE733167-LeaderElection1] LeaderElection: x1@group-47BEDE733167-LeaderElection1 got exception when requesting votes: java.util.concurrent.ExecutionException: java.lang.IllegalArgumentException: Failed to create URI from target [my_host]:9872
      

      and Celeborn is not able to successfully initialize.

      Attachments

        Issue Links

          Activity

            People

              mridulm80 Mridul Muralidharan
              mridulm80 Mridul Muralidharan
              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 - 1h
                  1h