SEPURI-SAI-KRISHNA commented on PR #13389:
URL: https://github.com/apache/seatunnel/pull/13389#issuecomment-7066351201

   Thanks for the fix. I traced the restore path on dev `7029c0969a` and ran 
both commits locally.
   
   Path: a reader restore reaches `HybridSplitAssigner.addSplits` through 
`RestoredSplitOperation` and `IncrementalSourceEnumerator.addSplitsBack`. On 
dev, `restoreCompletedSnapshotSplit` puts the rebuilt watermark only into the 
private map of `SnapshotSplitAssigner`, while 
`IncrementalSplitAssigner.createIncrementalSplit` reads 
`context.getSplitCompletedOffsets()`, so writing it to the shared context is 
the right place. The parallelism 1 transition in `addSplits` matches 
`onCompletedSplits`.
   
   The fail fast checks are safe for valid state: the snapshot read tasks of 
MySQL, PostgreSQL, Oracle, SQL Server, Db2 and `MongodbScanFetchTask` all 
dispatch a LOW and a HIGH watermark.
   
   JDK 17, all `connector-cdc-base` tests plus the new `SavePointTest` case:
   - `8a0b19f870` (tests only): `IncrementalSourceEnumeratorTest` 6 failures 
and 2 errors of 13; the `SavePointTest` case fails with the reported NPE at 
`IncrementalSplitAssigner.createIncrementalSplit:300`.
   - `2db47602e5`: all 126 `connector-cdc-base` tests and the `SavePointTest` 
case pass, `spotless:check` is clean. Both new tests also passed 4 more runs in 
a row.
   
   Points:
   1. The two new test dependencies in `seatunnel-engine-server/pom.xml` add 37 
artifacts to its test classpath (Kafka Connect runtime 3.2.0, Debezium 1.9.8, 
Jersey, Jetty client, reload4j) and change four existing ones: `zstd-jni` 
1.5.0-1 to 1.5.5-5, and `jackson-jaxrs-base`, `jackson-jaxrs-json-provider` and 
`jackson-module-jaxb-annotations` 2.9.10 to 2.12.6 (`dependency:list 
-DincludeScope=test` with and without them). The whole 
`seatunnel-engine-server` suite still passes with them (730 tests, 0 failures; 
dev: 729, 0 failures), so this is only a question of whether maintainers want 
connector internals in the engine tests.
   2. `if (context != null)` in `restoreCompletedSnapshotSplit` can go: the 
constructor already calls `context.getSourceConfig()`.
   3. No checks are reported on the head commit. Enabling GitHub Actions on 
your fork would let the Build workflow run here.
   4. Open #13240 also changes the end of `SnapshotSplitAssigner.addSplits` 
(adds `publishProgress()`), so whichever lands second needs a small rebase.
   


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