[ 
https://issues.apache.org/jira/browse/GROOVY-12572?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Scott Murphy Heiberg updated GROOVY-12572:
------------------------------------------
    Description: 
Several tests sleep for a fixed time and assume another thread has reached some 
state, or need a thread to keep to a tight schedule; on a loaded machine they 
fail. For example, {{BroadcastChannelAsPublisherTest.forAwaitOverPublisher}} 
fails with "BroadcastChannel is closed" when the consumer subscribes after the 
producer has sent and closed. Affected: {{BroadcastChannelAsPublisherTest}}, 
{{AgentChangesTest}}, {{BroadcastChannelTest}}, {{ActorTest}}, 
{{ChannelSelectTest}}, {{AsyncAwaitSpecTest.testFastestServer}} and 
{{groovy-http-builder}}'s {{MultiExchangeTickerEndToEndTest}}. Each can be made 
to fail by delaying the other thread.

PR: https://github.com/apache/groovy/pull/3100

  was:Several tests sleep for a fixed time and assume another thread has 
reached some state, or need a thread to keep to a tight schedule; on a loaded 
machine they fail. For example, 
{{BroadcastChannelAsPublisherTest.forAwaitOverPublisher}} fails with 
"BroadcastChannel is closed" when the consumer subscribes after the producer 
has sent and closed. Affected: {{BroadcastChannelAsPublisherTest}}, 
{{AgentChangesTest}}, {{BroadcastChannelTest}}, {{ActorTest}}, 
{{ChannelSelectTest}}, {{AsyncAwaitSpecTest.testFastestServer}} and 
{{groovy-http-builder}}'s {{MultiExchangeTickerEndToEndTest}}. Each can be made 
to fail by delaying the other thread.


> Concurrency tests fail on a loaded machine because they sleep instead of 
> waiting for a state
> --------------------------------------------------------------------------------------------
>
>                 Key: GROOVY-12572
>                 URL: https://issues.apache.org/jira/browse/GROOVY-12572
>             Project: Groovy
>          Issue Type: Test
>            Reporter: Scott Murphy Heiberg
>            Priority: Major
>
> Several tests sleep for a fixed time and assume another thread has reached 
> some state, or need a thread to keep to a tight schedule; on a loaded machine 
> they fail. For example, 
> {{BroadcastChannelAsPublisherTest.forAwaitOverPublisher}} fails with 
> "BroadcastChannel is closed" when the consumer subscribes after the producer 
> has sent and closed. Affected: {{BroadcastChannelAsPublisherTest}}, 
> {{AgentChangesTest}}, {{BroadcastChannelTest}}, {{ActorTest}}, 
> {{ChannelSelectTest}}, {{AsyncAwaitSpecTest.testFastestServer}} and 
> {{groovy-http-builder}}'s {{MultiExchangeTickerEndToEndTest}}. Each can be 
> made to fail by delaying the other thread.
> PR: https://github.com/apache/groovy/pull/3100



--
This message was sent by Atlassian Jira
(v10.3.26#10030026)

Reply via email to