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

Server task related caching leaves task unusable until restart

    Details

    • Type: Bug
    • Status: New (View Workflow)
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: 9.1.6.Final, 9.2.0.CR2
    • Fix Version/s: None
    • Component/s: Marshalling, Tasks
    • Labels:
      None

      Description

      Some caching seems to happen with task that means that if the client uses the wrong marshaller, it doesn't recover until the server is restarted.

      1. Take this code and deploy the tasks associated with it (e.g. full code is here). E.g.

      mvn clean package wildfly:deploy
      

      2. The client code works fine as is but instead change execCache to be initialized with data cache, e.g.

      final RemoteCache<String, String> dataCache = getDataCache();
      final RemoteCache<String, String> execCache = getDataCache();
      

      3. Execute the client code against the server. The server replies with error (this is being addressed in ISPN-8814:

      mvn clean package exec:exec
      ...
      org.infinispan.client.hotrod.exceptions.HotRodClientException:
      Request for messageId=5 returned server error (status=0x85): 
      java.io.IOException: Unsupported protocol version 100
      

      4. Change client code so that both dataCache and execCache are initialized with getExecCache, e.g.

      final RemoteCache<String, String> dataCache = getExecCache();
      final RemoteCache<String, String> execCache = getExecCache();
      

      5. Execute the client again:

      mvn clean package exec:exec
      ...
      org.infinispan.client.hotrod.exceptions.HotRodClientException:
      Request for messageId=16 returned server error (status=0x85): 
      java.lang.NumberFormatException: For input string: ">5"
      

      6. Restore the client code to be:

      final RemoteCache<String, String> dataCache = getDataCache();
      final RemoteCache<String, String> execCache = getExecCache();
      

      7. Executing the client again fails:

       mvn clean package exec:exec
      ...
      org.infinispan.client.hotrod.exceptions.HotRodClientException:
      Request for messageId=16 returned server error (status=0x85): 
      java.lang.NumberFormatException: For input string: ">5"
      

      8. Try redeploying the task:

      mvn clean package wildfly:deploy
      

      9. Execute client again and same error:

       mvn clean package exec:exec
      ...
      org.infinispan.client.hotrod.exceptions.HotRodClientException:
      Request for messageId=16 returned server error (status=0x85): 
      java.lang.NumberFormatException: For input string: ">5"
      

      10. Restart the server.

      11. Execute the client:

       mvn clean package exec:exec
      ...
      Greeting = Hello developer
      Sum of values = 45
      

        Gliffy Diagrams

          Attachments

            Issue Links

              Activity

                People

                • Assignee:
                  gustavonalle Gustavo Fernandes
                  Reporter:
                  galder.zamarreno Galder ZamarreƱo
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  1 Start watching this issue

                  Dates

                  • Created:
                    Updated: