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

roachtest: added connection timeout to loq recovery ops #98851

Merged
merged 1 commit into from
Mar 23, 2023

Conversation

aliher1911
Copy link
Contributor

When working with cluster that failed recovery, db connections could get stuck indefinitely preventing test completion. This is caused by driver ignoring context cancellation when attempting to establish connection.
This commit adds a connect timeout option to the driver to prevent this behaviour.

Epic: none

Release note: None

Fixes #98639

@aliher1911 aliher1911 requested a review from a team March 17, 2023 11:53
@aliher1911 aliher1911 requested a review from a team as a code owner March 17, 2023 11:53
@aliher1911 aliher1911 self-assigned this Mar 17, 2023
@aliher1911 aliher1911 requested review from herkolategan and smg260 and removed request for a team March 17, 2023 11:53
@cockroach-teamcity
Copy link
Member

This change is Reviewable

@aliher1911 aliher1911 requested a review from msbutler March 17, 2023 11:54
@aliher1911 aliher1911 force-pushed the deflake_loq_roachtest branch from 966ee6e to 05ef750 Compare March 17, 2023 12:02
@aliher1911 aliher1911 requested a review from tbg March 22, 2023 22:00
When working with cluster that failed recovery, db connections
could get stuck indefinitely preventing test completion. This is
caused by driver ignoring context cancellation when attempting to
establish connection.
This commit adds a connect timeout option to the driver to prevent
this behaviour.

Epic: none

Release note: None
@aliher1911 aliher1911 force-pushed the deflake_loq_roachtest branch from 05ef750 to bba0750 Compare March 23, 2023 10:38
@aliher1911
Copy link
Contributor Author

bors r=tbg

@craig
Copy link
Contributor

craig bot commented Mar 23, 2023

Build succeeded:

@craig craig bot merged commit bbc5ec1 into cockroachdb:master Mar 23, 2023
@erikgrinaker
Copy link
Contributor

We'll need a 23.1 backport as well, see #99529.

blathers backport 23.1

@aliher1911
Copy link
Contributor Author

blathers backport 22.2

@blathers-crl
Copy link

blathers-crl bot commented May 10, 2023

Encountered an error creating backports. Some common things that can go wrong:

  1. The backport branch might have already existed.
  2. There was a merge conflict.
  3. The backport branch contained merge commits.

You might need to create your backport manually using the backport tool.


error creating merge commit from bba0750 to blathers/backport-release-22.2-98851: POST https://api.github.com/repos/cockroachdb/cockroach/merges: 409 Merge conflict []

you may need to manually resolve merge conflicts with the backport tool.

Backport to branch 22.2 failed. See errors above.


🦉 Hoot! I am a Blathers, a bot for CockroachDB. My owner is dev-inf.

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.

roachtest: loqrecovery/workload=tpcc/rangeSize=16mb failed
4 participants