Bug 987893 - Tests from org.infinispan.atomic package fail with AssertionError
Summary: Tests from org.infinispan.atomic package fail with AssertionError
Keywords:
Status: ASSIGNED
Alias: None
Product: JBoss Data Grid 6
Classification: JBoss
Component: Infinispan
Version: 6.2.0
Hardware: x86_64
OS: Linux
unspecified
high
Target Milestone: ER6
: 6.2.0
Assignee: Tristan Tarrant
QA Contact: Martin Gencur
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-07-24 11:37 UTC by Vitalii Chepeliuk
Modified: 2023-03-02 08:27 UTC (History)
1 user (show)

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


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Issue Tracker ISPN-3364 0 Major Resolved Tests from org.infinispan.atomic package fail with AssertionError 2014-05-30 15:41:50 UTC

Description Vitalii Chepeliuk 2013-07-24 11:37:19 UTC
Description of problem:
See Description of ISPN-3364

Comment 3 JBoss JIRA Server 2013-07-25 12:59:04 UTC
Vitalii Chepeliuk <vchepeli> made a comment on jira ISPN-3364

Added trace log for LocalDeltaAwarePassivationTest

Comment 4 JBoss JIRA Server 2013-07-25 12:59:44 UTC
Vitalii Chepeliuk <vchepeli> made a comment on jira ISPN-3364

Added trace log for ReplDeltaAwarePassivationTest

Comment 5 JBoss JIRA Server 2013-10-11 03:06:35 UTC
William Burns <wburns> updated the status of jira ISPN-3364 to Coding In Progress

Comment 6 JBoss JIRA Server 2013-10-11 04:14:53 UTC
William Burns <wburns> made a comment on jira ISPN-3364

This test does not fail on the latest ISPN master currently.

I looked on Jenkins to try to find which commit caused the failure, but haven't had luck.  I see a SHA-1 here at https://jenkins.mw.lab.eng.bos.redhat.com/hudson/view/JDG/view/FUNC/job/edg-60-ispn-testsuite-rhel/jdk=ibm17,label_exp=RHEL5_x86_64/166/parameters/ but it doesn't appear to be a valid ISPN commit SHA-1.

Are you still able to reproduce this issue or can you point me to what commit this was used against?

Comment 7 JBoss JIRA Server 2013-10-11 07:03:54 UTC
Vitalii Chepeliuk <vchepeli> made a comment on jira ISPN-3364

Hi Will! You can still see it here. I run it with ER2, you can see it in matrix under IBM and JDK7, this tests fail every time
https://jenkins.mw.lab.eng.bos.redhat.com/hudson/view/JDG/view/FUNC/job/edg-60-ispn-testsuite-rhel/

Comment 8 JBoss JIRA Server 2013-10-11 15:39:30 UTC
William Burns <wburns> updated the status of jira ISPN-3364 to Open

Comment 10 JBoss JIRA Server 2013-10-14 12:11:29 UTC
Vitalii Chepeliuk <vchepeli> made a comment on jira ISPN-3364

Hi Will! You can still see it here. I run it with ER3, you can see it in matrix under IBM7, this tests fail every time, here is build on RHEL6x86 machine
https://jenkins.mw.lab.eng.bos.redhat.com/hudson/view/JDG/view/FUNC/job/edg-60-ispn-testsuite-rhel/USE_JDK=JDK7,jdk=ibm17,label_exp=RHEL6%20%26%26%20x86%20%26%26%20mem4G/227/#showFailuresLink
And RHEL6x86_64 machine
https://jenkins.mw.lab.eng.bos.redhat.com/hudson/view/JDG/view/FUNC/job/edg-60-ispn-testsuite-rhel/USE_JDK=JDK7,jdk=ibm17,label_exp=RHEL6%20%26%26%20x86_64%20%26%26%20mem4G/228/#showFailuresLink

Comment 11 JBoss JIRA Server 2013-11-22 13:16:12 UTC
William Burns <wburns> updated the status of jira ISPN-3364 to Coding In Progress

Comment 12 JBoss JIRA Server 2013-11-26 22:01:50 UTC
William Burns <wburns> made a comment on jira ISPN-3364

I was finally able to reproduce this in a way that I could debug to see what is going on.  And needless to say that hasn't even helped.

In testing the ReplDeltaAwarePassivationTest I was able to narrow the culprit down to a single line where things were not working.

In BoundedConcurrentHashMap:1719 it is finally assigning the new entry to the array.  For some reason this affects both the DataContainer and the DummyInMemoryCacheStore entries maps and ends up removing the additional element.  Looking at all the references between the dc and store there is nothing shared in the map and doesn't make much sense as to why this occurs.  I have tried changing the hash maps that are used in both the DataContainer and DummyStore to use different implementations respectively but it hasn't change the outcome either.

I haven't been able to reproduce the LocalDeltaAwarePassivationTest issue yet as it only is reproducible in a full maven run with all the tests.

Comment 13 JBoss JIRA Server 2013-11-27 13:25:08 UTC
William Burns <wburns> made a comment on jira ISPN-3364

I was finally able to reproduce this in a way that I could debug to see what is going on.  And needless to say that hasn't even helped.

In testing the ReplDeltaAwarePassivationTest I was able to narrow the culprit down to a single line where things were not working.

In BoundedConcurrentHashMap:1719 it is finally assigning the new entry to the array.  For some reason this affects both the DataContainer and the DummyInMemoryCacheStore entries maps and ends up removing the additional element.  Looking at all the references between the dc and store there is nothing shared in the map and doesn't make much sense as to why this occurs.  I have tried changing the hash maps that are used in both the DataContainer and DummyStore to use different implementations respectively but it hasn't change the outcome either.

I haven't been able to debug fully the LocalDeltaAwarePassivationTest issue yet as it only is reproducible in a full maven run with all the tests.

Comment 14 JBoss JIRA Server 2013-12-09 19:49:23 UTC
William Burns <wburns> made a comment on jira ISPN-3364

Looking closer it appears that the changes in ISPN-1822 are now causing this issue.  If I change it to use the standard LRU implementation all tests pass.  My guess is that IBM finally fixed their issue with LinkedHashMap.  I am wondering if it is worth keeping the old fixes or not for older IBM JVMs or not, it would be nice to just remove the code now.

Comment 15 Vitalii Chepeliuk 2013-12-20 11:57:36 UTC
Running tests with -Pjdk6testsuite profile and IBM6 
See following report from last test run
https://jenkins.mw.lab.eng.bos.redhat.com/hudson/view/JDG/view/FUNC/job/edg-60-ispn-testsuite-rhel/290/testReport/

Comment 16 JBoss JIRA Server 2013-12-20 12:05:06 UTC
Vitalii Chepeliuk <vchepeli> updated the status of jira ISPN-3364 to Reopened

Comment 17 JBoss JIRA Server 2013-12-23 14:37:32 UTC
William Burns <wburns> updated the status of jira ISPN-3364 to Coding In Progress


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