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

set max retry for trino connection #4898

Merged
merged 3 commits into from
Feb 7, 2024
Merged

set max retry for trino connection #4898

merged 3 commits into from
Feb 7, 2024

Conversation

maskarb
Copy link
Member

@maskarb maskarb commented Feb 7, 2024

Description

The default max-attempts in the trino library is 3. This gives the connection approx 1.4 seconds to re-establish a connection to the trino-coordinator. During a cluster upgrade, the cutover to the new coordinator likely takes longer than 1.4 seconds.

This PR sets the max-attempts count to 9 which will give the workers approx 100 seconds to re-establish the connection to the coordinator.

@maskarb maskarb requested review from a team as code owners February 7, 2024 17:41
@maskarb maskarb added the smoke-tests pr_check will build the image and run minimal required smokes label Feb 7, 2024
@maskarb
Copy link
Member Author

maskarb commented Feb 7, 2024

/retest

@maskarb maskarb enabled auto-merge (squash) February 7, 2024 18:21
Copy link

codecov bot commented Feb 7, 2024

Codecov Report

Merging #4898 (e90bf92) into main (0cdebf7) will increase coverage by 0.0%.
The diff coverage is n/a.

Additional details and impacted files
@@          Coverage Diff          @@
##            main   #4898   +/-   ##
=====================================
  Coverage   94.0%   94.0%           
=====================================
  Files        370     370           
  Lines      30563   30563           
  Branches    3645    3645           
=====================================
+ Hits       28715   28717    +2     
+ Misses      1188    1187    -1     
+ Partials     660     659    -1     

@maskarb maskarb merged commit cd391cc into main Feb 7, 2024
11 checks passed
@maskarb maskarb deleted the trino-connect-retry branch February 7, 2024 19:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
smoke-tests pr_check will build the image and run minimal required smokes smokes-required
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants