<@U04S8PLJWMT> while using cdc it shows this: ```2...
# ask-ai
s
@kapa.ai while using cdc it shows this:
Copy code
2025-10-29 07:50:10,237 [pool-4-thread-1]	INFO	i.a.w.i.VersionedAirbyteStreamFactory(internalLog$io_airbyte_airbyte_commons_worker):248 - INFO pool-2-thread-1 i.a.c.i.d.AirbyteDebeziumHandler$CapacityReportingBlockingQueue(reportQueueUtilization):48 CDC events queue stats: size=0, cap=10000, puts=34, polls=0
2025-10-29 07:50:10,238 [pool-4-thread-1]	INFO	i.a.w.i.VersionedAirbyteStreamFactory(internalLog$io_airbyte_airbyte_commons_worker):248 - INFO main i.a.c.i.d.i.DebeziumRecordIterator(computeNext):103 CDC events queue poll(): waited for 10.02 seconds since last logged call.
2025-10-29 07:50:10,238 [pool-4-thread-1]	INFO	i.a.w.i.VersionedAirbyteStreamFactory(internalLog$io_airbyte_airbyte_commons_worker):248 - INFO main i.a.c.i.d.i.DebeziumRecordIterator(computeNext):154 CDC events queue poll(): no progress since last heartbeat. Will continue polling until timeout is reached. Time remaining in seconds: 272.
I don't want wait for so long for it to stop. I want it to stop after 120 seconds of not getting new data
k
To reduce the waiting time for your CDC sync to stop after 120 seconds of inactivity, you need to adjust the "initial wait time" or equivalent timeout parameter in your source connector settings. For Airbyte CDC sources (such as Postgres or MSSQL), the "initial waiting time" determines how long Airbyte waits for new change events before timing out. The valid range for this parameter is typically between 120 seconds and 1200 seconds, depending on the connector. Setting it to 120 seconds will make the sync stop after 2 minutes of no new data, as you desire. How to set this: - For Postgres: Set the "Initial Waiting Time" parameter to 120 seconds in the source configuration. - For MSSQL: Similarly, set the initial wait time to 120 seconds in the source configuration. > "The connector waits for the default initial wait time of 5 minutes (300 seconds). Setting the parameter to a longer duration will result in slower syncs, while setting it to a shorter duration may cause the connector to not have enough time to create the initial snapshot or read through the change logs. The valid range is 120 seconds to 1200 seconds." [Postgres Troubleshooting: Advanced Setting up initial CDC waiting time](https://docs.airbyte.com/integrations/sources/postgres/postgres-troubleshooting#advanced-setting-up-initial-cdc-waiting-time) Best Practice: - For low-activity databases, you may want a longer wait, but for your use case, set it to the minimum (120 seconds). - Make sure to check your specific connector's documentation for the exact parameter name and location. Note: If you are using a custom or less common connector, or if you do not see this parameter in your UI, you may need to check the connector's advanced settings or configuration file. If you set the initial wait time to 120 seconds, Airbyte will stop polling for new CDC events after 2 minutes of inactivity, as you requested.
s
@kapa.ai what in the hell is this: 2025-10-29 075855,840 [pool-4-thread-1] INFO i.a.w.i.VersionedAirbyteStreamFactory(internalLog$io_airbyte_airbyte_commons_worker):248 - INFO main i.a.c.i.d.i.DebeziumRecordIterator(computeNext):154 CDC events queue poll(): no progress since last heartbeat. Will continue polling until timeout is reached. Time remaining in seconds: -254. the time remaining is in negative
k
A message from kapa.ai
The log message:
Copy code
CDC events queue poll(): no progress since last heartbeat. Will continue polling until timeout is reached. Time remaining in seconds: -254.
indicates that the Debezium-based CDC process in Airbyte is waiting for new change events, but no new data has arrived since the last heartbeat. The "Time remaining in seconds" value being negative (e.g., -254) suggests that the internal timer tracking the allowed wait time has already expired, but the process has not yet exited or handled the timeout as expected. Based on the available knowledge sources, this negative value is not normal and likely points to a bug or an edge case where the timeout logic is not being enforced or updated correctly. There is no explicit documentation about negative timeout values in the official Airbyte or connector documentation, but similar issues have been reported where the sync continues to poll for new data even after the expected timeout, especially in low-activity tables or when heartbeat events are not progressing as intended. This can result in the sync running much longer than configured, or even indefinitely in some cases, as described in [source-mssql] CDC Sync runs infinitely during heartbeat change events when the last heartbeat timestamp is null and related issues<sup>[source](https://github.com/airbytehq/airbyte/issues/60304)</sup>. If you are seeing negative values for the remaining timeout, it is recommended to: - Double-check your timeout and heartbeat configuration. - Consider updating to the latest connector and Airbyte versions, as some of these behaviors have been addressed in recent updates. - If the issue persists, report it to the Airbyte team with logs and configuration details, as it may require a code fix. I'm sorry, but the knowledge sources do not provide a more detailed explanation for negative timeout values in this context.
s
@kapa.ai can i signal it to stop so it can process ahead?
k
A message from kapa.ai
There is no direct mention in the knowledge sources of a built-in way to programmatically signal a running CDC sync to stop early so it can process ahead, aside from manually cancelling the sync through the Airbyte UI or API. The logs and issues indicate that when a sync is stuck or waiting (for example, due to no new data or heartbeat issues), users typically resolve it by cancelling the sync manually, which then allows a new sync to start or the process to move forward [Sync hangs until I cancel](https://discuss.airbyte.io/t/709) [source-mssql CDC Sync runs infinitely](https://github.com/airbytehq/airbyte/issues/60304). If you want to automate this, you could potentially use the Airbyte API to cancel a running job, but this is not described in detail in the provided sources. There is also mention of a global timeout setting (
SYNC_JOB_MAX_TIMEOUT_DAYS
), but the minimum is 1 day, which may not be suitable for your needs [Sync hangs until I cancel](https://discuss.airbyte.io/t/709). In summary: You can manually cancel the sync to force it to stop, but there is no documented way in the knowledge sources to programmatically signal a running CDC sync to stop immediately based on inactivity or a custom timeout. If this is a critical need, you may want to open a feature request or follow up on related GitHub issues for updates.
s
@kapa.ai connectorRollout: expirationSeconds: waitBetweenRolloutSeconds: waitBetweenSyncResultsQueriesSeconds: are these the parameters for wait time and stuff?
k
A message from kapa.ai
I'm sorry, but the knowledge sources do not contain any information about the parameters
connectorRollout
,
expirationSeconds
,
waitBetweenRolloutSeconds
, or
waitBetweenSyncResultsQueriesSeconds
in relation to CDC wait times or timeout settings. The documented parameters for controlling CDC wait times and timeouts are typically named "Initial Waiting Time" or "Initial Load Timeout" (sometimes found in the advanced settings of the source connector), and are specifically described for connectors like Postgres and MySQL. These parameters directly control how long Airbyte waits for new change events before timing out during CDC syncs [Postgres Troubleshooting: Advanced Setting up initial CDC waiting time](https://docs.airbyte.com/integrations/sources/postgres/postgres-troubleshooting#advanced-setting-up-initial-cdc-waiting-time) [CDC best practices](https://docs.airbyte.com/platform/understanding-airbyte/cdc-best-practices#source-configuration). There is no mention in the provided documentation that the parameters you listed are related to CDC wait times or sync timeouts. If you need to adjust CDC wait times, please look for the "Initial Waiting Time" or similar parameter in your connector's configuration.
s
how to set wait time to 2 minutes?@kapa.ai
how to set wait time to 2 minutes? @kapa.ai
k
A message from kapa.ai
To set the CDC wait time to 2 minutes (120 seconds) in Airbyte, you need to adjust the "Initial Waiting Time" (sometimes called "Initial Load Timeout" or similar) parameter in your source connector's configuration. The valid range for this parameter is typically 120 seconds to 1200 seconds, depending on the connector. How to do it: - Postgres Source: Set the "Initial Waiting Time" parameter to
120
seconds in the advanced settings of your source configuration. > "The valid range is 120 seconds to 1200 seconds." [Postgres Troubleshooting: Advanced Setting up initial CDC waiting time](https://docs.airbyte.com/integrations/sources/postgres/postgres-troubleshooting#advanced-setting-up-initial-cdc-waiting-time) - MySQL Source: Set the initial wait time parameter to `300`–`1200` seconds (minimum is 300 seconds for MySQL). [MySQL Troubleshooting: Advanced Setting up initial CDC waiting time](https://docs.airbyte.com/integrations/sources/mysql/mysql-troubleshooting#advanced-setting-up-initial-cdc-waiting-time) - MongoDB Source: Set "Initial Waiting Time in Seconds (Advanced)" to
120
seconds. [MongoDB v2 Configuration Parameters](https://docs.airbyte.com/integrations/sources/mongodb-v2#configuration-parameters) Note: - The exact parameter name and minimum value may vary by connector. - For most connectors, you can find this setting in the "Advanced" section of the source configuration in the Airbyte UI. If you do not see this parameter or cannot set it as low as 120 seconds for your connector, consult the connector's documentation or reach out to Airbyte support, as not all connectors support the same minimum value.