This service will be undergoing maintenance at 00:00 UTC, 2017-10-23 It is expected to last about 30 minutes
Bug 1271844 - ForceReturnValuesTest.testDifferentInstancesForDifferentForceReturnValues is failing
ForceReturnValuesTest.testDifferentInstancesForDifferentForceReturnValues is ...
Status: VERIFIED
Product: JBoss Data Grid 6
Classification: JBoss
Component: CPP Client (Show other bugs)
6.6.0
Unspecified Unspecified
unspecified Severity unspecified
: ER1
: 6.6.0
Assigned To: Alan Field
Alan Field
: Reopened
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2015-10-14 16:56 EDT by Alan Field
Modified: 2015-11-08 20:12 EST (History)
5 users (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2015-10-15 15:27:14 EDT
Type: Bug
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
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");
      assertNull(rv);
      rv = rcDontForceReturn.put("Key", "Value2");
      assertNull(rv);

      rv = rcForceReturn.put("Key2", "Value");
      assertNull(rv);
      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:
1.
2.
3.

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.