Shailendra Jaiswar
08/14/2025, 4:31 PMreplication-orchestrator INFO Records read: 218165000 (219 GB)
source WARN main c.z.h.p.ProxyConnection(checkException):178 HikariPool-1 - Connection org.postgresql.jdbc.PgConnection@26d820eb marked as broken because of SQLSTATE(08006), ErrorCode(0) org.postgresql.util.PSQLException: An I/O error occurred while sending to the backend.
at org.postgresql.core.v3.QueryExecutorImpl.fetch(QueryExecutorImpl.java:2623) ~[postgresql-42.7.4.jar:42.7.4]
at org.postgresql.jdbc.PgResultSet.next(PgResultSet.java:2309) ~[postgresql-42.7.4.jar:42.7.4]
at com.zaxxer.hikari.pool.HikariProxyResultSet.next(HikariProxyResultSet.java) [HikariCP-5.1.0.jar:?]kapa.ai
08/14/2025, 4:31 PMHikariPool-1 - Connection org.postgresql.jdbc.PgConnection@26d820eb marked as broken because of SQLSTATE(08006), ErrorCode(0) org.postgresql.util.PSQLException: An I/O error occurred while sending to the backend. is a known issue when syncing large tables from PostgreSQL sources in Airbyte. This typically indicates that the connection to the PostgreSQL database was lost during a long-running sync, often due to network interruptions, database timeouts, or resource exhaustion on either the source or the Airbyte worker. From the knowledge sources, several users have reported similar issues when syncing large datasets (hundreds of GBs or more). Here are some relevant findings and suggestions: 1. Database Timeouts and Connection Parameters - The error can be related to database or JDBC connection timeouts. Adjusting JDBC parameters such as socketTimeout and statement_timeout has been suggested, but in some Airbyte versions, these values may be hardcoded and not easily overridden by user-supplied parameters. There is an open issue to make these timeouts user-configurable in Airbyte ([source](https://discuss.airbyte.io/t/1715)). - Increasing the database's own timeout settings (e.g., tcp_keepalives_idle, tcp_keepalives_interval, tcp_keepalives_count in PostgreSQL) may help prevent the connection from being dropped during long syncs ([source](https://discuss.airbyte.io/t/1800)). 2. Resource Exhaustion - Large syncs can exhaust memory or network resources, either on the Airbyte worker or the database server. Monitoring resource usage and scaling up the resources (CPU, RAM, network bandwidth) on both ends can help ([source](https://discuss.airbyte.io/t/3694), [source](https://discuss.airbyte.io/t/3366)). - For very large tables, consider splitting the sync into smaller chunks (e.g., syncing by date ranges or using views) to reduce the load on the connection ([source](https://discuss.airbyte.io/t/3694)). 3. Connection Drops on Replicas - If you are reading from a replica, changes in the replica during the sync can cause the connection to drop. Even with promoted replicas, this can still be an issue if the underlying infrastructure is unstable ([source](https://discuss.airbyte.io/t/1715)). 4. Airbyte and Connector Version Limitations - Some users have reported that the Postgres connector has hardcoded timeout values, and large syncs may hit these limits. There are ongoing efforts to make these settings more flexible ([source](https://discuss.airbyte.io/t/1715)). Summary of Recommendations: - Increase database and JDBC timeout settings if possible. - Monitor and scale up resources on both Airbyte and PostgreSQL. - Consider breaking the sync into smaller jobs if feasible. - Ensure network stability between Airbyte and PostgreSQL. - Stay updated with Airbyte releases, as improvements to large data syncs and timeout configurability are ongoing. If you have already tried increasing resources and adjusting timeouts but still encounter the same error at roughly the same data volume, it may be a limitation of the current Airbyte/Postgres connector or infrastructure. In that case, you may want to follow or contribute to the related Airbyte GitHub issues for further updates ([source](https://discuss.airbyte.io/t/1715), [source](https://discuss.airbyte.io/t/3694), [source](https://discuss.airbyte.io/t/3366)).