I am taking the data from a MySQL 8.0 replica
# ask-ai
e
I am taking the data from a MySQL 8.0 replica
k
I understand you're working with a MySQL 8.0 replica as your data source. Based on the knowledge sources, here are some important considerations for using Airbyte with MySQL 8.0: ## General Compatibility MySQL 8.0 is supported by Airbyte's MySQL source connector. According to the [Troubleshooting MySQL Sources](https://docs.airbyte.com/integrations/sources/mysql/mysql-troubleshooting), you should use MySQL Server versions
8.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):
Copy code
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:
Copy code
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?
e
@kapa.ai after setting up those.. same same error i jhave
k
A message from kapa.ai
e
Incumbent CDC state is invalid, reason: java.lang.NullPointerException: Cannot invoke "io.debezium.connector.mysql.gtid.MySqlGtidSet$UUIDSet.getUUID()" because "other" is null
k
I'd be happy to help troubleshoot the error you're still experiencing. However, I need more information to provide specific guidance: 1. What is the exact error message you're seeing? (Please share the complete error text or logs) 2. Which replication method are you using - Standard or CDC (Change Data Capture)? 3. What step is failing - connection test, initial sync, or during an ongoing sync? Based on the knowledge sources, here are some common MySQL connection errors and their solutions: ## Common Connection Timeout Errors If you're seeing an error like
HikariPool-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.
e
@kapa.ai } ] 2025-11-04 153908 replication-orchestrator INFO 2025-11-04 153908 replication-orchestrator INFO ----- END REPLICATION ----- 2025-11-04 153908 replication-orchestrator INFO Closing io.micronaut.context.propagation.instrument.execution.ContextPropagatingExecutorService@5bebff4b 2025-11-04 153908 replication-orchestrator INFO 2025-11-04 153908 replication-orchestrator INFO Closing io.airbyte.container.orchestrator.worker.io.LocalContainerAirbyteDestination@5811502e 2025-11-04 153908 replication-orchestrator ERROR Error closing resource io.airbyte.container.orchestrator.worker.io.LocalContainerAirbyteDestination@5811502e; recording failure but continuing. 2025-11-04 153908 replication-orchestrator INFO Closing io.airbyte.container.orchestrator.worker.io.LocalContainerAirbyteSource@6f856849 2025-11-04 153908 replication-orchestrator ERROR Error closing resource io.airbyte.container.orchestrator.worker.io.LocalContainerAirbyteSource@6f856849; recording failure but continuing. 2025-11-04 153908 replication-orchestrator INFO Closing io.airbyte.container.orchestrator.worker.RecordSchemaValidator@6185cb4d 2025-11-04 153908 replication-orchestrator INFO Closing io.airbyte.container.orchestrator.persistence.SyncPersistenceImpl@1bb386b3 2025-11-04 153908 replication-orchestrator INFO Returning output... 2025-11-04 153909 platform INFO ----- START POST REPLICATION OPERATIONS ----- 2025-11-04 153909 platform INFO No post-replication operation(s) to perform. 2025-11-04 153909 platform INFO ----- END POST REPLICATION OPERATIONS ----- 2025-11-04 153909 platform INFO Retry State: RetryManager(completeFailureBackoffPolicy=BackoffPolicy(minInterval=PT10S, maxInterval=PT30M, base=3), partialFailureBackoffPolicy=null, successiveCompleteFailureLimit=5, successivePartialFailureLimit=1000, totalCompleteFailureLimit=10, totalPartialFailureLimit=20, successiveCompleteFailures=1, successivePartialFailures=0, totalCompleteFailures=1, totalPartialFailures=0) Backoff before next attempt: 10 seconds 2025-11-04 153909 platform ERROR Failing job: 161, reason: io.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
k
A message from kapa.ai
Based on the error logs you've shared, you're encountering a CDC state corruption issue with your MySQL source connector. The key error is:
Copy code
io.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:
Copy code
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.
e
@kapa.ai Sync completed: </workspaces/dfe38d1b-af13-4646-a3f2-53580c7085f7/connections/47c18296-7641-403d-9548-98e098eb3cc6|replica-realtime → BigQuery> Source: </workspaces/dfe38d1b-af13-4646-a3f2-53580c7085f7/source/f0391540-a556-4e6b-962d-c3b0ca870c32|replica-realtime> Destination: </workspaces/dfe38d1b-af13-4646-a3f2-53580c7085f7/destination/0be221fa-ff25-4daa-827b-26e3fad389bf|BigQuery> Duration: 6 min 54 sec Sync Summary: 3122484 record(s) extracted / 3122484 record(s) loaded 1 GB extracted / 1 GB loaded incoming-webhook [5:42 PM] Sync failure occurred: </workspaces/dfe38d1b-af13-4646-a3f2-53580c7085f7/connections/47c18296-7641-403d-9548-98e098eb3cc6|replica-realtime → BigQuery> Source: </workspaces/dfe38d1b-af13-4646-a3f2-53580c7085f7/source/f0391540-a556-4e6b-962d-c3b0ca870c32|replica-realtime> Destination: </workspaces/dfe38d1b-af13-4646-a3f2-53580c7085f7/destination/0be221fa-ff25-4daa-827b-26e3fad389bf|BigQuery> Duration: 31 sec Failure reason:
Copy code
[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
k
A message from kapa.ai
The error message you are seeing:
Copy code
[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:
Copy code
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)
e
@kapa.ai i have ✓ gtid_mode = ON ✓ enforce_gtid_consistency = ON ✓ binlog_gtid_simple_recovery = ON
k
A message from kapa.ai
You have confirmed that the following MySQL settings are enabled: -
gtid_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:
Copy code
[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)
e
@kapa.ai Incumbent CDC state is invalid, reason: java.lang.NullPointerException: Ca
k
A message from kapa.ai
Based on the error message you're experiencing:
Copy code
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 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.
e
@kapa.ai ync failure occurred: </workspaces/dfe38d1b-af13-4646-a3f2-53580c7085f7/connections/47c18296-7641-403d-9548-98e098eb3cc6|replica-realtime → BigQuery> Source: </workspaces/dfe38d1b-af13-4646-a3f2-53580c7085f7/source/f0391540-a556-4e6b-962d-c3b0ca870c32|replica-realtime> Destination: </workspaces/dfe38d1b-af13-4646-a3f2-53580c7085f7/destination/0be221fa-ff25-4daa-827b-26e3fad389bf|BigQuery> Duration: 1 min 59 sec Failure reason:
Copy code
[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
k
A message from kapa.ai
Based on your continued experience with this error:
Copy code
[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.
e
@kapa.ai 1, latest connect 2, i have 10 days, 3 already did 3 times.
k
A message from kapa.ai
Based on your updates: 1. You're using the latest MySQL source connector (version 1) 2. You have 10 days of binlog retention configured 3. You've already reset the connection 3 times and the issue persists This is a concerning pattern that suggests a deeper issue beyond the standard CDC state corruption scenarios. Given that you've already: - ✅ Verified GTID configuration is correct - ✅ Set adequate binlog retention (10 days) - ✅ Reset the connection multiple times - ✅ Are using the latest connector version ## Potential Root Causes Based on the knowledge sources, here are some additional factors that could be causing persistent CDC state corruption: ### 1. MySQL Replica-Specific Issues Since you're reading from a MySQL replica (not the primary), there could be replication lag or GTID inconsistencies between the primary and replica. The knowledge sources don't explicitly address replica-specific CDC issues, but this could cause GTID set mismatches. ### 2. Connector Version-Specific Bugs According to a [GitHub issue](https://github.com/airbytehq/airbyte/issues/51607), some users experienced similar CDC errors that were resolved by: - Downgrading to MySQL source connector version 3.9.4 (one user reported: "we believe this issue does not occur in MySQL source `3.9.4`") - Or upgrading to version 3.11.0 or later (though some users still reported issues) ### 3. MySQL Configuration Variables A [GitHub comment](https://github.com/airbytehq/airbyte/issues/51607) suggests checking the
log_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:
Copy code
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 investigated
e
@kapa.ai io.airbyte.cdk.TransientErrorException: Input was fully read, but some streams did not receive a terminal stream status message. If the destination did not encounter other errors, this likely indicates an error in the source or platform. Streams without a status message: [activity_log_m, loyalty_rewards,
k
A message from kapa.ai
I'm sorry, but the knowledge sources do not provide a specific, confirmed resolution for this exact error, although it is documented in several open issues. The error
io.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)].
e
@kapa.ai | order_transaction | 14.58 GB | 0.64 GB | 15.22 GB | | order_all | 2.43 GB | 4.41 GB | 6.83 GB | | log_for_order_all | 6.52 GB | 0.04 GB | 6.56 GB | | pixel_events | 5.95 GB | 0.29 GB | 6.24 GB | | member | 3.11 GB | 2.36 GB | 5.48 GB | | braintree_webhook | 3.46 GB | 0.01 GB | 3.47 GB | | model_histories | 3.17 GB | 0.19 GB | 3.35 GB | | failed_jobs | 2.27 GB | 0.01 GB | 2.28 GB | | log | 1.94 GB | 0.25 GB | 2.19 GB | | order_m | 0.67 GB | 1.46 GB | 2.13 GB | | activity_log_m | 0.99 GB | 1.11 GB | 2.10 GB | | store_credit_history | 0.65 GB | 1.45 GB | 2.10 GB | | log_yotpo_webhook | 1.33 GB | 0.09 GB | 1.43 GB | | subscription_billing_attempt | 0.47 GB | 0.69 GB | 1.16 GB | | checkout | 0.89 GB | 0.07 GB | 0.96 GB | | product_variant | 0.34 GB | 0.60 GB | 0.95 GB | | subscription_contract | 0.44 GB | 0.50 GB | 0.94 GB | | _app_usage_pricing | 0.28 GB | 0.44 GB | 0.71 GB | | ai_predictions | 0.42 GB | 0.23 GB | 0.65 GB | | product_collection | 0.24 GB | 0.38 GB | 0.62 GB |
k
A message from kapa.ai
The knowledge sources do not explicitly mention a table list with these specific sizes, but the data volume you are describing (totaling over 60GB across multiple large tables) is highly relevant to the errors you are seeing. Based on the knowledge sources, syncing large MySQL tables of this scale (such as
order_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)].
e
@kapa.ai max_execution_time where? in airbyte serber?
k
A message from kapa.ai
The
max_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)].
e
@kapa.ai i have max_execution_time = 0
k
A message from kapa.ai
In MySQL, a
max_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:
Copy code
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)].
e
@kapa.ai on my mysql server configuration.
k
A message from kapa.ai
To correctly configure your MySQL server for Airbyte CDC (especially for version 8.0 replicas with large data volumes), you should verify and apply the following settings based on the knowledge sources: ### 1. CDC and GTID Requirements Since your error involves GTID sets, ensure these variables are set on your server: *
gtid_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:
Copy code
sql     SET GLOBAL replica_net_timeout = 120;       SET GLOBAL thread_pool_idle_timeout = 120;
* For MySQL versions before 8.0.26:
Copy code
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:
Copy code
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:
Copy code
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:
Copy code
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)].
e
@kapa.ai log_bin_use_v1_row_events OFF
k
A message from kapa.ai
Since your
log_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)].
e
@kapa.ai ERROR Error closing resource io.airbyte.container. orchestrator-worker-io. LocalContainerAirbyteSource@5c09b49f; recording failure but
k
A message from kapa.ai
I'm sorry, but the provided knowledge sources do not contain enough information to provide a specific resolution for the error
ERROR 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)].
e
@kapa.ai java.lang.ArithmeticException: / by zero at io.airbyte.integrations.source.mysql.MySqlSourceJdbcPartitionFactory.internalCalculateBoundaries(MySqlSourceJdbcPartitionFactory.kt:594)
k
A message from kapa.ai
I'm sorry, but this is a known regression in the Airbyte MySQL source connector, specifically affecting versions 3.50.3, 3.50.5, and 3.50.6. The error
java.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)].