Skip to content

Fix random catchpoint catchup expect test case#1208

Merged
tsachiherman merged 1 commit intoalgorand:masterfrom
tsachiherman:tsachi/randomexpectcatchupfail
Jun 27, 2020
Merged

Fix random catchpoint catchup expect test case#1208
tsachiherman merged 1 commit intoalgorand:masterfrom
tsachiherman:tsachi/randomexpectcatchupfail

Conversation

@tsachiherman
Copy link
Copy Markdown
Contributor

Summary

The test was creating a proxy which delays requests execution as a way to slow down the catchpoint catchup process.
This is important so that we can monitor from the goal command that the catchup is working as intended.
However, delaying the command execution caused an issue where the node was trying to issue multiple requests for blocks 1-16, in parallel, which reached the proxy at an arbitrary order. As a result, the request for block #1 was delayed by more than 4 second, causing it it timeout.

The solution was to reconfigure the number of parallel blocks being retrieved to 2. This would ensure that we only getting two blocks at a time. Since the delay is configured to 1.5 seconds, this would also be the delay, which is well under 4 second.

@tsachiherman tsachiherman self-assigned this Jun 27, 2020
@tsachizehub tsachizehub added this to the Sprint 4 milestone Jun 27, 2020
@tsachiherman tsachiherman merged commit d8c08a7 into algorand:master Jun 27, 2020
@tsachiherman tsachiherman deleted the tsachi/randomexpectcatchupfail branch June 27, 2020 20:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants