rmfrall commented on PR #13510:
URL: https://github.com/apache/seatunnel/pull/13510#issuecomment-7241006429
@DanielLeens Thanks a lot for the thorough review 鈥?and for checking the
merge base, the call paths and `git diff --check` so carefully.
Both findings are valid, and I've pushed a commit that addresses them:
1. **Persisted checkpoint types.** You're right that
`CheckpointCoordinator#completePendingCheckpoint` only stores checkpoints whose
type satisfies `notCompletedCheckpoint()`, so `COMPLETED_POINT_TYPE` never
reaches storage. The test is now a `@ParameterizedTest` running for
`CHECKPOINT_TYPE` and `SAVEPOINT_TYPE` 鈥?the automatic periodic type and the
user-triggered type 鈥?and asserts that the type survives the round trip.
2. **Source progress and subtask distinctness.**
- The subtask splits now carry distinct remaining row counts (10 and 20)
and each count is asserted per subtask after restore, since `FakeSourceSplit`
equality ignores `rowNum` while the reader uses it to decide how many rows are
still to be emitted.
- The coordinator-side splits are asserted by split id with their
distinct counts too.
- Each sink subtask now has its own transaction (distinct
`transactionId`, `uuidPrefix`, `transactionDir` and moved files), so two
swapped subtask payloads can no longer pass the assertions, and the partition
metadata is asserted both in the per-subtask `FileSinkState` and in the
aggregated commit info.
Verified locally against the dev merge base `ee0fb0d7`:
`CheckpointSerializeTest` passes for both parametrized instances (2/2), the
package-level regression `Checkpoint*Test` is 48/48 with 0 failures/errors, and
`spotless:check` passes.
One note on CI: the Build check still reports action required 鈥?as far as I
can tell the workflow approval gate hasn't been triggered for this PR yet, so
the tests have not run on CI at the current head. Happy to rebase or adjust
anything else you spot.
--
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]