DanielLeens commented on issue #13340:
URL: https://github.com/apache/seatunnel/issues/13340#issuecomment-7062350126

   Classification: A / Connector-V2 CDC restore-state consistency.
   
   Thank you for the serialized fixture, the red/green evidence, and the 
embedded restore check. The new detail identifies a concrete state-ownership 
gap rather than just a null guard. On current `dev`, the restored 
`SnapshotSplitAssigner` copies `assignedSplits` and `splitCompletedOffsets` 
into its own maps, while `IncrementalSplitAssigner` creates the incremental 
split from the shared `SplitAssigner.Context` maps. The completed-split 
back-fill can therefore make the snapshot assigner look complete without making 
the watermark visible to the incremental assigner.
   
   The repair should synchronize that restored completion watermark into the 
shared context at the same ownership boundary and re-evaluate snapshot 
completion after the restored completed split is handled. Do not add a 
startup-offset fallback or merely catch the NPE: either would conceal an 
incomplete checkpoint and could duplicate or lose CDC events. A genuinely 
malformed restored state should instead fail fast with an 
`IllegalStateException` that names the table and split.
   
   Please put the serialized component fixture in the existing CDC enumerator 
test coverage, including both non-exactly-once low-watermark and exactly-once 
high-watermark selection, the normal restored path, and malformed 
missing/null-watermark cases. The in-JVM Zeta savepoint-restore proof is 
valuable additional acceptance evidence; reuse existing checkpoint/restore test 
infrastructure where practical rather than introducing an isolated parallel 
harness. Keep the change confined to the CDC restore-state ownership path, 
preserve the waiting-reader reassignment behavior, and open a focused PR 
against current `dev` with the red/green fixture linked here.
   


-- 
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]

Reply via email to