How to run server side (remote) tasks in a RHDG cluster
Issue
- The quickstart remote-tasks-with-streams will throw errors if the server is changed to a cluster and the configuration is a distributed-cache
Caused by: org.infinispan.client.hotrod.exceptions.HotRodClientException: org.infinispan.commons.marshall.NotSerializableException: org.jboss.as.quickstarts.datagrid.remotetasks.tasks.BooksRemovingTask
an exception which occurred:
in field java.lang.invoke.SerializedLambda.capturedArgs
in object java.lang.invoke.SerializedLambda@297f32fd
in object org.jboss.as.quickstarts.datagrid.remotetasks.tasks.BooksRemovingTask$$Lambda$796/1309778669@463d8f07
- If the task is using streams and Lambdas there is the following Exception, is it not possible to use Lambdas?
13:24:33,540 ERROR [org.infinispan.remoting.rpc.RpcManagerImpl] (HotRod-ServerIO-6-1) ISPN000073: Unexpected error while replicating: org.infinispan.commons.marshall.NotSerializableException: org.jboss.as.clustering.infinispan.DefaultCacheContainer$DelegatingCache
Caused by: an exception which occurred:
in field java.lang.invoke.SerializedLambda.capturedArgs
in object java.lang.invoke.SerializedLambda@47010e38
in object org.jboss.as.quickstarts.datagrid.remotetasks.tasks.BooksRemovingTask$$Lambda$759/1266608477@3c693383
- How to run server side tasks for a clustered cache?
- Task execution will not find all the releated entries, what is the reason?
Environment
- Red Hat Data Grid (RHDG)
- 7
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.