<@U04S8PLJWMT> why this issue is coming ```[ { ...
# ask-ai
r
@kapa.ai why this issue is coming
Copy code
[ {
  "failureOrigin" : "replication",
  "internalMessage" : "Broken pipe",
  "externalMessage" : "Something went wrong during replication",
  "metadata" : {
    "attemptNumber" : 4,
    "jobId" : 358
  },
  "stacktrace" : "java.io.IOException: Broken pipe\n\tat java.base/sun.nio.ch.UnixFileDispatcherImpl.write0(Native Method)\n\tat java.base/sun.nio.ch.UnixFileDispatcherImpl.write(UnixFileDispatcherImpl.java:65)\n\tat java.base/sun.nio.ch.IOUtil.writeFromNativeBuffer(IOUtil.java:137)\n\tat java.base/sun.nio.ch.IOUtil.write(IOUtil.java:102)\n\tat java.base/sun.nio.ch.IOUtil.write(IOUtil.java:72)\n\tat java.base/sun.nio.ch.FileChannelImpl.write(FileChannelImpl.java:300)\n\tat java.base/sun.nio.ch.ChannelOutputStream.writeFully(ChannelOutputStream.java:68)\n\tat java.base/sun.nio.ch.ChannelOutputStream.write(ChannelOutputStream.java:105)\n\tat java.base/sun.nio.cs.StreamEncoder.writeBytes(StreamEncoder.java:309)\n\tat java.base/sun.nio.cs.StreamEncoder.implWrite(StreamEncoder.java:381)\n\tat java.base/sun.nio.cs.StreamEncoder.implWrite(StreamEncoder.java:357)\n\tat java.base/sun.nio.cs.StreamEncoder.lockedWrite(StreamEncoder.java:158)\n\tat java.base/sun.nio.cs.StreamEncoder.write(StreamEncoder.java:139)\n\tat java.base/java.io.OutputStreamWriter.write(OutputStreamWriter.java:219)\n\tat java.base/java.io.BufferedWriter.implFlushBuffer(BufferedWriter.java:178)\n\tat java.base/java.io.BufferedWriter.flushBuffer(BufferedWriter.java:163)\n\tat java.base/java.io.BufferedWriter.implWrite(BufferedWriter.java:334)\n\tat java.base/java.io.BufferedWriter.write(BufferedWriter.java:313)\n\tat java.base/java.io.Writer.write(Writer.java:278)\n\tat io.airbyte.container.orchestrator.worker.io.AirbyteMessageBufferedWriter.write(AirbyteMessageBufferedWriter.kt:29)\n\tat io.airbyte.container.orchestrator.worker.io.LocalContainerAirbyteDestination.acceptWithNoTimeoutMonitor(LocalContainerAirbyteDestination.kt:132)\n\tat io.airbyte.container.orchestrator.worker.io.LocalContainerAirbyteDestination.accept(LocalContainerAirbyteDestination.kt:91)\n\tat io.airbyte.container.orchestrator.worker.DestinationWriter.run(ReplicationTask.kt:96)\n\tat io.airbyte.container.orchestrator.worker.DestinationWriter$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 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" : 1757276821400
} ]
k
“Broken pipe” in Airbyte replication means the platform tried to write messages to the destination process, but the destination side closed its input (the pipe) or became unavailable, so further writes fail with java.io.IOException: Broken pipe. This commonly occurs when: - The destination connector/pod exits, crashes, or times out while the platform is still writing (e.g., destination process exit or not ready) ([Typesense destination issue](https://github.com/airbytehq/airbyte/issues/50396), [Snowflake/source report](https://github.com/airbytehq/airbyte/issues/56456)). - Kubernetes pod creation/startup or liveness/readiness problems cause the destination container to never reach a healthy state, then Airbyte times out and subsequent writes fail ([replication-orchestrator failed to create pod](https://github.com/airbytehq/airbyte/issues/39512)). - The destination rejects/aborts due to its own error (schema/type handling, storage backend specifics), closing the stream so Airbyte’s writes error with “Broken pipe” ([MySQL destination exit](https://github.com/airbytehq/airbyte/issues/44372), [S3-compatible ETag issues resolved after upgrade](https://github.com/airbytehq/airbyte/issues/36035)). - Large/long-running syncs hit resource limits (memory/CPU/OOM-kill), causing one side to die and the other to see a broken pipe ([replication instability and container errors](https://github.com/airbytehq/airbyte/issues/33693), [long sync failures](https://discuss.airbyte.io/t/4539)). What to check next: - Inspect destination container/pod logs for the same timeframe to see why it exited or closed stdin (destination logs usually reveal the root cause) ([Typesense destination issue](https://github.com/airbytehq/airbyte/issues/50396)). - Confirm pods are created and become Ready; look for timeouts in the job logs if running on Kubernetes ([pod timeout creating write step](https://github.com/airbytehq/airbyte/issues/39512)). - Verify connector versions; upgrade if you’re on a version with known issues (e.g., S3 ETag mismatch fixed after upgrading) ([S3 ETag mismatch fixed by upgrade](https://github.com/airbytehq/airbyte/issues/36035)). - Ensure adequate resources and limits; OOM or resource pressure often manifests as broken pipe after a container is killed ([instability after upgrade shows container IO/heartbeat issues](https://github.com/airbytehq/airbyte/issues/33693), [large transfer failing](https://discuss.airbyte.io/t/4539)). In short, the error is a symptom: the destination side closed the stream; the root cause will be in the destination pod/container lifecycle or its logs during that attempt.