You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@seatunnel.apache.org by "krutoileshii (via GitHub)" <gi...@apache.org> on 2026/02/11 03:07:01 UTC
[I] [Question] SQL server cdc exactly once to iceberg sink [seatunnel]
krutoileshii opened a new issue, #10481:
URL: https://github.com/apache/seatunnel/issues/10481
Im trying to run a job from SQL server to iceberg (multiple tables and multiple sinks).
On average tables have a total of ~200M row between them.
The cluster consists of 3 nodes 16gb ram workers + 1 16gb master.
Currently even with concurrency set to 3 this will oom eventually. Using s3 imap.
The job will run for a while but ultimately memory keeps growing and it dies before it ever finishes the initial snapshot. If job is cancelled, memory never gets returned until the workers are restarted.
What's a good approach to minimize memory and load. Ultimately need to sync whole database with 600+ tables to iceberg.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@seatunnel.apache.org.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] [Question] SQL server cdc exactly once to iceberg sink [seatunnel]
Posted by "DanielCarter-stack (via GitHub)" <gi...@apache.org>.
DanielCarter-stack commented on issue #10481:
URL: https://github.com/apache/seatunnel/issues/10481#issuecomment-3882015830
<!-- code-pr-reviewer -->
Thanks for the detailed report. This is confirmed as a design limitation.
**Root Cause:**
When `exactly_once` is enabled, the SQL Server CDC connector sets the snapshot queue size to `Integer.MAX_VALUE` to buffer all snapshot data in memory, causing OOM for large tables.
**Evidence:**
- `connector/cdc/sqlserver-cdc/src/main/java/org/apache/seatunnel/connectors/seatunnel/cdc/sqlserver/source/reader/fetch/SqlServerSourceFetchTaskContext.java:121-124`
- `docs/en/connectors/source/SqlServer-CDC.md:20`
**Workarounds:**
1. **Disable exactly-once** (immediate fix)
```hocon
SqlServer-CDC {
exactly_once = false # uses configured queue size
}
```
2. **Use incremental mode** to skip initial snapshot
```hocon
startup.mode = "latest"
```
3. **Reduce snapshot fetch size**
```hocon
snapshot.fetch.size = 512
snapshot.split.size = 4096
```
4. **Split the 600+ tables into multiple jobs**
Could you share your current `exactly_once` configuration, JVM heap size per worker, and whether at-least-once semantics would be acceptable?
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@seatunnel.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org