Skip to content

misc(clickhouse): Add retries on to_sql #3855

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

Merged
merged 1 commit into from
Jun 20, 2025
Merged

Conversation

vincent-pochet
Copy link
Collaborator

@vincent-pochet vincent-pochet commented Jun 20, 2025

Context

This PR follows #3733 but we are still seeing some
Errno::ECONNRESET Connection reset by peer - SSL_connect

Description

It refactors a bit the way we handle retries as it appears that some events.to_sql are also hiting the database.

NOTE: this is a quick fix, a future PR will had some logic to rewrite theses queries in pure SQL to reduce this unintended queries that generates some load on the clickhouse instance

@vincent-pochet vincent-pochet merged commit 7274e6d into main Jun 20, 2025
14 checks passed
@vincent-pochet vincent-pochet deleted the misc-clickhouse-retries branch June 20, 2025 10:03
diegocharles pushed a commit that referenced this pull request Jul 11, 2025
## Context

This PR follows #3733 but we are
still seeing some
`Errno::ECONNRESET Connection reset by peer - SSL_connect`

## Description

It refactors a bit the way we handle retries as it appears that some
`events.to_sql` are also hiting the database.

NOTE: this is a quick fix, a future PR will had some logic to rewrite
theses queries in pure SQL to reduce this unintended queries that
generates some load on the clickhouse instance
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.

2 participants