[
https://issues.jboss.org/browse/GTNPORTAL-2673?page=com.atlassian.jira.pl...
]
Stian Thorgersen commented on GTNPORTAL-2673:
---------------------------------------------
This is caused by GadgetTokenInfoService (and AbstractTokenService) not being thread
safe.
AbstractTokenService executes cleanExpiredTokens every 600 ms, which causes this test to
fail even though the test is single threaded. I've added a temporary concurrency test
to
https://github.com/stianst/gatein-portal/tree/GTNPORTAL-2673-TMP_CONCURRE...
The test has one thread running "testDeleteToken" repeatedly for 10 seconds, and
another running "cleanExpiredTokens" repeatedly for the same time. This test
fails every time I run it with a range of different failures.
The "Thread.sleep(1000);" in setUp seems to only make the test less likely to
fail. If GadgetTokenInfoService was thread safe this sleep shouldn't be required.
Gatein master Unit tests fails in GateIn Portal Component Portal Data
on openjdk7
---------------------------------------------------------------------------------
Key: GTNPORTAL-2673
URL:
https://issues.jboss.org/browse/GTNPORTAL-2673
Project: GateIn Portal
Issue Type: Bug
Security Level: Public(Everyone can see)
Affects Versions: 3.4.0.Final
Environment: jboss as 7.1.3
Reporter: Vlastislav Ramik
Assignee: Stian Thorgersen
Labels: EPP6.0-Test-Dev
Fix For: 3.5.0.Beta02
org.exoplatform.portal.gadget.TestGadgetTokenInfoService.testGetToken
org.exoplatform.portal.gadget.TestGadgetTokenInfoService.testGetAllToken
org.exoplatform.portal.gadget.TestGadgetTokenInfoService.testSize
org.exoplatform.portal.gadget.TestGadgetTokenInfoService.testDeleteToken
see details:
https://jenkins.mw.lab.eng.bos.redhat.com/hudson/view/EPP/view/6.0/view/U...
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see:
http://www.atlassian.com/software/jira