Bug 1292958 - ClientAsymmetricClusterTest.testAsymmetricCluster and HotRodAsyncReplicationTest.testPutKeyValue fail
Summary: ClientAsymmetricClusterTest.testAsymmetricCluster and HotRodAsyncReplication...
Keywords:
Status: ASSIGNED
Alias: None
Product: JBoss Data Grid 6
Classification: JBoss
Component: CPP Client
Version: 6.6.0,6.6.1
Hardware: Unspecified
OS: Linux
unspecified
unspecified
Target Milestone: ---
: 6.6.0
Assignee: Vittorio Rigamonti
QA Contact: Alan Field
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2015-12-18 20:28 UTC by Alan Field
Modified: 2023-04-01 08:00 UTC (History)
4 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed:
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Alan Field 2015-12-18 20:28:45 UTC
Description of problem:

ClientAsymmetricClusterTest.testAsymmetricCluster fails with the following exception:

FAILED: testAsymmetricCluster
org.infinispan.client.hotrod.exceptions.HotRodClientException:: We should not reach here!
	at org.infinispan.client.hotrod.jni.HotrodJNI.getJniRelayNamedCache(Native Method)
	at org.infinispan.client.hotrod.jni.Hotrod.getJniRelayNamedCache(Hotrod.java:38)
	at org.infinispan.client.hotrod.impl.RemoteCacheImpl.<init>(RemoteCacheImpl.java:50)
	at org.infinispan.client.hotrod.RemoteCacheManager.getCache(RemoteCacheManager.java:88)
	at org.infinispan.client.hotrod.ClientAsymmetricClusterTest.testAsymmetricCluster(ClientAsymmetricClusterTest.java:37)
	at org.infinispan.client.jni.hotrod.JniTest.main(JniTest.java:83)
... Removed 21 stack frames

A possible NPE failure was mentioned in this PR:

https://github.com/infinispan/infinispan/pull/3893#issuecomment-164835747

HotRodAsyncReplicationTest.testPutKeyValue fails with this exception:

8: FAILED: testPutKeyValue(public void org.infinispan.client.hotrod.HotRodAsyncReplicationTest.testPutKeyValue(java.lang.reflect.Method))
8: org.infinispan.client.hotrod.exceptions.HotRodClientException:: We should not reach here!
8: 	at org.infinispan.client.hotrod.jni.HotrodJNI.RemoteCache_jb_jb_put__SWIG_2(Native Method)
8: 	at org.infinispan.client.hotrod.jni.RemoteCache_jb_jb.put(RemoteCache_jb_jb.java:66)
8: 	at org.infinispan.client.hotrod.impl.RemoteCacheImpl$1.invoke(RemoteCacheImpl.java:84)
8: 	at org.infinispan.client.hotrod.impl.RemoteCacheImpl.relayedInvoker(RemoteCacheImpl.java:480)
8: 	at org.infinispan.client.hotrod.impl.RemoteCacheImpl.put(RemoteCacheImpl.java:81)
8: 	at org.infinispan.client.hotrod.HotRodAsyncReplicationTest.testPutKeyValue(HotRodAsyncReplicationTest.java:40)
8: 	at org.infinispan.client.jni.hotrod.JniTest.main(JniTest.java:83)
8: ... Removed 21 stack frames

Version-Release number of selected component (if applicable):


How reproducible:


Steps to Reproduce:
1.
2.
3.

Actual results:


Expected results:


Additional info:

Comment 2 Vittorio Rigamonti 2016-02-03 10:29:20 UTC
There's a bug in RetryOnFaultOperation.h, see 

https://issues.jboss.org/browse/HRCPP-222?filter=12316027


The bug is present also in the community version but the test suites differ.

Specifically:
the jdg test suite, for some tests, instantiates a configuration with maxRetries=0

Comment 3 Alan Field 2016-02-03 21:24:38 UTC
Vittorio, I still see the test case failures on the JDG branch with the fix in HRCPP-222


Note You need to log in before you can comment on or make changes to this bug.