<@U04S8PLJWMT> we have several connections setup f...
# ask-ai
f
@kapa.ai we have several connections setup from SQL Server to snowflake with over 100 streams each. We notice data does not move to destination for all the streams but only a few. Why is this and how can we resolve this?
k
It’s likely due to scale limits when syncing many streams in one connection. Two common patterns in our knowledge sources: - Too many streams can exhaust buffers/memory in warehouse destinations (e.g., Snowflake), leading to partial writes with no explicit errors. Splitting into multiple connections is recommended. [[EPIC scaling](https://github.com/airbytehq/airbyte/issues/10260); [Redshift→Snowflake thread](https://discuss.airbyte.io/t/2119)] - Destination back-pressure with many tables can slow or stall copying from staging; reducing concurrent streams per connection and tuning destination buffering helps. For Snowflake, increasing the destination buffer parameter (e.g., to 50) has unblocked similar issues; also limit tables per CDC-style connection (≤30) or split across multiple connections. [[Postgres CDC thread](https://discuss.airbyte.io/t/4373)] What to do: - Split your 100+ streams into several Airbyte connections (e.g., group by schema or domain). [[Redshift→Snowflake thread](https://discuss.airbyte.io/t/2119)] - For Snowflake destination, increase the buffer parameter and use staging (S3/GCS/internal), then retry. [[Postgres CDC thread](https://discuss.airbyte.io/t/4373); [EPIC scaling](https://github.com/airbytehq/airbyte/issues/10260)] - Ensure no two connections write to the same destination table/namespace at the same time to avoid cleanup or collision issues; use unique stream prefixes or namespace formats per connection. [[Configuring schemas](https://docs.airbyte.com/platform/using-airbyte/configuring-schema)] - If you have multiple connections sharing the same staging path (e.g., S3), avoid overlapping runs or shared cleanup paths to prevent one job from deleting another’s staged files. [[S3 key issue](https://discuss.airbyte.io/t/1489)] If you share a recent failing sync log, we can confirm whether it’s buffer/back-pressure vs. staging cleanup vs. stream collisions.
f
@kapa.ai this is the end of the log: 2025-09-10 065327 source INFO main i.a.c.i.s.r.s.CursorManager(createCursorInfoForStream$io_airbyte_airbyte_cdk_java_airbyte_cdk_airbyte_cdk_db_sources):221 No cursor field set in catalog but not present in state. Stream: log_narrative_history, New Cursor Field: _ab_cdc_cursor. Resetting cursor value 2025-09-10 065327 source INFO main i.a.c.i.s.r.CdcStateManager(<init>):30 Initialized CDC state 2025-09-10 065327 source INFO main c.z.h.HikariDataSource(<init>):79 HikariPool-1 - Starting... 2025-09-10 065327 source INFO main c.z.h.HikariDataSource(<init>):81 HikariPool-1 - Start completed. 2025-09-10 065328 replication-orchestrator WARN Workload in terminal state; exiting.
k
A message from kapa.ai
Thanks for the snippet. Here’s what those lines suggest and how to proceed: - “No cursor field set in catalog but not present in state… New Cursor Field: _ab_cdc_cursor. Resetting cursor value” indicates the source is using CDC and falling back to a source-defined cursor, not a table column. That’s expected for CDC streams; the UI won’t show a cursor field because CDC tracks position in the log rather than a column. [[Why no cursor shown](https://discuss.airbyte.io/t/2159)] - “Initialized CDC state … HikariPool … Start completed.” shows the connector started normally, then the orchestrator immediately warns “Workload in terminal state; exiting.” That pattern typically occurs when the source exits without emitting proper terminal stream status/state, which can leave destinations with no data for some streams. Similar symptoms produce errors like “input fully read, but some streams did not receive a terminal stream status message,” pointing to a source/platform-side termination rather than a Snowflake error. [[Mid-sync auth failure pattern](https://github.com/airbytehq/airbyte/issues/62467)] What to try: - Re-run the sync and check source logs earlier than this tail for any preceding exceptions (auth, throttling, or connector errors) and whether a final state message was emitted for each stream. Missing terminal status is the key signal. [[Mid-sync auth failure pattern](https://github.com/airbytehq/airbyte/issues/62467)] - If this is CDC from SQL Server, it’s normal that you can’t pick a cursor; ensure CDC state is saved between runs and avoid manual resets unless intended. [[Why no cursor shown](https://discuss.airbyte.io/t/2159)] - If you see “The main thread is exiting while children non-daemon threads…still active” or similar, that can corrupt/lose cursor updates and cause subsequent runs to reset. Investigate and rerun; in some connectors this led to bad state. [[MongoDB v2 cursor issue](https://github.com/airbytehq/airbyte/issues/62832); [MySQL CDC thread](https://discuss.airbyte.io/t/1426)] If you share a fuller log (including the first source error and any “final state message” lines), I can pinpoint whether this is a mid-sync termination vs. state not being saved.
f
@kapa.ai this is the full log: i.a.c.i.s.r.s.CursorManager(createCursorInfoForStream$io_airbyte_airbyte_cdk_java_airbyte_cdk_airbyte_cdk_db_sources):221 No cursor field set in catalog but not present in state. Stream: ref_interpreter_status, New Cursor Field: i.a.c.i.s.r.s.CursorManager(createCursorInfoForStream$io_airbyte_airbyte_cdk_java_airbyte_cdk_airbyte_cdk_db_sources):221 No cursor field set in catalog but not present in state. Stream: ref_next_action_priority, New Cursor Field: _ab_cdc_cursor. Resetting cursor value 2025-09-10 065327 source INFO main i.a.c.i.s.r.s.CursorManager(createCursorInfoForStream$io_airbyte_airbyte_cdk_java_airbyte_cdk_airbyte_cdk_db_sources):221 No cursor field set in catalog but not present in state. Stream: ref_next_action_type, New Cursor Field: _ab_cdc_cursor. Resetting cursor value 2025-09-10 065327 source INFO main i.a.c.i.s.r.s.CursorManager(createCursorInfoForStream$io_airbyte_airbyte_cdk_java_airbyte_cdk_airbyte_cdk_db_sources):221 No cursor field set in catalog but not present in state. Stream: ref_note_reason, New Cursor Field: _ab_cdc_cursor. Resetting cursor value 2025-09-10 065327 source INFO main i.a.c.i.s.r.s.CursorManager(createCursorInfoForStream$io_airbyte_airbyte_cdk_java_airbyte_cdk_airbyte_cdk_db_sources):221 No cursor field set in catalog but not present in state. Stream: ref_note_status, New Cursor Field: _ab_cdc_cursor. Resetting cursor value 2025-09-10 065327 source INFO main i.a.c.i.s.r.s.CursorManager(createCursorInfoForStream$io_airbyte_airbyte_cdk_java_airbyte_cdk_airbyte_cdk_db_sources):221 No cursor field set in catalog but not present in state. Stream: ref_organ_donor_status, New Cursor Field: _ab_cdc_cursor. Resetting cursor value 2025-09-10 065327 source INFO main i.a.c.i.s.r.s.CursorManager(createCursorInfoForStream$io_airbyte_airbyte_cdk_java_airbyte_cdk_airbyte_cdk_db_sources):221 No cursor field set in catalog but not present in state. Stream: ref_organ_transplant_status, New Cursor Field: _ab_cdc_cursor. Resetting cursor value 2025-09-10 065327 source INFO main i.a.c.i.s.r.s.CursorManager(createCursorInfoForStream$io_airbyte_airbyte_cdk_java_airbyte_cdk_airbyte_cdk_db_sources):221 No cursor field set in catalog but not present in state. Stream: ref_organ_transplant_type, New Cursor Field: _ab_cdc_cursor. Resetting cursor value 2025-09-10 065327 source INFO main i.a.c.i.s.r.s.CursorManager(createCursorInfoForStream$io_airbyte_airbyte_cdk_java_airbyte_cdk_airbyte_cdk_db_sources):221 No cursor field set in catalog but not present in state. Stream: ref_phi_restrictions_status, New Cursor Field: _ab_cdc_cursor. Resetting cursor value 2025-09-10 065327 source INFO main i.a.c.i.s.r.s.CursorManager(createCursorInfoForStream$io_airbyte_airbyte_cdk_java_airbyte_cdk_airbyte_cdk_db_sources):221 No cursor field set in catalog but not present in state. Stream: ref_preferred_contact_method, New Cursor Field: _ab_cdc_cursor. Resetting cursor value 2025-09-10 065327 source INFO main i.a.c.i.s.r.s.CursorManager(createCursorInfoForStream$io_airbyte_airbyte_cdk_java_airbyte_cdk_airbyte_cdk_db_sources):221 No cursor field set in catalog but not present in state. Stream: ref_procedure_type, New Cursor Field: _ab_cdc_cursor. Resetting cursor value 2025-09-10 065327 source INFO main i.a.c.i.s.r.s.CursorManager(createCursorInfoForStream$io_airbyte_airbyte_cdk_java_airbyte_cdk_airbyte_cdk_db_sources):221 No cursor field set in catalog but not present in state. Stream: ref_program_opt_out, New Cursor Field: _ab_cdc_cursor. Resetting cursor value 2025-09-10 065327 source INFO main i.a.c.i.s.r.s.CursorManager(createCursorInfoForStream$io_airbyte_airbyte_cdk_java_airbyte_cdk_airbyte_cdk_db_sources):221 No cursor field set in catalog but not present in state. Stream: ref_provider_accepting_members, New Cursor Field: _ab_cdc_cursor. Resetting cursor value 2025-09-10 065327 source INFO main i.a.c.i.s.r.s.CursorManager(createCursorInfoForStream$io_airbyte_airbyte_cdk_java_airbyte_cdk_airbyte_cdk_db_sources):221 No cursor field set in catalog but not present in state. Stream: ref_provider_gold_carded, New Cursor Field: _ab_cdc_cursor. Resetting cursor value 2025-09-10 065327 source INFO main i.a.c.i.s.r.s.CursorManager(createCursorInfoForStream$io_airbyte_airbyte_cdk_java_airbyte_cdk_airbyte_cdk_db_sources):221 No cursor field set in catalog but not present in state. Stream: ref_provider_network_status, New Cursor Field: _ab_cdc_cursor. Resetting cursor value 2025-09-10 065327 source INFO main i.a.c.i.s.r.s.CursorManager(createCursorInfoForStream$io_airbyte_airbyte_cdk_java_airbyte_cdk_airbyte_cdk_db_sources):221 No cursor field set in catalog but not present in state. Stream: ref_race, New Cursor Field: _ab_cdc_cursor. Resetting cursor value 2025-09-10 065327 source INFO main i.a.c.i.s.r.s.CursorManager(createCursorInfoForStream$io_airbyte_airbyte_cdk_java_airbyte_cdk_airbyte_cdk_db_sources):221 No cursor field set in catalog but not present in state. Stream: ref_region, New Cursor Field: _ab_cdc_cursor. Resetting cursor value 2025-09-10 065327 source INFO main i.a.c.i.s.r.s.CursorManager(createCursorInfoForStream$io_airbyte_airbyte_cdk_java_airbyte_cdk_airbyte_cdk_db_sources):221 No cursor field set in catalog but not present in state. Stream: ref_relationship_to_subscriber, New Cursor Field: _ab_cdc_cursor. Resetting cursor value 2025-09-10 065327 source INFO main i.a.c.i.s.r.s.CursorManager(createCursorInfoForStream$io_airbyte_airbyte_cdk_java_airbyte_cdk_airbyte_cdk_db_sources):221 No cursor field set in catalog but not present in state. Stream: ref_relationship_type, New Cursor Field: _ab_cdc_cursor. Resetting cursor value 2025-09-10 065327 source INFO main i.a.c.i.s.r.s.CursorManager(createCursorInfoForStream$io_airbyte_airbyte_cdk_java_airbyte_cdk_airbyte_cdk_db_sources):221 No cursor field set in catalog but not present in state. Stream: ref_religion, New Cursor Field: _ab_cdc_cursor. Resetting cursor value 2025-09-10 065327 source INFO main i.a.c.i.s.r.s.CursorManager(createCursorInfoForStream$io_airbyte_airbyte_cdk_java_airbyte_cdk_airbyte_cdk_db_sources):221 No cursor field set in catalog but not present in state. Stream: ref_smart_comm, New Cursor Field: _ab_cdc_cursor. Resetting cursor value 2025-09-10 065327 source INFO main i.a.c.i.s.r.s.CursorManager(createCursorInfoForStream$io_airbyte_airbyte_cdk_java_airbyte_cdk_airbyte_cdk_db_sources):221 No cursor field set in catalog but not present in state. Stream: ref_smoking_status, New Cursor Field: _ab_cdc_cursor. Resetting cursor value 2025-09-10 065327 source INFO main i.a.c.i.s.r.s.CursorManager(createCursorInfoForStream$io_airbyte_airbyte_cdk_java_airbyte_cdk_airbyte_cdk_db_sources):221 No cursor field set in catalog but not present in state. Stream: ref_specialty, New Cursor Field: _ab_cdc_cursor. Resetting cursor value 2025-09-10 065327 source INFO main i.a.c.i.s.r.s.CursorManager(createCursorInfoForStream$io_airbyte_airbyte_cdk_java_airbyte_cdk_airbyte_cdk_db_sources):221 No cursor field set in catalog but not present in state. Stream: ref_state, New Cursor Field: _ab_cdc_cursor. Resetting cursor value 2025-09-10 065327 source INFO main i.a.c.i.s.r.s.CursorManager(createCursorInfoForStream$io_airbyte_airbyte_cdk_java_airbyte_cdk_airbyte_cdk_db_sources):221 No cursor field set in catalog but not present in state. Stream: ref_taxonomy, New Cursor Field: _ab_cdc_cursor. Resetting cursor value 2025-09-10 065327 source INFO main i.a.c.i.s.r.s.CursorManager(createCursorInfoForStream$io_airbyte_airbyte_cdk_java_airbyte_cdk_airbyte_cdk_db_sources):221 No cursor field set in catalog but not present in state. Stream: ref_touch_attempt_status, New Cursor Field: _ab_cdc_cursor. Resetting cursor value 2025-09-10 065327 source INFO main i.a.c.i.s.r.s.CursorManager(createCursorInfoForStream$io_airbyte_airbyte_cdk_java_airbyte_cdk_airbyte_cdk_db_sources):221 No cursor field set in catalog but not present in state. Stream: ref_touch_focus, New Cursor Field: _ab_cdc_cursor. Resetting cursor value 2025-09-10 065327 source INFO main i.a.c.i.s.r.s.CursorManager(createCursorInfoForStream$io_airbyte_airbyte_cdk_java_airbyte_cdk_airbyte_cdk_db_sources):221 No cursor field set in catalog but not present in state. Stream: ref_touch_location, New Cursor Field: _ab_cdc_cursor. Resetting cursor value 2025-09-10 065327 source INFO main i.a.c.i.s.r.s.CursorManager(createCursorInfoForStream$io_airbyte_airbyte_cdk_java_airbyte_cdk_airbyte_cdk_db_sources):221 No cursor field set in catalog but not present in state. Stream: ref_touch_outcome_status, New Cursor Field: _ab_cdc_cursor. Resetting cursor value 2025-09-10 065327 source INFO main i.a.c.i.s.r.s.CursorManager(createCursorInfoForStream$io_airbyte_airbyte_cdk_java_airbyte_cdk_airbyte_cdk_db_sources):221 No cursor field set in catalog but not present in state. Stream: ref_touch_reason, New Cursor Field: _ab_cdc_cursor. Resetting cursor value 2025-09-10 065327 source INFO main i.a.c.i.s.r.s.CursorManager(createCursorInfoForStream$io_airbyte_airbyte_cdk_java_airbyte_cdk_airbyte_cdk_db_sources):221 No cursor field set in catalog but not present in state. Stream: ref_touch_type, New Cursor Field: _ab_cdc_cursor. Resetting cursor value 2025-09-10 065327 source INFO main i.a.c.i.s.r.s.CursorManager(createCursorInfoForStream$io_airbyte_airbyte_cdk_java_airbyte_cdk_airbyte_cdk_db_sources):221 No cursor field set in catalog but not present in state. Stream: ref_tribal_entity, New Cursor Field: _ab_cdc_cursor. Resetting cursor value 2025-09-10 065327 source INFO main i.a.c.i.s.r.s.CursorManager(createCursorInfoForStream$io_airbyte_airbyte_cdk_java_airbyte_cdk_airbyte_cdk_db_sources):221 No cursor field set in catalog but not present in state. Stream: ref_vaccine, New Cursor Field: _ab_cdc_cursor. Resetting cursor value 2025-09-10 065327 source INFO main i.a.c.i.s.r.s.CursorManager(createCursorInfoForStream$io_airbyte_airbyte_cdk_java_airbyte_cdk_airbyte_cdk_db_sources):221 No cursor field set in catalog but not present in state. Stream: ref_vision_status, New Cursor Field: _ab_cdc_cursor. Resetting cursor value 2025-09-10 065327 source INFO main i.a.c.i.s.r.s.CursorManager(createCursorInfoForStream$io_airbyte_airbyte_cdk_java_airbyte_cdk_airbyte_cdk_db_sources):221 No cursor field set in catalog but not present in state. Stream: ref_working_status, New Cursor Field: _ab_cdc_cursor. Resetting cursor value 2025-09-10 065327 source INFO main i.a.c.i.s.r.s.CursorManager(createCursorInfoForStream$io_airbyte_airbyte_cdk_java_airbyte_cdk_airbyte_cdk_db_sources):221 No cursor field set in catalog but not present in state. Stream: log_narrative_history, New Cursor Field: _ab_cdc_cursor. Resetting cursor value 2025-09-10 065327 source INFO main i.a.c.i.s.r.CdcStateManager(<init>):30 Initialized CDC state 2025-09-10 065327 source INFO main c.z.h.HikariDataSource(<init>):79 HikariPool-1 - Starting... 2025-09-10 065327 source INFO main c.z.h.HikariDataSource(<init>):81 HikariPool-1 - Start completed. 2025-09-10 065328 replication-orchestrator WARN Workload in terminal state; exiting.
k
A message from kapa.ai
Thanks for sharing the full tail. Here’s what it indicates and how to move forward: What the log means - “No cursor field set … New Cursor Field: _ab_cdc_cursor. Resetting cursor value” appears for many streams because CDC uses a source-defined cursor (not a table column). When a stream has no saved CDC state, the connector resets the CDC cursor (effectively starting from scratch for that stream). This is expected behavior for CDC streams and is why you don’t see a cursor column in the UI. [[Why no cursor shown](https://discuss.airbyte.io/t/2159); [MSSQL migration note on _ab_cdc_cursor](https://docs.airbyte.com/integrations/sources/mssql-migrations)] - Immediately after initialization, the orchestrator reports “Workload in terminal state; exiting.” This suggests the job ended without progressing into CDC read/emit for those streams (no records, no per‑stream terminal messages in your snippet). Given you have 100+ streams per connection, this aligns with known scaling/back‑pressure limits where large CDC catalogs can stall/terminate parts of the workload and only some streams move data. [[Postgres CDC connector throughput thread](https://discuss.airbyte.io/t/4373)] Why you’re seeing only a few streams move data - With many CDC streams in one connection, destinations like Snowflake can apply back‑pressure; CDC sources also emit state infrequently, so progress can be lost on termination. Tuning buffer/concurrency and splitting streams across connections has resolved similar cases. [[Postgres CDC connector throughput thread](https://discuss.airbyte.io/t/4373)] What to do next - Split the connection: Reduce CDC tables per connection (target ≤30 per connection) by grouping streams into multiple connections. This is a known practical limit for CDC→Snowflake today. [[Postgres CDC connector throughput thread](https://discuss.airbyte.io/t/4373)] - Tune Snowflake destination: - Enable/use staging. - Increase the Buffer parameter (e.g., 50) to improve flush throughput. Users reported this unblocked stalled CDC copies. [[Postgres CDC connector throughput thread](https://discuss.airbyte.io/t/4373)] - Re-run and verify state saving: After splitting/tuning, confirm each run emits a “final state message” and that CDC state is saved, so you don’t repeatedly see “Resetting cursor value” for the same streams. [[Postgres CDC connector throughput thread](https://discuss.airbyte.io/t/4373); [Why no cursor shown](https://discuss.airbyte.io/t/2159)] - If you recently upgraded MSSQL source to ≥2.0.0, note CDC now defaults to _ab_cdc_cursor; if your destination tables/normalization expect the prior layout, force normalization or reset as advised in the migration guide. [[MSSQL migration guide](https://docs.airbyte.com/integrations/sources/mssql-migrations)] If you can share an earlier section of the logs (first source error and any “final state message” lines), I can confirm whether termination is due to destination back‑pressure or missing per‑stream terminal messages and refine the tuning. [[Postgres CDC connector throughput thread](https://discuss.airbyte.io/t/4373)]
f
@kapa.ai Please analyze the attached log and determine why the data is not being synced into the destination.
k
Sorry @Faisal, it looks like your question contains files, which I cannot process. Please reformulate your question without including any files.