DanielLeens commented on issue #13340: URL: https://github.com/apache/seatunnel/issues/13340#issuecomment-7008668239
Classification: A / Connector-V2 CDC restore-state consistency. Thank you for the report and the long-running reproduction. I rechecked current `dev` at `1d0e6509a0aba3e34219a1a7ae370913f0150b2a`. `IncrementalSourceEnumerator.addSplitsBack()` does run an assignment pass once the enumerator is running, and `IncrementalSplitAssigner.createIncrementalSplit()` still dereferences the per-snapshot watermark while selecting the start offset. That makes the reported failure path worth treating as a restore-state consistency bug. The proposed unconditional null fallback is not safe, though: choosing a snapshot low offset, skipping the split, or silently using another offset could duplicate or lose CDC events. Also, the current `addSplits()` normally repopulates completed-watermark state from returned incremental-split metadata, so the regression test needs to prove the precise state mismatch rather than only call the method out of order. Before a fix PR, please add a minimal serialized restore fixture with an assigned snapshot split whose completed-watermark entry is absent, and show the same NPE under non-exactly-once mode. The fix then needs to preserve the restored-split assignment behavior introduced for the stalled-restart case, define whether assignment waits or fails with an actionable restore error, and test both the normal restored metadata path and the malformed/incomplete-state path. A Zeta restore test that reaches the snapshot-to-incremental transition would be the strongest acceptance evidence. -- 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: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
