temporal icon indicating copy to clipboard operation
temporal copied to clipboard

Avoid recreating gocql session on transient connection errors

Open BenEddy opened this issue 2 years ago • 1 comments

What changed?

Modifies gocql error handling introduced in https://github.com/temporalio/temporal/pull/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 this patch while restarting cassandra nodes.

Potential risks

No

Is hotfix candidate?

No

BenEddy avatar Jun 28 '24 17:06 BenEddy

CLA assistant check
All committers have signed the CLA.

CLAassistant avatar Jun 28 '24 17:06 CLAassistant

@gow Added more detail to the PR description 👍

BenEddy avatar Jul 01 '24 15:07 BenEddy