You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@geode.apache.org by "Kirk Lund (JIRA)" <ji...@apache.org> on 2018/08/29 19:18:00 UTC
[jira] [Commented] (GEODE-5662) Flaky unit test
ExecutorServiceRuleTest.threadCountTwoHasTwoThreads
[ https://issues.apache.org/jira/browse/GEODE-5662?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16596755#comment-16596755 ]
Kirk Lund commented on GEODE-5662:
----------------------------------
ExecutorServiceRuleTest.singleThreadedByDefault is also flaky. It's caused by awaiting maximum of 30 seconds for submitted tasks to countDown a CountDownLatch. The CPU has to be very overloaded to hit these failures.
{noformat}
org.apache.geode.test.junit.rules.ExecutorServiceRuleTest > singleThreadedByDefault FAILED
org.junit.ComparisonFailure: expected:<[1]> but was:<[2]>
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
at org.apache.geode.test.junit.rules.ExecutorServiceRuleTest.singleThreadedByDefault(ExecutorServiceRuleTest.java:122)
{noformat}
> Flaky unit test ExecutorServiceRuleTest.threadCountTwoHasTwoThreads
> -------------------------------------------------------------------
>
> Key: GEODE-5662
> URL: https://issues.apache.org/jira/browse/GEODE-5662
> Project: Geode
> Issue Type: Bug
> Reporter: Dan Smith
> Assignee: Kirk Lund
> Priority: Major
> Labels: swat
>
> This test failed in CI. To me it looks like this test seems to be assuming that if it schedules two tasks they will actually run concurrently, which may or may not happen depending on timing.
> https://concourse.apachegeode-ci.info/teams/main/pipelines/develop/jobs/Build/builds/403
> {noformat}
> org.apache.geode.test.junit.rules.ExecutorServiceRuleTest > threadCountTwoHasTwoThreads FAILED
> org.junit.ComparisonFailure: expected:<[2]> but was:<[1]>
> at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
> at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
> at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
> at org.apache.geode.test.junit.rules.ExecutorServiceRuleTest.threadCountTwoHasTwoThreads(ExecutorServiceRuleTest.java:130)
> {noformat}
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)