2 Replies Latest reply on Jun 27, 2017 1:38 PM by purushos

    Version compatibility between Infinispan Server and HotRod client

    purushos

      Hi,

       

      We have deployed an Infinispan server cluster v8.2.6 and access the remote cache using a HotRod client library (v8.2.6)

       

      We seem to intermittently hit the issue captured in [ISPN-7307] Byte array values are not marshalled correctly - JBoss Issue Tracker

       

      org.infinispan.client.hotrod.exceptions.HotRodClientException:: ISPN004034: Unable to unmarshall bytes 03040900000036636f6d2e616c752e636e612e636c6f75646d676d742e6b65797365727665722e6d6f64656c2e6b65792e4b6579436f6e7461696e65720000000000000001000000060000000a64725365656452696e67160000000007696e697469616c20000000000f6c617374466f7263656452656b65791600000000086c61737453796e631600000000087365656452696e6716000000000773656b52696e6716000900000045636f6d2e616c752e636e612e636c6f75646d676d742e6b65797365727665722e6d6f64656c2e6c6f676761626c652e41627374726163744c6f676761626c654f626a6563740000000000000001000000010000000b6c6f674d65737361676573160016525a040900000031636f6d2e616c752e636e612e636c6f75646d676d742e6b65797365727665722e6d6f64656c2e6b65792e4b657952696e670000000000000001000000005b320400000000350104380000000e6a6176612e7574696c2e44617465686a81014b59741900000000163208000000000000000035043bff3208000000000000000035043bfe32040000000204090000002e636f6d2e616c752e636e612e636c6f75646d676d742e6b65797365727665722e6d6f64656c2e6b65792e536565640000000000000001000000070000000e656e6372797074656453656564731600000000056e6f6e63651600000000047365656416000000001c7472616666696341757468656e746963617465416c676f726974686d16000000001774726166666963456e6372797074416c676f726974686d16000000001974726166666963456e63727970744b65794c69666574696d651600000000047479706516000900000035636f6d2e616c752e636e612e636c6f75646d676d742e6b65797365727665722e6d6f64656c2e6b65792e41627374726163744b65790000000000000001000000050000000a63726561746554696d651600000000086c69666574696d65160000000009737461727454696d65160000000005767364494416000000000c7673644d6f6e69746f72494416003bfb525a043bfd32080000015c977678af354b00002025043bfd32080000015c9777630d353e2464363535623635632d373338302d343563332d613639332d6339323461386465633263623e24303332313365633

       

      Assuming, the issue which we encounter is the same as the one described in ISPN-7307.

       

      1) Would upgrading the HotRod client library to 9.0.3.Final fix the issue?

      2) Can someone confirm if HotRod client 9.0.3.Final is compatible with Infinispan Server v8.2.6?

        • 1. Re: Version compatibility between Infinispan Server and HotRod client
          nadirx

          Quick answer: clients and servers of different versions can work with each other. You can set the protocol version of a newer client to an older one: ConfigurationBuilder (Infinispan JavaDoc All 9.0.3.Final API)

          In the case of Infinispan 8.2 and 9.0, the both use Hot Rod 2.6, so this should be fine.

           

          As for ISPN-7307, it affected only the two new marshallers we have added in 9 (Kryo and Protostuff), and it does not seem the same as what you are seeing. It would be interesting if you could find more details to help us better understand this and fix it for JBoss Marshaller too.

          • 2. Re: Version compatibility between Infinispan Server and HotRod client
            purushos

            Hi Tristan,

             

            Thanks. Sorry about the delay in getting back to you.

             

            The issue which we are observing is sporadic. Will get you additional information when we encounter the issue again. We are specifically observing the issue when we cache a Java Object which has multiple byte arrays.

             

            For now, we are changing our application to store JSON strings instead of Java Objects in Remote Cache. The Byte[] within the object would be represented as a Base64 string in JSON.

             

            Thanks,

            Purush