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

[cassandra output] Mitigate "gocql: no hosts available in the pool" cannot recover without restart #1736

Closed
wants to merge 1 commit into from

Conversation

mfamador
Copy link
Contributor

@mfamador mfamador commented Feb 9, 2023

To mitigate an issue (apache/cassandra-gocql-driver#915 and apache/cassandra-gocql-driver#831) with gocql when Cassandra's IP address resolves differently or on some particular network glitches, the session does not recover and there's the need to kill the container to be able to write again, an Observer was introduced to monitor and recreate the session when needed.

We're hitting this issue for a while now, and since we're using a custom benthos image with this "band-aid" it never happened again, it's being able to recover by itself.

@mfamador mfamador marked this pull request as draft February 9, 2023 15:10
@mfamador
Copy link
Contributor Author

mfamador commented Feb 9, 2023

Converted it to draft, there's still a discussion going on in what would be the best fix, maybe on gocql.

@mfamador
Copy link
Contributor Author

This "band-aid" is the only thing that's been avoiding the issue to happen so far. I'll keep an eye on gocqldiscussions but both open PRs didn't solve it.

@mfamador mfamador marked this pull request as ready for review February 13, 2023 11:08
@mfamador mfamador marked this pull request as draft February 19, 2023 19:08
@mfamador
Copy link
Contributor Author

After a week it's getting stuck again, not in the same place, though.

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.

1 participant