Uploaded image for project: 'Infinispan'
  1. Infinispan
  2. ISPN-1506

HotRod server not populating host and port right in the topology cache

This issue belongs to an archived project. You can view it, but you can't modify it. Learn more

      Java Hotrod client gets errors trying to talk to basic distributed server cluster. Same code works in 5.1.0.BETA2. All endpoints and clients on local machine (different ports). Cluster seems to form fine, just client gets errors. Detailed log output will be attached in comments.

      Error is characterized by lots of client-side errors like the following:

      605055 [Timer-0] ERROR org.infinispan.client.hotrod.impl.protocol.Codec10  - ISPN004004: Invalid message id. Expected 10 and received 0
      

        1. ClientTest1_trace_beta2.txt
          16 kB
        2. ClientTest1_trace_beta3.txt
          10 kB
        3. ClientTest1.java
          0.5 kB
        4. ClientTest1.java
          0.5 kB
        5. node0_trace_beta2.txt
          78 kB
        6. node0_trace_beta3.txt
          81 kB
        7. node1_trace_beta2.txt
          79 kB
        8. node1_trace_beta3.txt
          86 kB
        9. server_dist_is_cfg.xml
          0.7 kB
        10. server_dist_jgroups_cfg.xml
          2 kB
        11. Server_startup_args.txt
          0.3 kB

            [ISPN-1506] HotRod server not populating host and port right in the topology cache

            And thanks for the issue title/desc clarification. I realize "broken" is painfully useless, but the release and component was about as detailed as I could get at the time.

            Glen Taylor (Inactive) added a comment - And thanks for the issue title/desc clarification. I realize "broken" is painfully useless, but the release and component was about as detailed as I could get at the time.

            Thanks very much Glen. It is indeed a bug as a result of some refactoring I did for ISPN-1408. Should be fixed shortly.

            Galder Zamarreño added a comment - Thanks very much Glen. It is indeed a bug as a result of some refactoring I did for ISPN-1408 . Should be fixed shortly.

            Updated "steps-to-reproduce" to reference attachments.

            Glen Taylor (Inactive) added a comment - Updated "steps-to-reproduce" to reference attachments.

            Just realized that the ClientTest1 still unnecessarily extends AbstractClientTest, so I removed that to simplify. JIRA wouldn't allow me to delete the original attachment

            Glen Taylor (Inactive) added a comment - Just realized that the ClientTest1 still unnecessarily extends AbstractClientTest, so I removed that to simplify. JIRA wouldn't allow me to delete the original attachment

            Attaching traces of successful execution of same scenario with BETA2 binary distro.

            Glen Taylor (Inactive) added a comment - Attaching traces of successful execution of same scenario with BETA2 binary distro.

            Client and server-side traces (org.infinispan=TRACE) for failure scenario on 5.1.0.BETA3. Will post trace of successful call on BETA2 shortly.

            Glen Taylor (Inactive) added a comment - Client and server-side traces (org.infinispan=TRACE) for failure scenario on 5.1.0.BETA3. Will post trace of successful call on BETA2 shortly.

            Attaching runtime scenario (server startup args, server XML configs, and client code).

            Glen Taylor (Inactive) added a comment - Attaching runtime scenario (server startup args, server XML configs, and client code).

            I'll attach a runnable example with source and logs ASAP, probably later today.

            Glen Taylor (Inactive) added a comment - I'll attach a runnable example with source and logs ASAP, probably later today.

            Glen, can you attach the client code being executed? And can you attach a full TRACE client and server log files with TRACE enabled on org.infinispan package?

            Galder Zamarreño added a comment - Glen, can you attach the client code being executed? And can you attach a full TRACE client and server log files with TRACE enabled on org.infinispan package?

            Here's some output from one of the server nodes at the same time (TRACE on org.infinispan.server):

            5435 [HotRodServerWorker-1-1] TRACE org.infinispan.server.hotrod.HotRodDecoder  - Decode using instance @4b7d03c5
            5457 [HotRodServerWorker-1-1] TRACE org.infinispan.server.hotrod.Decoder10$  - Operation code: 23 has been matched to PingRequest
            5463 [HotRodServerWorker-1-1] TRACE org.infinispan.server.hotrod.HotRodDecoder  - Decoded header HotRodHeader{op=PingRequest, version=11, messageId=1, cacheName=, flag=NoFlag, clientIntelligence=3, topologyId=0}
            5467 [HotRodServerWorker-1-1] TRACE org.infinispan.server.hotrod.HotRodDecoder  - Write response Response{version=11, messageId=1, operation=PingResponse, status=Success, cacheName=}
            5468 [HotRodServerWorker-1-1] TRACE org.infinispan.server.hotrod.HotRodEncoder  - Encode msg Response{version=11, messageId=1, operation=PingResponse, status=Success, cacheName=}
            5479 [HotRodServerWorker-1-1] TRACE org.infinispan.server.hotrod.Encoder11$  - Write hash distribution change response header HashDistAware11Response(1,JavaConversions(null:0, null:0),2,2,2147483647,1)
            5482 [HotRodServerWorker-1-1] TRACE org.infinispan.server.hotrod.HotRodEncoder  - Encode msg ErrorResponse{version=0, messageId=0, operation=ErrorResponse, status=ServerError, msg=java.lang.NullPointerException}
            

            Glen Taylor (Inactive) added a comment - Here's some output from one of the server nodes at the same time (TRACE on org.infinispan.server): 5435 [HotRodServerWorker-1-1] TRACE org.infinispan.server.hotrod.HotRodDecoder - Decode using instance @4b7d03c5 5457 [HotRodServerWorker-1-1] TRACE org.infinispan.server.hotrod.Decoder10$ - Operation code: 23 has been matched to PingRequest 5463 [HotRodServerWorker-1-1] TRACE org.infinispan.server.hotrod.HotRodDecoder - Decoded header HotRodHeader{op=PingRequest, version=11, messageId=1, cacheName=, flag=NoFlag, clientIntelligence=3, topologyId=0} 5467 [HotRodServerWorker-1-1] TRACE org.infinispan.server.hotrod.HotRodDecoder - Write response Response{version=11, messageId=1, operation=PingResponse, status=Success, cacheName=} 5468 [HotRodServerWorker-1-1] TRACE org.infinispan.server.hotrod.HotRodEncoder - Encode msg Response{version=11, messageId=1, operation=PingResponse, status=Success, cacheName=} 5479 [HotRodServerWorker-1-1] TRACE org.infinispan.server.hotrod.Encoder11$ - Write hash distribution change response header HashDistAware11Response(1,JavaConversions( null :0, null :0),2,2,2147483647,1) 5482 [HotRodServerWorker-1-1] TRACE org.infinispan.server.hotrod.HotRodEncoder - Encode msg ErrorResponse{version=0, messageId=0, operation=ErrorResponse, status=ServerError, msg=java.lang.NullPointerException}

              rh-ee-galder Galder Zamarreño
              inetdevboy_jira Glen Taylor (Inactive)
              Archiver:
              rhn-support-adongare Amol Dongare

                Created:
                Updated:
                Resolved:
                Archived: