Uploaded image for project: 'ZooKeeper'
  1. ZooKeeper
  2. ZOOKEEPER-4787

Failed to establish connection between zookeeper

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Blocker
    • Resolution: Unresolved
    • 3.7.2, 3.8.3, 3.9.1
    • None
    • server
    • z/OS

    Description

      Problem:

      When run zookeepers version 3.8.3 on z/OS platform,they cannot establish the connection

      Error:

      [2024-01-17 23:06:44,194] INFO Received connection request from /xx.xx.xx.xx:23840 (org.apache.zookeeper.server.quorum.QuorumCnxManager)
       [2024-01-17 23:06:44,197] ERROR Initial message parsing error! (org.apache.zookeeper.server.quorum.QuorumCnxManager)
       org.apache.zookeeper.server.quorum.QuorumCnxManager$InitialMessage$InitialMessageException: Badly formed address: ??????K?K?K?z????
           at org.apache.zookeeper.server.quorum.QuorumCnxManager$InitialMessage.parse(QuorumCnxManager.java:271)
           at org.apache.zookeeper.server.quorum.QuorumCnxManager.handleConnection(QuorumCnxManager.java:607)
           at org.apache.zookeeper.server.quorum.QuorumCnxManager.receiveConnection(QuorumCnxManager.java:555)
           at org.apache.zookeeper.server.quorum.QuorumCnxManager$Listener$ListenerHandler.acceptConnections(QuorumCnxManager.java:1085)
           at org.apache.zookeeper.server.quorum.QuorumCnxManager$Listener$ListenerHandler.run(QuorumCnxManager.java:1039)
           at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:522)
           at java.util.concurrent.FutureTask.run(FutureTask.java:277)
           at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1160)
           at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635)
           at java.lang.Thread.run(Thread.java:825)

      Root cause:

      The receiver cannot resolve the address from the sender requesting a connection. This is because the sender sends the address in UTF-8 encoding, but the receiver parses the address in IBM-1047 encoding (the default).

      Resolution:

       Both receiver and sender sides use UTF-8 encoding

       

      Attachments

        Activity

          People

            Unassigned Unassigned
            softrock softrock
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:

              Time Tracking

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0h
                0h
                Logged:
                Time Spent - 2.5h
                2.5h