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

Reconnect on a few more gocql errors #4132

Merged
merged 1 commit into from
Mar 31, 2023

Conversation

yiminc
Copy link
Member

@yiminc yiminc commented Mar 31, 2023

What changed?
Add a few more errors to gocql session refresh logic

Why?
There are more than one error for Cassandra connection issue.

How did you test it?
eye_balls

Potential risks
No

Is hotfix candidate?
No

@yiminc yiminc requested a review from mastermanu March 31, 2023 17:40
@yiminc yiminc requested a review from a team as a code owner March 31, 2023 17:40
@yiminc yiminc merged commit 7244681 into temporalio:master Mar 31, 2023
yycptt pushed a commit that referenced this pull request Apr 17, 2023
BenEddy added a commit that referenced this pull request Jul 1, 2024
## What changed?
Modifies gocql error handling introduced in
#4132 to avoid recreating the
gocql session on transient connection errors.

## Why?
Recreating the session adds latency and isn't necessary when connections
are closed or reset.

## How did you test it?
Ran a prod-like workload and periodically restarted cassandra nodes.
With the patch applied, we observed a reduction in p50 and p99 latency
across persistence operations. 

## Potential risks
No

## Is hotfix candidate?
No
BenEddy added a commit that referenced this pull request Jul 1, 2024
## What changed?
Modifies gocql error handling introduced in
#4132 to avoid recreating the
gocql session on transient connection errors.

## Why?
Recreating the session adds latency and isn't necessary when connections
are closed or reset.

## How did you test it?
Ran a prod-like workload and periodically restarted cassandra nodes.
With the patch applied, we observed a reduction in p50 and p99 latency
across persistence operations. 

## Potential risks
No

## Is hotfix candidate?
No
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