got this error on mysql initial load ```java.lang...
# ask-ai
s
got this error on mysql initial load
Copy code
java.lang.ArithmeticException: / by zero
  at io.airbyte.integrations.source.mysql.MySqlSourceJdbcPartitionFactory.internalCalculateBoundaries(MySqlSourceJdbcPartitionFactory.kt:594)
  at io.airbyte.integrations.source.mysql.MySqlSourceJdbcPartitionFactory.calculateBoundaries(...)
  at io.airbyte.integrations.source.mysql.MySqlSourceJdbcPartitionFactory.split(...)
  at io.airbyte.integrations.source.mysql.MySqlJdbcConcurrentPartitionsCreator.run(...)
k
The error you're encountering,
java.lang.ArithmeticException: / by zero
in
MySqlSourceJdbcPartitionFactory.internalCalculateBoundaries
, is a known issue with recent versions of the Airbyte MySQL source connector. This error typically occurs during the partitioning phase of the initial sync, especially when using incremental sync modes on larger tables. Key points from the knowledge sources: - The error is triggered during the calculation of partition boundaries for concurrent syncs. If the logic for determining the number of partitions or the range of primary key values results in a zero divisor, this exception is thrown. - Multiple users have reported this as a blocking issue for initial syncs, particularly with connector versions 3.50.x and Airbyte OSS versions 1.6.x and above. - A common workaround is to downgrade the MySQL source connector to version 3.11.21, which does not exhibit this issue. Note that the version must be available on Docker Hub, as not all versions listed in the changelog are available for use. For example, 3.12.0 may not exist on Docker Hub, but 3.11.21 does and has been confirmed to resolve the issue for some users. - This issue is still present in the latest connector versions, and there is no official fix yet for users on Airbyte Cloud or those who cannot downgrade the connector version. The problem is particularly acute for tables that trigger concurrent partitioning logic (usually larger tables) and when using incremental sync with append + deduped mode. References: - [Github Issue: source-mysql java.lang.ArithmeticException: / by zero](https://github.com/airbytehq/airbyte/issues/64139) Suggested next steps: - If possible, downgrade your MySQL source connector to version 3.11.21 as a temporary workaround. - Monitor the official Airbyte GitHub issues for updates or a permanent fix if you require a newer connector version or are using Airbyte Cloud. If you need guidance on downgrading the connector or further troubleshooting, let me know!
s
@kapa.ai but i am using airbyte cloud which doesnt allow me to downgrade connector version
k
A message from kapa.ai
You're correct—Airbyte Cloud does not allow you to manually downgrade connector versions, which makes this issue particularly challenging. According to user reports, the divide-by-zero error in the MySQL source connector is still present in the latest versions and is blocking initial syncs for some tables. Users on Airbyte Cloud have specifically noted that they are unable to apply the common workaround of downgrading the connector, and there is currently no official fix or workaround available for Cloud users in the knowledge sources provided. The issue remains open and unresolved for Airbyte Cloud as of the latest reports [Github Issue: source-mysql java.lang.ArithmeticException: / by zero](https://github.com/airbytehq/airbyte/issues/64139). If you are affected by this on Airbyte Cloud, the best course of action is to contact Airbyte support directly and reference the ongoing issue. Unfortunately, the knowledge sources do not provide a solution for Airbyte Cloud users at this time.