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

   Thanks @SEZ9, confirming the four points in #13389:
   
   1. **Fixture location**: The restore cases extend 
`IncrementalSourceEnumeratorTest` in `connector-cdc-base`, using 
[`InMemoryCdcRestoreTestFixture`](https://github.com/apache/seatunnel/blob/517ef2eec55dd3f0a57468514ef844e03cdbd800/seatunnel-connectors-v2/connector-cdc/connector-cdc-base/src/test/java/org/apache/seatunnel/connectors/cdc/base/source/enumerator/InMemoryCdcRestoreTestFixture.java#L220)
 in the same package to serialize both reader and enumerator state. The 
engine-level case is in 
[`SavePointTest`](https://github.com/apache/seatunnel/blob/517ef2eec55dd3f0a57468514ef844e03cdbd800/seatunnel-engine/seatunnel-engine-server/src/test/java/org/apache/seatunnel/engine/server/checkpoint/SavePointTest.java#L252).
   2. **Coverage**: In the [restore 
cases](https://github.com/apache/seatunnel/blob/517ef2eec55dd3f0a57468514ef844e03cdbd800/seatunnel-connectors-v2/connector-cdc/connector-cdc-base/src/test/java/org/apache/seatunnel/connectors/cdc/base/source/enumerator/IncrementalSourceEnumeratorTest.java#L161),
 a valid restored tail split resumes at the min `LOW` watermark (`95`) with 
exactly-once off (parallelism 2), and at the min `HIGH` watermark (`108`) with 
exactly-once on (parallelism 1 and 2). Separate cases check that assignment 
waits for an outstanding report, and that malformed state missing a watermark 
or required offset fails with the table and split IDs.
   3. **Waiting-reader reassignment**: In the [reassignment 
test](https://github.com/apache/seatunnel/blob/517ef2eec55dd3f0a57468514ef844e03cdbd800/seatunnel-connectors-v2/connector-cdc/connector-cdc-base/src/test/java/org/apache/seatunnel/connectors/cdc/base/source/enumerator/IncrementalSourceEnumeratorTest.java#L321),
 the reader requests a split first; when an unfinished split comes back via 
`addSplitsBack`, the waiting reader gets it without sending a second request.
   4. **Repro & CI**: The [tests-only 
commit](https://github.com/yraivo/seatunnel/commit/8a0b19f870d461bac72b6ad8e57bcb4210337b09)
 reproduces the original NPE, and the same cases pass on the [fix 
commit](https://github.com/yraivo/seatunnel/commit/2db47602e5f3b9ed3f9405810843eccdff7f4fd3)
 ([red/green 
run](https://github.com/apache/seatunnel/pull/13389#issuecomment-7066351201)). 
At `517ef2eec55d`, [Linux JDK 17 
CI](https://github.com/yraivo/seatunnel/actions/runs/45179527683/job/137713073879)
 passes all 13 enumerator tests and 6 savepoint tests (1 skipped).


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