Uploaded image for project: 'Geode'
  1. Geode
  2. GEODE-8655

Not handling exception on SNIHostName

    XMLWordPrintableJSON

Details

    Description

      If we start locator with ipv6 and TLS enabled we got following error for status locator command:
       

      mkevo@mkevo-XPS-15-9570:~/apache-geode-1.13.0/bin/locator$ /usr/lib/jvm/java-8-openjdk-amd64/jre/bin/java -server -classpath /home/mkevo/apache-geode-1.13.0/lib/geode-core-1.13.0.jar:/home/mkevo/apache-geode-1.13.0/lib/geode-dependencies.jar -Djava.net.preferIPv6Addresses=true -DgemfireSecurityPropertyFile=/home/mkevo/geode-examples/clientSecurity/example_security.properties -Dgemfire.enable-cluster-configuration=true -Dgemfire.load-cluster-configuration-from-dir=false -Dgemfire.launcher.registerSignalHandlers=true -Djava.awt.headless=true -Dsun.rmi.dgc.server.gcInterval=9223372036854775806 org.apache.geode.distributed.LocatorLauncher start locator --port=10334
       
      gfsh>status locator --dir=/home/mkevo/apache-geode-1.13.0/bin/locator --security-properties-file=/home/mkevo/geode-examples/clientSecurity/example_security.properties
      Locator in /home/mkevo/apache-geode-1.13.0/bin/locator on mkevo-XPS-15-9570[10334] is currently not responding.

       
      From locator logs we found only this:

      Exception in processing request from fe80:0:0:0:f83e:ce0f:5143:f9ee%2: Read timed out

       
      After adding some logs we found the following:

      TcpClient.stop(): exception connecting to locator HostAndPort[/0:0:0:0:0:0:0:0:10334]java.lang.IllegalArgumentException: Contains non-LDH ASCII characters

      **
      It fails on creating SNIHostName from hostName(setServerNames in SocketCreator.java) as it not handling above exception.
       

       

      Attachments

        Activity

          People

            mkevo Mario Kevo
            mkevo Mario Kevo
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated: