[infinispan-issues] [JBoss JIRA] (ISPN-8815) Server task related caching leaves task unusable until restart

Galder Zamarreño (JIRA) issues at jboss.org
Wed Feb 14 12:00:00 EST 2018


Galder Zamarreño created ISPN-8815:
--------------------------------------

             Summary: Server task related caching leaves task unusable until restart
                 Key: ISPN-8815
                 URL: https://issues.jboss.org/browse/ISPN-8815
             Project: Infinispan
          Issue Type: Bug
          Components: Marshalling, Tasks
    Affects Versions: 9.1.6.Final, 9.2.0.CR2
            Reporter: Galder Zamarreño


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|https://gist.github.com/galderz/ec38a6fbd4b714bffd06a66d4624eb8e] and deploy the tasks associated with it (e.g. full code is [here|https://github.com/infinispan/infinispan-simple-tutorials/tree/8793_v2/server-tasks]). E.g.

{code}
mvn clean package wildfly:deploy
{code}

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

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

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

{code}
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
{code}

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

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

5. Execute the client again:

{code}
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"
{code}

6. Restore the client code to be:

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

7. Executing the client again fails:

{code}
 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"
{code}

8. Try redeploying the task:

{code}
mvn clean package wildfly:deploy
{code}

9. Execute client again and same error:

{code}
 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"
{code}

10. Restart the server.

11. Execute the client:

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



--
This message was sent by Atlassian JIRA
(v7.5.0#75005)



More information about the infinispan-issues mailing list