[ 
https://issues.apache.org/jira/browse/GEODE-1456?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15300639#comment-15300639
 ] 

Darrel Schneider commented on GEODE-1456:
-----------------------------------------

The unit test has a race in it. The problem is that when the GemFireCacheImpl 
is created is always create a pdx TypeRegistry.
The TypeRegistry creates a region which cause an async event to be scheduled.
The race in the test is with this async event. If it did not complete early 
then it can cause the completedTaskCount that the test expects to be one more 
than it expects.
So it never sees the count it expects and fails.

> CI Failure: 
> GemFireCacheImplTest.checkThatAsyncEventListenersUseAllThreadsInPool
> --------------------------------------------------------------------------------
>
>                 Key: GEODE-1456
>                 URL: https://issues.apache.org/jira/browse/GEODE-1456
>             Project: Geode
>          Issue Type: Bug
>          Components: regions
>            Reporter: Darrel Schneider
>            Assignee: Darrel Schneider
>              Labels: CI
>
> com.gemstone.gemfire.internal.cache.GemFireCacheImplTest > 
> checkThatAsyncEventListenersUseAllThreadsInPool FAILED
>     com.jayway.awaitility.core.ConditionTimeoutException: Condition with 
> lambda expression in com.gemstone.gemfire.internal.cache.GemFireCacheImplTest 
> that uses java.util.concurrent.ThreadPoolExecutor, 
> java.util.concurrent.ThreadPoolExecutorint, intlong was not fulfilled within 
> 15 seconds.
>         at 
> com.jayway.awaitility.core.ConditionAwaiter.await(ConditionAwaiter.java:122)
>         at 
> com.jayway.awaitility.core.CallableCondition.await(CallableCondition.java:79)
>         at 
> com.jayway.awaitility.core.CallableCondition.await(CallableCondition.java:27)
>         at 
> com.jayway.awaitility.core.ConditionFactory.until(ConditionFactory.java:764)
>         at 
> com.jayway.awaitility.core.ConditionFactory.until(ConditionFactory.java:741)
>         at 
> com.gemstone.gemfire.internal.cache.GemFireCacheImplTest.checkThatAsyncEventListenersUseAllThreadsInPool(GemFireCacheImplTest.java:60)



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to