Soo Peng Kiat
08/25/2025, 6:40 PMjava.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(...)kapa.ai
08/25/2025, 6:40 PMjava.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!Soo Peng Kiat
08/25/2025, 6:46 PMkapa.ai
08/25/2025, 6:46 PMkapa.ai
08/25/2025, 6:46 PM