]
RH Bugzilla Integration commented on ISPN-5875:
-----------------------------------------------
Dave Stahl <dstahl(a)redhat.com> changed the Status of [bug
HotRod Client does not handle failover silent when nodes are stopped
if using role based authentication
-------------------------------------------------------------------------------------------------------
Key: ISPN-5875
URL:
https://issues.jboss.org/browse/ISPN-5875
Project: Infinispan
Issue Type: Bug
Components: Remote Protocols, Security
Reporter: Wolf-Dieter Fink
Assignee: Galder ZamarreƱo
Priority: Critical
Labels: hotrod, hotrod-java-client, security
Fix For: 8.1.0.Beta1, 8.1.0.Final, 8.0.2.Final
A HotRod client fail over silent if one instance is shutting down if there is no Security
enabled.
With role based authentication the client fail sporadically with a WARN message
{code}WARN: ISPN004005: Error received from the server:
java.security.PrivilegedActionException:
org.infinispan.IllegalLifecycleStateException: ISPN000324: Cache 'testCache' is
in 'STOPPING' state and this is an invocation not
belonging to an on-going transaction, so it does not accept new invocations. Either
restart it or recreate the cache container.
{code}
and the following Exception:
{code}org.infinispan.client.hotrod.exceptions.HotRodClientException:Request for message
id[2825] returned server error (status=0x85):
java.security.PrivilegedActionException: org.infinispan.IllegalLifecycleStateException:
ISPN000324: Cache 'testCache' is in 'STOPPING'
state and this is an invocation not belonging to an on-going transaction, so it does not
accept new invocations. Either restart it or recreate
the cache container.
at
org.infinispan.client.hotrod.impl.protocol.Codec20.checkForErrorsInResponseStatus(Codec20.java:336)
at
org.infinispan.client.hotrod.impl.protocol.Codec20.readPartialHeader(Codec20.java:126)
at org.infinispan.client.hotrod.impl.protocol.Codec20.readHeader(Codec20.java:112)
at
org.infinispan.client.hotrod.impl.operations.HotRodOperation.readHeaderAndValidate(HotRodOperation.java:56)
at
org.infinispan.client.hotrod.impl.operations.AbstractKeyValueOperation.sendPutOperation(AbstractKeyValueOperation.java:57)
at
org.infinispan.client.hotrod.impl.operations.PutIfAbsentOperation.executeOperation(PutIfAbsentOperation.java:36)
at
org.infinispan.client.hotrod.impl.operations.PutIfAbsentOperation.executeOperation(PutIfAbsentOperation.java:23)
at
org.infinispan.client.hotrod.impl.operations.RetryOnFailureOperation.execute(RetryOnFailureOperation.java:52)
at
org.infinispan.client.hotrod.impl.RemoteCacheImpl.putIfAbsent(RemoteCacheImpl.java:257)
at
org.infinispan.client.hotrod.impl.RemoteCacheSupport.putIfAbsent(RemoteCacheSupport.java:54)
at HotRodTestClient.updateCache(HotRodTestClient.java:69)
at HotRodTestClient.lambda$queuePut$0(HotRodTestClient.java:88)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at java.lang.Thread.run(Thread.java:745)
{code}