Hi All, Hoping that doing a bit of rubber ducky p...
# troubleshooting
d
Hi All, Hoping that doing a bit of rubber ducky problem solving for you will help me out. I have a postgres table that I would like to process with the CDC connector. I've got my stream reading out of this table and correctly processing any new rows being inserted. The table is full of historical data and my stream state information is such that it must be processed in order. How can I get my initial historical reads to be done in order without batch mode? • How can I get my initial state correct, if I cannot read my initial table snapshot in order? I have tried using
debezium.snapshot.select.statement.overrides,<schema>.<table>
but it seems this has no effect, intentionally introducing invalid SQL has the same behavior as valid SQL • the CDC connector currently supports unbounded only, which I think means there is no guarantee of in order processing(I see this in the data output as well) • I'm using the latest version of the CDC connector(3.0.1) I don't think I'm the only person who has tried to do this, and i've looked through the flink and CDC connector github and i'm not finding any additional paths to explore
The kind of ordering I'm seeing:
Copy code
2023-10-12T22:11:00+00:00, -918, None, None
 2023-10-12T21:41:00+00:00, -920, -918, None
 2023-10-12T19:46:00+00:00, -941, -918, 0
 2023-10-12T19:16:00+00:00, -942, -918, 0
 2023-10-12T22:41:00+00:00, -918, -918, 0
h
Hi @David Bryson, Can I ask how you run flink CDC connector with batch mode?
d
The mode is not handled by the connector, you declare it when constructing the environment. The source connector returns whether the source is bounded or unbounded, and in the lates master branch there is a snapshot mode that lets the connector run in bounded mode