Skip to content

Conversation

@joao-r-reis
Copy link
Contributor

@joao-r-reis joao-r-reis commented Jul 18, 2025

As part of CASSGO-12 (#1768) which was supposedly just removing deprecated code, the driver now closes connections when a timeout occurs which was unintended. This patch fixes this issue.

patch by João Reis; reviewed by TBD for CASSGO-87

Comment on lines +1988 to +2006
// Deprecated: TimeoutLimit was removed so this is never returned by the driver now
ErrTooManyTimeouts = errors.New("gocql: too many query timeouts on the connection")

// Deprecated: Never returned by the driver
ErrQueryArgLength = errors.New("gocql: query argument length mismatch")
Copy link
Contributor

Choose a reason for hiding this comment

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

Good decision to leave this so not to break existing code bases if they rely on these errors 👍

As part of CASSGO-12 which was supposedly just removing deprecated code, the driver now closes connections when a timeout occurs which was unintended. This patch fixes this issue.

patch by João Reis; reviewed by Bohdan Siryk and Lukasz Antoniak for CASSGO-87
@joao-r-reis joao-r-reis merged commit 540cb3d into apache:trunk Sep 25, 2025
102 of 144 checks passed
@joao-r-reis joao-r-reis deleted the cassgo-87 branch September 25, 2025 16:55
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.

3 participants