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

Make BanksClient timeout after 10 seconds instead of 60 #30904

Merged
merged 9 commits into from
Mar 28, 2023
Merged

Make BanksClient timeout after 10 seconds instead of 60 #30904

merged 9 commits into from
Mar 28, 2023

Conversation

kevinheavey
Copy link
Contributor

Problem

BanksClient times out in certain situations, such as when you try to send a transaction but it doesn't get committed (#30527). This should be fixed but in the meantime it would be better not to wait a whole minute before timing out.

Summary of Changes

Removed lines that increment the deadline by 50 seconds, with the result that the deadline is now 10 seconds instead of 60. Those lines were written by @garious in #10728. Unfortunately I can't tell why they are there, maybe @garious remembers why.

Also added a test to demonstrate a panic on timeout.

@mergify mergify bot added community Community contribution need:merge-assist labels Mar 27, 2023
@mergify mergify bot requested a review from a team March 27, 2023 11:27
@CriesofCarrots CriesofCarrots added the CI Pull Request is ready to enter CI label Mar 27, 2023
@solana-grimes solana-grimes removed the CI Pull Request is ready to enter CI label Mar 27, 2023
Copy link
Contributor

@CriesofCarrots CriesofCarrots left a comment

Choose a reason for hiding this comment

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

Can you please run cargo fmt on your changes?

program-test/tests/timeout.rs Outdated Show resolved Hide resolved
program-test/tests/timeout.rs Show resolved Hide resolved
@CriesofCarrots CriesofCarrots added the CI Pull Request is ready to enter CI label Mar 27, 2023
@solana-grimes solana-grimes removed the CI Pull Request is ready to enter CI label Mar 27, 2023
@codecov
Copy link

codecov bot commented Mar 27, 2023

Codecov Report

Merging #30904 (0e379b6) into master (bf986d6) will increase coverage by 0.0%.
The diff coverage is 64.2%.

@@           Coverage Diff           @@
##           master   #30904   +/-   ##
=======================================
  Coverage    81.5%    81.5%           
=======================================
  Files         727      727           
  Lines      205166   205187   +21     
=======================================
+ Hits       167295   167336   +41     
+ Misses      37871    37851   -20     

CriesofCarrots
CriesofCarrots previously approved these changes Mar 28, 2023
@CriesofCarrots CriesofCarrots added the CI Pull Request is ready to enter CI label Mar 28, 2023
@solana-grimes solana-grimes removed the CI Pull Request is ready to enter CI label Mar 28, 2023
@CriesofCarrots
Copy link
Contributor

Oops, might have prematurely approved. Lgtm pending CI success.

@CriesofCarrots CriesofCarrots added the CI Pull Request is ready to enter CI label Mar 28, 2023
@solana-grimes solana-grimes removed the CI Pull Request is ready to enter CI label Mar 28, 2023
@CriesofCarrots CriesofCarrots merged commit 6f73aaf into solana-labs:master Mar 28, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
community Community contribution need:merge-assist
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants