Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

pd: remove client sync timeouts #2932

Merged
merged 2 commits into from
Aug 16, 2023
Merged

pd: remove client sync timeouts #2932

merged 2 commits into from
Aug 16, 2023

Conversation

erwanor
Copy link
Member

@erwanor erwanor commented Aug 14, 2023

Part of #2918 (cc @conorsch ). We have isolated that the stream terminates because of the timeout on polling compact blocks. This PR reenable the req-resp timeout and increase the polling timeout to 2s.

@erwanor erwanor temporarily deployed to smoke-test August 14, 2023 21:19 — with GitHub Actions Inactive
@conorsch
Copy link
Contributor

Spinning up a node to test this prior to merge.

Copy link
Contributor

@conorsch conorsch left a comment

Choose a reason for hiding this comment

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

Suggesting a higher timeout, if you don't have objections. The process I used to test was:

  • create fullnode with https rpc access
  • cherry-pick these commits on top of v0.58.1
  • bounce pd
  • run pcli -n <node> view sync three times

2s wasn't enough, 10s was enough, seems like a happy medium for now. I think we're both eager to wash our hands of the timeout tedium. If you +1 this change, I'm happy to get it out the door.

crates/bin/pd/src/info/oblivious.rs Outdated Show resolved Hide resolved
@erwanor erwanor temporarily deployed to smoke-test August 16, 2023 03:05 — with GitHub Actions Inactive
@erwanor erwanor changed the title pd: reenable req-resp timeout and increase polling timeout pd: remove client sync timeouts Aug 16, 2023
erwanor and others added 2 commits August 16, 2023 08:09
pd: re-enable req-resp timeout

pd(oblivious): increase timeout to 2s

pd: fix type inferrence error
@conorsch conorsch temporarily deployed to smoke-test August 16, 2023 15:12 — with GitHub Actions Inactive
@conorsch
Copy link
Contributor

I've rebased the changes here into a single commit for the timeout-removal, so it's more straightforward to cherry-pick into a patch release branch. Prior to merge, I'll test again on a dedicated node, and confirm pcli sync behavior is sound.

@conorsch
Copy link
Contributor

Was able to sync pcli three times to latest block height.

@conorsch conorsch merged commit 2407079 into main Aug 16, 2023
@conorsch conorsch deleted the longer-timeout branch August 16, 2023 15:51
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