DanielLeens commented on PR #13677:
URL: https://github.com/apache/seatunnel/pull/13677#issuecomment-7243026386

   ## Implementation Notes and Trade-offs
   
   This note applies to Git head `913387c9c58fb042da15296c96aafca51f3ce6ab`.
   
   The Source uses one database snapshot across all selected tables. It checks 
every table's retained minimum and schema, freezes the current version, and 
reads `CHANGETABLE` ordered by native version and numeric primary key. Setting 
`include_current` adds the current row using a left join and preserves the 
tracked key for deletions. The projected Change Tracking mask and context 
remain binary.
   
   A checkpoint stores the last fully emitted synchronization watermark. The 
live page key stays with its SQL transaction. After an interrupted snapshot, 
the reader starts again from the completed watermark and SQL Server can 
coalesce changes for a key. This allows safe replay and makes the duplicate and 
latest-value boundaries explicit. An expired watermark or changed catalog fails 
with reinitialization guidance. A configured generation marker can also detect 
a backup restore that reuses version numbers.
   
   The source supports periodic streaming and one completed bounded scan. 
Parallelism is one so all selected tables share the same version bound. Normal 
completion follows the engine's source lifecycle. The connector uses the 
repository's managed SQL Server JDBC driver and the engine's existing Source 
checkpoint hooks.
   
   Scoped JDK 11 formatting and static checks completed before submission. The 
real SQL Server and Zeta jobs, savepoint cases, and packaged snapshot tests are 
authored for GitHub CI.
   


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