Skip to content

Conversation

@samarabbas
Copy link
Contributor

@samarabbas samarabbas commented Jul 19, 2020

What changed?
Fixed the race condition by moving the sleep after PollForWorkflowTask and also removed retry logic on empty polls.

Why?
Test had a race condition where a workflow could timeout between WorkflowTask being scheduled and calling PollForWorkflowTask. This resulted in test getting in a stuck state as underlying implementation for PollForWorkflowTask would retry for a long time if it receives empty polls.

Fixed #497.

How did you test it?
Running integration tests.

Potential risks
No risk.

@samarabbas samarabbas requested a review from alexshtin July 19, 2020 21:51
Test had a race condition where a workflow could timeout between
WorkflowTask being scheduled and calling PollForWorkflowTask.  This
resulted in test getting in a stuck state as underlying implementation
for PollForWorkflowTask would retry for a long time if it receives
empty polls.

Fixed the race condition by moving the sleep after PollForWorkflowTask
and also removed retry logic on empty polls.
@samarabbas samarabbas force-pushed the continue-as-new-flaky-test branch from cb5f1f0 to 4750b94 Compare July 19, 2020 21:52
@alexshtin alexshtin changed the title Fixes flaky continueAsNewWorkflow_Timeout integration test Fixes flaky ContinueAsNewWorkflow_Timeout integration test Jul 20, 2020
@samarabbas samarabbas force-pushed the continue-as-new-flaky-test branch from b42cc49 to 0695340 Compare July 20, 2020 23:39
@samarabbas samarabbas merged commit b36bc0a into temporalio:master Jul 21, 2020
@samarabbas samarabbas deleted the continue-as-new-flaky-test branch July 21, 2020 01:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

TestIntegrationSuite/TestContinueAsNewWorkflow_Timeout is flaky

2 participants