]
Gustavo Fernandes reassigned ISPN-8815:
---------------------------------------
Assignee: Gustavo Fernandes
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.2.0.CR2, 9.1.6.Final
Reporter: Galder ZamarreƱo
Assignee: Gustavo Fernandes
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_...]).
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}