Emanuel Olteanu
11/04/2025, 1:23 PMkapa.ai
11/04/2025, 1:23 PM8.4, 8.0, 5.7, or 5.6. ## CDC (Change Data Capture) Setup If you plan to use CDC replication from your MySQL 8.0 replica, you'll need to ensure proper permissions and configuration: ### Required Permissions The user account needs specific permissions. As mentioned in the [MySQL CDC tutorial](https://airbyte.com/tutorials/mysql-change-data-capture-cdc#step-2): GRANT SELECT, RELOAD, SHOW DATABASES, REPLICATION SLAVE, REPLICATION CLIENT ON *.* TO 'airbyte'@'%'; ### Configuration Requirements For CDC to work properly: - Binary logging must be enabled on your replica - The table must have at least one primary key for incremental sync (tables without primary keys can only use Full Refresh mode) ## Potential Issues 1. Timeout Settings: If you experience EventDataDeserializationException errors, you may need to extend timeout values. For MySQL 8.0.26 and later, run: SET GLOBAL replica_net_timeout = 120; SET GLOBAL thread_pool_idle_timeout = 120; As noted in the [Troubleshooting documentation](https://docs.airbyte.com/integrations/sources/mysql/mysql-troubleshooting#eventdatadeserializationexception-errors-during-initial-snapshot). 2. AWS Aurora MySQL: If you're using AWS Aurora MySQL 8.0, there may be some compatibility considerations, though the knowledge sources indicate that [Airbyte connectors are compatible with MySQL database, but using with Aurora can't be 100% compatible](https://discuss.airbyte.io/t/1022). Is there a specific aspect of setting up your MySQL 8.0 replica connection that you'd like help with?Emanuel Olteanu
11/04/2025, 1:40 PMkapa.ai
11/04/2025, 1:40 PMEmanuel Olteanu
11/04/2025, 1:40 PMkapa.ai
11/04/2025, 1:40 PMHikariPool-1 - Connection is not available, request timed out after 60001ms, this is typically caused by: ### Network/Firewall Issues - IP Whitelisting: Ensure your Airbyte instance's public IP is whitelisted on your MySQL server. As mentioned in [this forum post](https://discuss.airbyte.io/t/1839), incorrect IP whitelisting was the root cause of a similar timeout error. - VPC/Security Groups: If using AWS RDS, check your VPC settings. The [Troubleshooting documentation](https://docs.airbyte.com/integrations/sources/mysql/mysql-troubleshooting#troubleshooting) recommends going through [AWS's troubleshooting checklist](https://aws.amazon.com/premiumsupport/knowledge-center/rds-cannot-connect/) to ensure correct permissions/settings. ### TLS/SSL Configuration For Amazon RDS MySQL or MariaDB, you may need to add enabledTLSProtocols=TLSv1.2 in the JDBC parameters, as noted in the [Troubleshooting documentation](https://docs.airbyte.com/integrations/sources/mysql/mysql-troubleshooting#troubleshooting). ## Next Steps Please share: - The complete error message from your logs - Your Airbyte version - MySQL source connector version - Whether you can connect to the MySQL replica from other tools (like DBeaver or MySQL Workbench) from the same machine running Airbyte This will help me provide more targeted assistance.Emanuel Olteanu
11/04/2025, 1:41 PMkapa.ai
11/04/2025, 1:41 PMkapa.ai
11/04/2025, 1:42 PMio.airbyte.cdk.ConfigErrorException: Incumbent CDC state is invalid, reason: java.lang.NullPointerException: Cannot invoke "io.debezium.connector.mysql.gtid.MySqlGtidSet$UUIDSet.getUUID()" because "other" is null This indicates that the CDC state stored by Airbyte has become corrupted or invalid, specifically related to MySQL GTID (Global Transaction Identifier) information. ## Recommended Solutions ### 1. Reset the Connection The most straightforward solution is to reset your connection. This will: - Clear the corrupted CDC state - Perform a fresh full refresh of your data - Re-establish CDC tracking from the current point To reset: 1. Go to your connection in the Airbyte UI 2. Navigate to the "Settings" tab 3. Click "Reset Data" or "Clear Data" 4. Run a new sync ### 2. Verify GTID Configuration Since the error is related to GTIDs, ensure your MySQL replica has GTIDs properly configured. According to the [Troubleshooting documentation](https://docs.airbyte.com/integrations/sources/mysql/mysql-troubleshooting#advanced-enable-gtids): Check that these settings are enabled on your MySQL replica: sql gtid_mode=ON enforce_gtid_consistency=ON ### 3. Check for Known Issues This type of CDC state corruption can occur after: - MySQL server restarts - Binary log rotation or purging - Network interruptions during CDC replication - Upgrading connector versions ## Important Considerations - Data Loss: Resetting will cause a full refresh, which may take time depending on your data volume - Downtime: Plan for the reset during a maintenance window if possible - Backup: If you have critical state information, consider backing up your Airbyte database before resetting If resetting doesn't resolve the issue, please share: - Your MySQL source connector version - Your Airbyte platform version - Whether this is a fresh setup or if it was working previously This will help identify if there are version-specific issues or configuration problems.Emanuel Olteanu
11/07/2025, 3:45 PM[config_error] Incumbent CDC state is invalid, reason: java.lang.NullPointerException: Cannot invoke "io.debezium.connector.mysql.gtid.MySqlGtidSet$UUIDSet.getUUID()" because "other" is nullkapa.ai
11/07/2025, 3:45 PMkapa.ai
11/07/2025, 3:45 PM[config_error] Incumbent CDC state is invalid, reason: java.lang.NullPointerException: Cannot invoke "io.debezium.connector.mysql.gtid.MySqlGtidSet$UUIDSet.getUUID()" because "other" is null indicates that the CDC (Change Data Capture) state maintained by Airbyte for your MySQL source has become invalid or corrupted, specifically related to GTID (Global Transaction Identifier) handling. What does this mean? - This is a known issue where the CDC state can become corrupted, often after certain events such as MySQL server restarts, binlog purges, or network interruptions. - The error is thrown by the underlying Debezium library when it tries to process a GTID set that is unexpectedly null. What can you do? - The recommended action is to reset your Airbyte connection. This will clear the invalid CDC state and allow Airbyte to perform a new full refresh and re-establish CDC tracking from the current state of your MySQL replica. - To reset, go to your connection in the Airbyte UI, find the "Reset Data" or "Clear Data" option, and run a new sync. Additional steps: - Ensure that GTID is enabled and properly configured on your MySQL replica: sql SET GLOBAL gtid_mode = ON; SET GLOBAL enforce_gtid_consistency = ON; [Enable GTIDs](https://docs.airbyte.com/integrations/sources/mysql/mysql-troubleshooting#advanced-enable-gtids) - If this issue recurs frequently, review your MySQL binlog retention and GTID settings to ensure they are stable and not being reset or purged unexpectedly. Summary: This is a state corruption issue with CDC and GTID. Resetting the connection is the primary solution documented in the knowledge sources. If the problem persists after a reset, further investigation into your MySQL GTID and binlog configuration is recommended. If you need more detailed troubleshooting, please provide your Airbyte and connector versions, and any recent changes to your MySQL server configuration. [Enable GTIDs](https://docs.airbyte.com/integrations/sources/mysql/mysql-troubleshooting#advanced-enable-gtids)Emanuel Olteanu
11/07/2025, 3:48 PMkapa.ai
11/07/2025, 3:48 PMkapa.ai
11/07/2025, 3:48 PMgtid_mode = ON - enforce_gtid_consistency = ON - binlog_gtid_simple_recovery = ON These are the recommended settings for GTID-based replication and are in line with Airbyte's [advanced troubleshooting guidance](https://docs.airbyte.com/integrations/sources/mysql/mysql-troubleshooting#advanced-enable-gtids). However, despite these correct settings, you are still encountering the error: [config_error] Incumbent CDC state is invalid, reason: java.lang.NullPointerException: Cannot invoke "io.debezium.connector.mysql.gtid.MySqlGtidSet$UUIDSet.getUUID()" because "other" is null Based on the knowledge sources, this error is related to a corrupted or invalid CDC state, not the GTID configuration itself. The recommended solution is to reset your Airbyte connection to clear the invalid CDC state and allow a fresh sync to re-establish CDC tracking. This is the primary documented approach for resolving this type of error. If the issue persists after a reset, it may be necessary to investigate further for potential bugs or version-specific issues, but the knowledge sources do not provide additional troubleshooting steps beyond the reset and GTID configuration verification. If you have already reset the connection and the problem continues, the knowledge sources do not contain enough information to provide a more specific solution. In that case, you may need to reach out to Airbyte support or monitor for connector updates that address this CDC state handling issue. [Advanced: Enable GTIDs](https://docs.airbyte.com/integrations/sources/mysql/mysql-troubleshooting#advanced-enable-gtids)Emanuel Olteanu
11/10/2025, 12:20 PMkapa.ai
11/10/2025, 12:20 PMkapa.ai
11/10/2025, 12:20 PMIncumbent CDC state is invalid, reason: java.lang.NullPointerException: Cannot invoke "io.debezium.connector.mysql.gtid.MySqlGtidSet$UUIDSet.getUUID()" because "other" is null This is a CDC state corruption issue that occurs when Airbyte's stored CDC state becomes invalid, specifically related to GTID handling in the underlying Debezium library. ## Root Cause The error indicates that the CDC state stored by Airbyte contains a corrupted or null GTID set reference. This can happen due to: - MySQL server restarts - Binary log rotation or purging - Network interruptions during CDC replication - State management issues between sync attempts ## Solution Since you've already confirmed your GTID settings are correct (gtid_mode = ON, enforce_gtid_consistency = ON, binlog_gtid_simple_recovery = ON), the primary solution is to reset your connection: 1. Navigate to your connection in the Airbyte UI 2. Go to the "Settings" tab 3. Click "Reset Data" or "Clear Data" 4. Run a new sync This will: - Clear the corrupted CDC state - Perform a fresh full refresh - Re-establish CDC tracking from the current binlog position ## Additional Considerations Based on similar issues in the knowledge sources, you may also want to: 1. Check binlog retention: Ensure your binlog retention is sufficient. According to the [Troubleshooting documentation](https://docs.airbyte.com/integrations/sources/mysql/mysql-troubleshooting#troubleshooting), set binlog_expire_logs_seconds to at least 7 days to prevent binlogs from being removed before Airbyte can process them. 2. Verify connector version: Some users have reported that [upgrading to newer MySQL source connector versions](https://github.com/airbytehq/airbyte/issues/48717) (like 3.9.0-rc.21 or later) resolved similar CDC state issues. If the problem persists after resetting, please share your MySQL source connector version and Airbyte platform version for more specific guidance.Emanuel Olteanu
11/12/2025, 7:02 PM[config_error] Incumbent CDC state is invalid, reason: java.lang.NullPointerException: Cannot invoke "io.debezium.connector.mysql.gtid.MySqlGtidSet$UUIDSet.getUUID()" because "other" is nullkapa.ai
11/12/2025, 7:02 PMkapa.ai
11/12/2025, 7:02 PM[config_error] Incumbent CDC state is invalid, reason: java.lang.NullPointerException: Cannot invoke "io.debezium.connector.mysql.gtid.MySqlGtidSet$UUIDSet.getUUID()" because "other" is null This is a persistent CDC state corruption issue that's occurring even after your GTID configuration is correct. Given that you're experiencing this repeatedly, here are additional steps to consider: ## Immediate Action Reset the connection as previously recommended, but this time also consider: 1. Check your MySQL source connector version: According to a [GitHub issue](https://github.com/airbytehq/airbyte/issues/48717), users experiencing similar CDC state issues found that upgrading to MySQL source connector version 3.9.0-rc.21 or later resolved the problem. The issue specifically mentions: > "we updated source-mysql to [3.9.0-rc.21], that's great, it worked correctly." 2. Verify binlog retention: Even with correct GTID settings, if binlogs are being purged too quickly, CDC state can become invalid. According to the [Troubleshooting documentation](https://docs.airbyte.com/integrations/sources/mysql/mysql-troubleshooting#troubleshooting): - Set binlog_expire_logs_seconds to at least 7 days (604800 seconds) - For AWS RDS MySQL, use: call mysql.rds_set_configuration('binlog retention hours', 168); (7 days) ## Pattern Analysis Looking at your sync history: - First sync: Successful (3.1M records, 1GB, 6m 54s) - Second sync: Failed (31 seconds, CDC state error) - Third sync: Failed (1m 59s, same CDC state error) This pattern suggests the CDC state is being corrupted between successful syncs, possibly due to: - Binlog position changes on the replica - GTID set inconsistencies - State serialization issues in the connector version you're using ## Next Steps 1. Upgrade your MySQL source connector to the latest version (3.9.0 or newer) 2. Increase binlog retention on your MySQL replica 3. Reset the connection after making these changes 4. Monitor the next few syncs to see if the issue recurs If the problem persists after these steps, the knowledge sources do not contain enough information to provide additional troubleshooting guidance, and you may need to contact Airbyte support with your specific connector versions and detailed logs.Emanuel Olteanu
11/12/2025, 7:04 PMkapa.ai
11/12/2025, 7:04 PMkapa.ai
11/12/2025, 7:04 PMlog_bin_use_v1_row_events setting: > "We checked the configuration of the databases and saw that some of them had a configuration called 'log_bin_use_v1_row_events' = ON, the ones that weren't working, and = 'OFF' on the ones that were." Check if this setting is enabled on your replica: sql SHOW VARIABLES LIKE 'log_bin_use_v1_row_events'; If it's ON, try setting it to OFF. ## Recommended Next Steps 1. Check log_bin_use_v1_row_events on your MySQL replica and set it to OFF if it's currently ON 2. Try a different connector version: If you're on the absolute latest, consider trying version 3.9.4 or 3.11.0+ specifically 3. Verify replica lag: Ensure your replica is not significantly lagging behind the primary, as this could cause GTID inconsistencies Unfortunately, the knowledge sources do not contain enough information to provide a definitive solution for your specific scenario (latest connector, 10-day retention, 3 resets). You may need to: - Open a GitHub issue with detailed logs and your specific configuration - Contact Airbyte support directly - Consider temporarily switching to Standard (non-CDC) replication as a workaround while the issue is investigatedEmanuel Olteanu
12/30/2025, 1:05 PMkapa.ai
12/30/2025, 1:05 PMkapa.ai
12/30/2025, 1:05 PMio.airbyte.cdk.TransientErrorException: Input was fully read, but some streams did not receive a terminal stream status message generally indicates that while the destination finished reading all data sent by the platform, it never received the required signal that the stream was successfully completed [[HubSpot Issue](https://github.com/airbytehq/airbyte/issues/62467); [ClickHouse Issue](https://github.com/airbytehq/airbyte/issues/61419)]. Based on the provided documents, here is what this error typically signifies and potential areas to investigate: * Source or Platform Failure: This error often occurs when the source connector crashes or encounters an unhandled exception before it can emit a final status message for every stream. For example, in MySQL sources, this has been seen alongside ClassCastException or binlog deserialization errors [[MySQL ClassCast Issue](https://github.com/airbytehq/airbyte/issues/63776); [MySQL Binlog Issue](https://github.com/airbytehq/airbyte/issues/50856)]. * Large Account/Volume Timeouts: In some cases, such as with HubSpot, this error appeared during "mid-sync auth failures" on accounts with large amounts of data, where the source failed to maintain its session or connection long enough to complete all streams [[HubSpot Issue](https://github.com/airbytehq/airbyte/issues/62467)]. * CDC Cleanup Issues: For database sources using CDC, this error has been observed following CDC cleanup processes or when the source fails to find the required change logs [[MS SQL CDC Issue](https://github.com/airbytehq/airbyte/issues/68150)]. * Memory or Catalog Size: Some failures with large numbers of tables in MySQL are attributed to the schema discovery process exceeding catalog size limits [[MySQL Forum Post](https://discuss.airbyte.io/t/2656)]. Suggested Troubleshooting: 1. Check Source Logs: Look earlier in the logs for a source ERROR or a specific Java exception (like a NullPointerException or ClassCastException) that occurred before the destination threw the TransientErrorException. 2. Verify Memory/Resources: Ensure the Airbyte instance and the connector pods have sufficient memory, especially if you are syncing large tables like activity_log_m. 3. Split the Sync: If you are syncing many tables at once, try splitting them into separate connections to reduce the load on the source's discovery and state management [[MySQL Forum Post](https://discuss.airbyte.io/t/2656)].Emanuel Olteanu
12/30/2025, 1:10 PMkapa.ai
12/30/2025, 1:10 PMkapa.ai
12/30/2025, 1:10 PMorder_transaction at 15GB and order_all at 6.8GB) presents several specific challenges: * Catalog Size Limits: When syncing a large number of schemas and tables, the Airbyte discovery process can exceed catalog size limits. For high-volume syncs, it is recommended to split the tables into several different syncs (separate connections) rather than syncing all large tables in a single job [[Forum Post](https://discuss.airbyte.io/t/2656)]. * Timeout Failures: Large tables are prone to connection timeouts during the initial snapshot. If you encounter errors like java.sql.SQLException: Can not read response from server, it may be due to the database connection timing out during long-running reads [[Forum Post](https://discuss.airbyte.io/t/1200)]. * CDC Checkpointing: For tables of this size using CDC, you should ensure that max_execution_time in MySQL is set to a value higher than the Checkpoint Target Time Interval in your Source Configuration (which defaults to 300 seconds) to prevent the sync from being aborted during long queries [[Troubleshooting Documentation](https://docs.airbyte.com/integrations/sources/mysql/mysql-troubleshooting#troubleshooting)]. * Resource Exhaustion: Large syncs can trigger "Source process exit with code 137," which typically indicates the system or Docker killed the process because it ran out of memory [[Forum Post](https://discuss.airbyte.io/t/1200)]. Given that your sync is failing after reading significant data (previously 1GB) with a "CDC state is invalid" or "terminal stream status" error, the most effective strategy for these specific tables is to isolate the largest ones (like order_transaction) into their own dedicated Airbyte connections [[Forum Post](https://discuss.airbyte.io/t/2656)].Emanuel Olteanu
12/30/2025, 1:11 PMkapa.ai
12/30/2025, 1:11 PMkapa.ai
12/30/2025, 1:11 PMmax_execution_time is a MySQL server-side setting, not an Airbyte server setting. According to the Airbyte documentation, this error occurs because MySQL terminates a query that takes too long to return results. To resolve this, you should adjust settings in two places: 1. On your MySQL Server: Set the max_execution_time (in milliseconds) to a value higher than Airbyte's checkpoint interval. For example, if you want to allow queries to run for at least 5 minutes, you would set it to 300000 ms [[Troubleshooting MySQL Sources](https://docs.airbyte.com/integrations/sources/mysql/mysql-troubleshooting#troubleshooting)]. 2. In the Airbyte Source Configuration: * Go to the Source Configuration page for your MySQL source. * Locate the Optional Fields. * Find the Checkpoint Target Time Interval. * The default is 300 seconds (5 minutes). Ensure your MySQL max_execution_time is set higher than this interval to prevent the sync from being aborted [[Troubleshooting MySQL Sources](https://docs.airbyte.com/integrations/sources/mysql/mysql-troubleshooting#troubleshooting)]. If you are using a managed service like AWS RDS or Google Cloud SQL, you would typically change this in your database's Parameter Group [[Failing to ingest a "big" MySQL table](https://discuss.airbyte.io/t/1200)].Emanuel Olteanu
12/30/2025, 1:13 PMkapa.ai
12/30/2025, 1:14 PMkapa.ai
12/30/2025, 1:14 PMmax_execution_time set to 0 means there is no timeout limit for SELECT statements [[Troubleshooting MySQL Sources](https://docs.airbyte.com/integrations/sources/mysql/mysql-troubleshooting#troubleshooting)]. While this theoretically prevents the specific "MySQL Query Timeout" error where the server kills the query, the knowledge sources suggest that for tables of your size (60GB+ total), other timeout and state issues are likely causing your current NullPointerException and CDC state invalid errors: * Network and Socket Timeouts: Even if MySQL doesn't kill the query, the connection can be lost if idle. For MySQL 8.0, the documentation recommends increasing these global variables to prevent EOFException or SocketException during large snapshots: sql SET GLOBAL replica_net_timeout = 120; SET GLOBAL thread_pool_idle_timeout = 120; [[Troubleshooting MySQL Sources](https://docs.airbyte.com/integrations/sources/mysql/mysql-troubleshooting#eventdatadeserializationexception-errors-during-initial-snapshot)] * CDC Initial Wait Time: Since you have many large tables, the connector might need more time to process the initial change logs. You can increase the Initial Waiting Time in the Airbyte Source settings from the default 300 seconds up to 1200 seconds [[Troubleshooting MySQL Sources](https://docs.airbyte.com/integrations/sources/mysql/mysql-troubleshooting#advanced-setting-up-initial-cdc-waiting-time); [CDC best practices](https://docs.airbyte.com/platform/understanding-airbyte/cdc-best-practices)]. * Memory Pressure: Your table list shows multiple tables over 5GB. If the sync is reading these and then crashing with the "CDC state is invalid" error, the source process might be hitting memory limits (Exit Code 137). The knowledge sources strongly suggest splitting these large tables into separate connections to prevent a single job from trying to manage too much state at once [[Failing to ingest a "big" MySQL table](https://discuss.airbyte.io/t/1200); [MySQL Forum Post](https://discuss.airbyte.io/t/2656)]. Since max_execution_time is already 0, your server isn't intentionally killing the queries; the failure is likely due to the corrupted state which requires a Reset of the connection after you have verified the replica_net_timeout settings [[Troubleshooting MySQL Sources](https://docs.airbyte.com/integrations/sources/mysql/mysql-troubleshooting#eventdatadeserializationexception-errors-during-initial-snapshot)].Emanuel Olteanu
12/30/2025, 1:14 PMkapa.ai
12/30/2025, 1:14 PMkapa.ai
12/30/2025, 1:14 PMgtid_mode = ON * enforce_gtid_consistency = ON * binlog_format = ROW (Required for CDC) * binlog_row_image = FULL (Required for CDC) * binlog_gtid_simple_recovery = ON [[Troubleshooting MySQL Sources](https://docs.airbyte.com/integrations/sources/mysql/mysql-troubleshooting#advanced-enable-gtids)]. ### 2. Network and Timeout Values For large tables (like your 15GB order_transaction table), Airbyte recommends increasing timeout values to prevent SocketException or EOFException during the initial snapshot: * For MySQL 8.0.26 and later: sql SET GLOBAL replica_net_timeout = 120; SET GLOBAL thread_pool_idle_timeout = 120; * For MySQL versions before 8.0.26: sql SET GLOBAL slave_net_timeout = 120; SET GLOBAL thread_pool_idle_timeout = 120; [[Troubleshooting MySQL Sources](https://docs.airbyte.com/integrations/sources/mysql/mysql-troubleshooting#eventdatadeserializationexception-errors-during-initial-snapshot)]. ### 3. Binary Log Retention Since you have already set 10 days of retention, ensure this is applied correctly. For Amazon RDS MySQL, use the specific stored procedure: sql call mysql.rds_set_configuration('binlog retention hours', 240); -- 10 days Standard MySQL installations use binlog_expire_logs_seconds [[Troubleshooting MySQL Sources](https://docs.airbyte.com/integrations/sources/mysql/mysql-troubleshooting#troubleshooting)]. ### 4. Row Event Versioning If the NullPointerException persists, check the following variable mentioned in community troubleshooting for MySQL CDC: sql SHOW VARIABLES LIKE 'log_bin_use_v1_row_events'; If this is ON, it changes how MySQL writes the binlog and has been identified as a potential cause for CDC sync failures; setting it to OFF may resolve the issue [[Source MySQL Issue](https://github.com/airbytehq/airbyte/issues/51607)]. ### 5. Connection Permissions Ensure the Airbyte user has the necessary replication privileges: sql GRANT SELECT, RELOAD, SHOW DATABASES, REPLICATION SLAVE, REPLICATION CLIENT ON *.* TO 'airbyte'@'%'; [[Troubleshooting MySQL Sources](https://docs.airbyte.com/integrations/sources/mysql/mysql-troubleshooting#cdc-requirements)].Emanuel Olteanu
12/30/2025, 1:17 PMkapa.ai
12/30/2025, 1:17 PMkapa.ai
12/30/2025, 1:17 PMlog_bin_use_v1_row_events is already set to OFF, you have eliminated one of the known configuration issues that causes CDC sync failures in MySQL [[MySQL CDC Issue](https://github.com/airbytehq/airbyte/issues/51607)]. However, because you are still receiving the NullPointerException related to GTID sets and the "Incumbent CDC state is invalid" error, the knowledge sources indicate that the following issues are likely the cause: * Corrupted State Storage: Even with correct server settings, once that specific NullPointerException (at io.debezium.connector.mysql.gtid.MySqlGtidSet) is triggered, the state stored within Airbyte's internal database is likely corrupted. The only documented resolution for this specific error in the knowledge sources is to Reset the connection in the Airbyte UI to clear the invalid state and start a fresh sync [[MySQL CDC Issue](https://github.com/airbytehq/airbyte/issues/51607); [Troubleshooting MySQL Sources](https://docs.airbyte.com/integrations/sources/mysql/mysql-troubleshooting#troubleshooting)]. * Replica-Specific Timeouts: For your MySQL 8.0 replica, you should ensure replica_net_timeout is increased to at least 120 to handle the large table volumes you listed (such as your 15GB order_transaction table). Without this, the connection may drop during the snapshot, leading to the invalid state you are seeing [[Troubleshooting MySQL Sources](https://docs.airbyte.com/integrations/sources/mysql/mysql-troubleshooting#eventdatadeserializationexception-errors-during-initial-snapshot)]. * GTID Consistency: Verify that the replica is perfectly in sync with the primary regarding GTIDs. If the replica skips transactions or has a different GTID set than what Airbyte expect from the previous sync, the MySqlGtidSet error can occur. If you have already reset the connection multiple times and verified replica_net_timeout, the knowledge sources do not provide further configuration changes. In this scenario, it is highly recommended to split your 20+ large tables into smaller, separate connections to reduce the complexity of the CDC state that the connector must manage simultaneously [[Failing to ingest a "big" MySQL table](https://discuss.airbyte.io/t/1200); [MySQL Forum Post](https://discuss.airbyte.io/t/2656)].Emanuel Olteanu
12/30/2025, 2:45 PMkapa.ai
12/30/2025, 2:45 PMkapa.ai
12/30/2025, 2:46 PMERROR Error closing resource LocalContainerAirbyteSource; recording failure but continuing. Based on the logs provided in the knowledge sources, this error typically appears as a secondary symptom rather than the root cause. In the context of the issues discussed: * Secondary Failure: This message occurs during the "replication-orchestrator" cleanup phase. It indicates that Airbyte is attempting to shut down the source container after a primary error has already occurred [[Forum Post](https://discuss.airbyte.io/t/2410)]. * Context of Primary Errors: In the logs you've shared previously, this "closing resource" error follows the critical failure: Incumbent CDC state is invalid, reason: java.lang.NullPointerException. The orchestrator is simply reporting that it encountered an additional issue while trying to gracefully close the connection that had already crashed. * Memory or Timeout: In similar cases involving large MySQL tables (like your 15GB order_transaction table), these types of resource closing errors can sometimes be linked to the container being in an unstable state due to memory exhaustion (Exit Code 137) or connection timeouts [[Failing to ingest a "big" MySQL table](https://discuss.airbyte.io/t/1200)]. Suggested Action: Because this error is likely a result of the connection already failing, you should focus on the primary error that preceded it (the NullPointerException in the CDC state). The knowledge sources suggest that for high-volume MySQL syncs, you should increase replica_net_timeout to 120 on your MySQL 8.0 server and reset the connection to clear the corrupted state that prevented a clean shutdown [[Troubleshooting MySQL Sources](https://docs.airbyte.com/integrations/sources/mysql/mysql-troubleshooting#eventdatadeserializationexception-errors-during-initial-snapshot); [MySQL CDC Issue](https://github.com/airbytehq/airbyte/issues/51607)].Emanuel Olteanu
12/30/2025, 2:51 PMkapa.ai
12/30/2025, 2:51 PMkapa.ai
12/30/2025, 2:51 PMjava.lang.ArithmeticException: / by zero occurs during the partition boundary calculation stage of a sync [[MySQL Issue 64139](https://github.com/airbytehq/airbyte/issues/64139)]. This typically happens when the connector attempts to calculate "step sizes" for chunking large tables (often over 1GB or with skewed key ranges) and incorrectly derives a zero divisor during the partitioning logic [[MySQL Issue 64909](https://github.com/airbytehq/airbyte/issues/64909)]. ### Recommended Fix The knowledge sources indicate that a permanent fix was released to address this regression. You should upgrade your MySQL source connector to version 3.0.8 or later (or the latest version in the 3.x series) to resolve the division-by-zero bug [[MySQL Issue 64909](https://github.com/airbytehq/airbyte/issues/64909)]. ### Workarounds If you are unable to upgrade immediately, the following workarounds have been reported by the community: * Downgrade the Connector: Some users successfully resolved this by downgrading to version 3.11.21 (using the Docker Hub tag), which uses an older partitioning logic that does not trigger this exception [[MySQL Issue 64139](https://github.com/airbytehq/airbyte/issues/64139)]. * Reduce Table Sync Complexity: The error is most common on large tables (e.g., your order_transaction or order_all tables). Attempting to sync these problematic tables in a separate connection or using a different sync mode (if applicable) may sometimes bypass the specific partitioning path causing the crash [[MySQL Issue 64909](https://github.com/airbytehq/airbyte/issues/64909)]. Since you are running into this while also experiencing CDC state issues, the internal partitioning failure may be contributing to the corrupted state you encountered previously. Upgrading the connector is the most reliable path forward [[MySQL Issue 64909](https://github.com/airbytehq/airbyte/issues/64909)].