Bug 1271844 - ForceReturnValuesTest.testDifferentInstancesForDifferentForceReturnValues is failing
ForceReturnValuesTest.testDifferentInstancesForDifferentForceReturnValues is ...
Product: JBoss Data Grid 6
Classification: JBoss
Component: CPP Client (Show other bugs)
Unspecified Unspecified
unspecified Severity unspecified
: ER1
: 6.6.0
Assigned To: Alan Field
Alan Field
: Reopened
Depends On:
  Show dependency treegraph
Reported: 2015-10-14 16:56 EDT by Alan Field
Modified: 2018-01-29 20:46 EST (History)
4 users (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2015-10-15 15:27:14 EDT
Type: Bug
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)
Memtestv logs (19.82 KB, application/x-gzip)
2015-10-29 15:59 EDT, Alan Field
no flags Details

  None (edit)
Description Alan Field 2015-10-14 16:56:21 EDT
Description of problem:

The ForceReturnValuesTest.testDifferentInstancesForDifferentForceReturnValues test is failing when checking the previous retunr value when ForceReturnValue is true for the cache. Here is code:

   public void testDifferentInstancesForDifferentForceReturnValues() {
      RemoteCache<String, String> rcDontForceReturn = remoteCacheManager.getCache(false);
      RemoteCache<String, String> rcForceReturn = remoteCacheManager.getCache(true);
      assertNotSame("RemoteCache instances should not be the same", rcDontForceReturn, rcForceReturn);

      String rv = rcDontForceReturn.put("Key", "Value");
      rv = rcDontForceReturn.put("Key", "Value2");

      rv = rcForceReturn.put("Key2", "Value");
      rv = rcForceReturn.put("Key2", "Value2");
      assertNotNull(rv); <-- THIS ASSERT FAILS, rv IS NULL
      assertEquals("Previous value should be 'Value'", "Value", rv);

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

How reproducible:

Steps to Reproduce:

Actual results:

Expected results:

Additional info:
Comment 2 Alan Field 2015-10-15 10:44:05 EDT
I was unable to reproduce this in straight C++ code, so the issue is somewhere in the SWIG layer. Investigating now.
Comment 3 Alan Field 2015-10-15 15:27:14 EDT
Now I can't reproduce this in SWIG either. Closing...
Comment 4 Alan Field 2015-10-21 08:19:09 EDT
Re-opening, because this has reappeared in the JDG 6.6 DR4 build
Comment 5 Alan Field 2015-10-21 09:13:27 EDT
This failure occurs when requesting a cache with force return values equal to true from RemoteCacheManager.getCache(), but not when requesting the same cache with RemoteCache.withFlags(Flag.FORCE_RETURN_VALUE)
Comment 6 Alan Field 2015-10-29 15:59 EDT
Created attachment 1087661 [details]
Memtestv logs

memtestv logs that show uninitialized variable warnings
Comment 8 Alan Field 2015-11-06 15:07:52 EST
Verified in JDG 6.6.0 ER1

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