<@U04S8PLJWMT> now getting this error with mysql/B...
# ask-ai
l
@kapa.ai now getting this error with mysql/BQ when refreshing sync because all syncs are failing since upgrade:
Copy code
Suppressed: io.airbyte.cdk.TransientErrorException: Shutting down snapshot reader: max duration elapsed
k
The error message:
Copy code
Suppressed: io.airbyte.cdk.TransientErrorException: Shutting down snapshot reader: max duration elapsed
indicates that the snapshot phase of your MySQL → BigQuery sync is timing out. This typically happens when the initial snapshot (full read of the source tables) takes longer than the allowed maximum duration, causing Airbyte to abort the operation. Possible causes and troubleshooting steps: 1. Large Data Volume or Slow Source: If your MySQL tables are large or the source is slow to respond, the snapshot can exceed the default timeout. 2. Timeout Configuration: Airbyte’s MySQL connector has settings related to timeouts and snapshot durations. While the knowledge sources do not specify the exact parameter for "max duration" of the snapshot reader, they do mention related settings: - The initial CDC waiting time can be configured (default is 5 minutes, up to 20 minutes). If your snapshot needs more time, try increasing this value in the connector's advanced settings. For example, set it to 1200 seconds (20 minutes) to see if the snapshot completes successfully. [See: Advanced CDC waiting time](https://docs.airbyte.com/integrations/sources/mysql/mysql-troubleshooting#advanced-setting-up-initial-cdc-waiting-time) - If you are hitting query timeouts, ensure that your MySQL server’s
max_execution_time
is set higher than Airbyte’s checkpoint interval. [See: Query Timeout](https://docs.airbyte.com/integrations/sources/mysql/mysql-troubleshooting#troubleshooting) 3. Server-Side Issues: - If the MySQL server is under heavy load or has restrictive timeout settings (
wait_timeout
,
max_execution_time
), consider increasing these values. - For Amazon RDS or Aurora, ensure binlog retention is set high enough to avoid losing binlogs during long syncs. 4. Upgrade-Related Issues: - Several users have reported sync failures after upgrading Airbyte or connectors, sometimes resolved by increasing timeouts or splitting large syncs into smaller ones. [See: Forum discussion on sync failures after upgrade](https://discuss.airbyte.io/t/2656) Next steps: - Increase the initial CDC waiting time and relevant MySQL server timeouts. - If possible, reduce the amount of data being synced in a single run (e.g., sync fewer tables at once). - Monitor the Airbyte and MySQL logs for any additional errors or clues. If the problem persists after these adjustments, please provide more details about your connector versions and configuration, as there may be a regression or bug introduced in the recent upgrade. Let me know if you need guidance on where to set these parameters in the Airbyte UI.
l
@kapa.ai based off that article, you are suggesting I migrate to using FIvetran instead of airbyte? Not a bad idea, airbyte does seem to be really flaky now
k
A message from kapa.ai
No, I am not suggesting you migrate to Fivetran. My role is to help you troubleshoot and resolve issues with Airbyte based on the available knowledge sources. While some users in the forums have expressed frustration and mentioned switching to other tools like Fivetran due to persistent issues, the official guidance and support responses focus on troubleshooting and improving Airbyte’s reliability—such as updating connectors, adjusting sync configurations, and splitting large syncs into smaller ones if needed [Suddenly after two days some of the syncs are failing](https://discuss.airbyte.io/t/2656). If you’re experiencing flakiness after an upgrade, I recommend following the troubleshooting steps provided, such as increasing timeout settings, updating connectors, and reviewing your sync configuration. If you need further help, I’m here to assist you with Airbyte-specific solutions.
l
@kapa.ai can you search github for what this error means and find where it is referenced in the airbyte codebase?
Copy code
Stack Trace: io.airbyte.cdk.TransientErrorException: Shutting down snapshot reader: max duration elapsed
k
A message from kapa.ai
I'm sorry, but the knowledge sources provided do not contain any direct references or explanations for the error:
Copy code
io.airbyte.cdk.TransientErrorException: Shutting down snapshot reader: max duration elapsed
There is no mention of this specific error message or its location in the Airbyte codebase within the documents available. If you need a precise code reference or a deeper explanation, you may need to search the Airbyte GitHub repository directly or consult the Airbyte community for further assistance.
l
@kapa.ai according to https://github.com/airbytehq/airbyte/pull/46699/files there is setting
maxSnapshotReadDuration
which tunes the initial snapshot timeout, where is this available to set in the UI?
k
A message from kapa.ai
New message text here