SEZ9 commented on PR #10502: URL: https://github.com/apache/seatunnel/pull/10502#issuecomment-7295455202
Thanks for the work on this. The latest follow-up on this thread was made at unchanged head `e1b0b193312646fef1029f38c728e5f3c3edea25`, so the earlier review points still appear to be open. That follow-up independently confirmed three of them, and I'd take those first. **Confirmed in the follow-up** - **F6 (Spark task-side cleanup):** `DirtyDataAwareSinkWriter.abortPrepare` only forwards to the delegate, and the collector is closed only through `close`. On Spark 3.3, `SeaTunnelSparkDataWriter.abort` does not close that writer, its `close` is empty, and `commit` is the success-only close. A failed task, including the `fail_on_threshold` failure this feature raises itself, therefore never closes the collector or validator. This matters for any custom collector that owns resources, whether or not the standard `log` collector opens a connection. - **F7 (Spark driver-side cleanup):** both Spark starter `SinkExecuteProcessor` paths initialize the driver collector and call `save()`. Cleanup sits only in a `RuntimeException | Error` catch, so the checked exceptions from `save()` are missed and nothing closes the collector on success. - **F2 (diagnostics bypass masking):** `LogDirtyRecordCollector` writes `errorMessage` and exception text independently of `summarizeRecord`. Row values can therefore reach the logs even with `log_payload = false` and `mask_fields` set. Asks for these three: 1. Add one idempotent cleanup path at the wrapper/starter ownership boundary, reached on abort and failure as well as success. A payload-logging tweak will not fix this. 2. Add regression tests that observe the collector and validator being closed on the failure path and on the success path. 3. Bring `errorMessage` and the stack trace under the payload/mask controls. Otherwise, gate them explicitly and stop presenting those settings as sanitizing validator diagnostics. **Still open, not touched by the follow-up** - **F3:** validate the masking configuration, so a misspelled option key or a mask name that matches no column fails fast instead of being ignored and logging full payloads unmasked. - **F4:** the base wrapper overrides the deprecated `SinkWriter.applySchemaChange`. On Flink, a delegate without schema-evolution support must still be seen as having dropped the event, not handled it. - **F5:** read the `log` collector options through the declared `Option` constants rather than raw `Config` getters, keep a single source of defaults, and reject invalid values. - **F1:** document the `DirtyRecordCollector` SPI contract, and either document or remove the hooks the framework never calls. - **F8:** state in the docs what happens when `dirty.collector` / `dirty.validator` are set on Zeta, and update the PR description so it no longer describes Zeta and `counting` behaviour this head does not contain. The earlier fixture-admission and positional-mask repairs remain valid, so nothing more is needed there. When you push, could you reply with a short per-item note (F1–F8) saying how each was addressed or why you'd prefer to leave it? That will make the next pass quick. <!-- streview-comment:2755 --> -- 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]
