<@U04S8PLJWMT> What does the idle number mean in t...
# ask-ai
a
@kapa.ai What does the idle number mean in this Airbyte log?
Copy code
2025-07-31 10:14:35 replication-orchestrator INFO Failures: [ {
  "failureOrigin" : "destination",
  "failureType" : "system_error",
  "internalMessage" : "An I/O ? occurred while sending to the backend.",
  "externalMessage" : "HikariPool-1 - Connection is not available, request timed out after 60002ms (total=0, active=0, idle=0, waiting=0)",
  "metadata" : {
    "attemptNumber" : 2,
    "jobId" : 44282318,
    "from_trace_message" : true,
    "connector_command" : "write"
  },
  "timestamp" : 1753928074923
}, {
  "failureOrigin" : "destination",
  "internalMessage" : "Destination process exited with non-zero exit code 1",
  "externalMessage" : "Something went wrong within the destination connector",
  "metadata" : {
    "attemptNumber" : 2,
    "jobId" : 44282318,
    "connector_command" : "write"
  },
  "stacktrace" : "io.airbyte.workers.internal.exception.DestinationException: Destination process exited with non-zero exit code 1\n\tat io.airbyte.container.orchestrator.worker.DestinationReader.run(ReplicationTask.kt:54)\n\tat io.airbyte.container.orchestrator.worker.DestinationReader$run$1.invokeSuspend(ReplicationTask.kt)\n\tat kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:33)\n\tat kotlinx.coroutines.DispatchedTask.run(DispatchedTask.kt:100)\n\tat io.micrometer.core.instrument.composite.CompositeTimer.record(CompositeTimer.java:141)\n\tat io.micrometer.core.instrument.Timer.lambda$wrap$2(Timer.java:199)\n\tat datadog.trace.bootstrap.instrumentation.java.concurrent.Wrapper.run(Wrapper.java:47)\n\tat java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1144)\n\tat java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:642)\n\tat java.base/java.lang.Thread.run(Thread.java:1583)\n",
  "timestamp" : 1753928075205
} ]
k
In the Airbyte log message you provided, the "idle" number refers to the number of idle (i.e., available and unused) connections in the HikariCP connection pool at the time of the error. HikariCP is the connection pool library used by Airbyte for managing database connections. In your log:
Copy code
HikariPool-1 - Connection is not available, request timed out after 60002ms (total=0, active=0, idle=0, waiting=0)
- total=0: Total number of connections in the pool. - active=0: Number of connections currently in use. - idle=0: Number of connections that are available for use (idle). - waiting=0: Number of threads waiting for a connection. When "idle=0", it means there are no available connections in the pool that can be used at that moment. This is a common indicator of connection exhaustion or an inability to establish new connections, often due to network issues, database unavailability, or the destination service not being ready (e.g., still starting up or sleeping) [[Clickhouse cloud check fails](https://github.com/airbytehq/airbyte/issues/29005)]. This pattern is seen in multiple Airbyte issues, where the connection pool times out waiting for an available connection, often because the destination service is not ready or reachable [[Databricks cluster startup timeout](https://github.com/airbytehq/airbyte/issues/29050); [Redshift connection timeout](https://github.com/airbytehq/airbyte/issues/26821)]. If you see "idle=0" along with a timeout, it usually means Airbyte could not obtain a connection to the destination within the configured timeout period.
a
@kapa.ai But it seems HikariCP connection is idled so the connection is cut out by database
k
A message from kapa.ai
You are correct that in some cases, database connections can be closed by the database server if they remain idle for too long. However, in the specific Airbyte log you provided, the message:
Copy code
HikariPool-1 - Connection is not available, request timed out after 60002ms (total=0, active=0, idle=0, waiting=0)
indicates that there are **no connections available at all**—not even idle ones. This means HikariCP was unable to obtain a connection from the pool, either because all connections were in use, or because it could not establish any new connections to the database (possibly due to network issues, authentication problems, or the database being unavailable or not ready) [[Clickhouse cloud check fails](https://github.com/airbytehq/airbyte/issues/29005); [Databricks cluster startup timeout](https://github.com/airbytehq/airbyte/issues/29050); [Redshift connection timeout](https://github.com/airbytehq/airbyte/issues/26821)]. There are cases in Airbyte where connections are closed by the database due to timeouts or idle settings (for example, "idle-in-transaction timeout" in Postgres), which can cause sync failures [[Source Postgres: idle-transaction-timeout](https://github.com/airbytehq/airbyte/issues/27715)]. But in your log, the pool is empty, so the error is not about an idle connection being closed, but rather about the inability to get any connection at all. If you are experiencing frequent idle connection closures, you may want to check your database's timeout settings and HikariCP's configuration, but the log you shared points to a different root cause: connection exhaustion or inability to connect, not idle timeout.
a
@kapa.ai Can you please explain what these mean?
Copy code
total=0, active=0, idle=0, waiting=0
k
A message from kapa.ai
New message text here