Skip to content

Conversation

Spikhalskiy
Copy link
Contributor

@Spikhalskiy Spikhalskiy commented May 7, 2021

What was changed:

Execution flow in WorkflowExecutionUtils#getInstanceCloseEvent has been fixed to don't allow falling into an infinite continue cycle described in Issue #471.

Closes issue:

Issue #471

…that previously could get into infinite loop after a timeout

Issue temporalio#471
@vitarb
Copy link
Contributor

vitarb commented May 7, 2021

Would be nice to also add a test, but it looks like it's not going to be easy, so LGTM.

Comment on lines +103 to +104
.setBackoffCoefficient(1)
.setInitialInterval(Duration.ofMillis(1))
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Unrelated to this PR, since you've just copied existing values, but is it a good idea to hammer server without backoff?

Copy link
Contributor Author

@Spikhalskiy Spikhalskiy May 7, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for raising it!
I agree, it's not. This is already on my radar and I probably will send one more PR shortly after I familiarize myself better with the implementation of GrpcRetryer and BackoffThrottler so I fully understand how these values are used.
This issue was discovered specifically because clients were very aggressively hammering the server. [every 1ms]

@Spikhalskiy
Copy link
Contributor Author

@vitarb thank you for the review, Vitaly! Yeah, a test would be good here, but a refactoring is needed here to make things mockable first.

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.

3 participants