Euan Blackledge
09/10/2025, 7:20 AMStack Trace: io.debezium.DebeziumException: A replica with the same server_uuid/server_id as this replica has connected to the source; the first event '' at 4, the last event read from '/rdsdbdata/log/binlog/mysql-bin-changelog.139850' at 24699116, the last byte read from '/rdsdbdata/log/binlog/mysql-bin-changelog.139850' at 24699116. Error code: 1236; SQLSTATE: HY000.
Then attempt 2 errors with:
ERROR Stage Pipeline Exception: io.airbyte.workload.launcher.pipeline.stages.model.StageError: io.airbyte.workers.exception.KubeClientException: Failed to delete pods for mutex key: 1d8f08ba-89f9-490a-8f26-c86b34c062cd.
message: io.airbyte.workers.exception.KubeClientException: Failed to delete pods for mutex key: 1d8f08ba-89f9-490a-8f26-c86b34c062cd.
stackTrace: [Ljava.lang.StackTraceElement;@1eea35a1
We’ll then either get a success on attempt 3 or 4. What’s the deal?kapa.ai
09/10/2025, 7:20 AMio.debezium.DebeziumException: A replica with the same server_uuid/server_id as this replica has connected to the source; the first event '' at 4, the last event read from '/rdsdbdata/log/binlog/mysql-bin-changelog.139850' at 24699116, the last byte read from '/rdsdbdata/log/binlog/mysql-bin-changelog.139850' at 24699116. Error code: 1236; SQLSTATE: HY000. indicates a MySQL replication conflict. This typically happens when two or more replicas (or CDC clients) are connecting to the same MySQL source using the same server_id or server_uuid. MySQL requires each replica (or CDC connector) to have a unique server_id to avoid conflicts. If two clients use the same server_id, MySQL will forcibly disconnect one of them, resulting in the error you see. The subsequent error on attempt 2: ERROR Stage Pipeline Exception: io.airbyte.workload.launcher.pipeline.stages.model.StageError: io.airbyte.workers.exception.KubeClientException: Failed to delete pods for mutex key: 1d8f08ba-89f9-490a-8f26-c86b34c062cd. suggests a Kubernetes resource cleanup issue, where Airbyte is unable to delete pods associated with a previous sync attempt. This can cause delays or require retries until the resources are properly cleaned up and a new sync can proceed. What’s happening? - The first error is a MySQL-level issue due to duplicate `server_id`/`server_uuid` among CDC clients or replicas. This causes the initial sync attempt to fail. - The second error is an Airbyte platform issue, where the system struggles to clean up Kubernetes pods from the failed attempt, causing further delays. - Eventually, after a few retries (when the conflicting connection is gone and resources are cleaned up), the sync succeeds. What can you do? - Ensure that each Airbyte MySQL CDC connection uses a unique server_id in its configuration. If you have multiple Airbyte connections or other CDC tools connecting to the same MySQL instance, make sure their `server_id`s do not overlap. - If you’re running Airbyte on Kubernetes, investigate why pod deletion is failing (e.g., permissions, stuck pods) and ensure your cluster is healthy. - If you’re using managed MySQL (like AWS RDS), be aware that failovers or maintenance can sometimes cause server_uuid changes or connection drops, which may also trigger these issues. The knowledge sources do not provide a direct solution for the specific error code 1236, but they do confirm that binlog and CDC issues can arise from configuration mismatches, server restarts, or resource contention, and that Airbyte retries can eventually succeed once the underlying conflict is resolved. For more on CDC requirements and troubleshooting, see the [MySQL source troubleshooting guide](https://docs.airbyte.com/integrations/sources/mysql/mysql-troubleshooting).