zephyr45 commented on PR #13060: URL: https://github.com/apache/seatunnel/pull/13060#issuecomment-7260096077
@nzw921rx On your Nov 16 question about benefit and risk: I only answered the multiSink part before, so here is the rest. What the PR changes in production code (tests and docs not counted): - `seatunnel-api`: one `default` method, `getStableSubtaskIndex()`, which returns `getIndexOfSubtask()`. Only Kafka calls it, so other sinks behave as before. - multiSink: no change. `cf52689e` removed the `SinkContextProxy` change. - Flink: no change. Spark: a context class that returns the partition ID from the new method only; `getIndexOfSubtask()` still returns the task ID. - Kafka: `KafkaSinkWriter`, `KafkaTransactionSender` and `KafkaSink`. Restoring from the old `<prefix>-<checkpoint>` IDs is covered by unit tests. Benefit: with EXACTLY_ONCE and parallelism > 1, writers no longer share transactional IDs, so they stop fencing each other (#13044). A Spark task retry now reuses its writer's transactional IDs, so it can fence the earlier attempt. Limiting parallelism to 1 would remove a supported setup and would leave the Spark retry case unfixed. Your change request from Nov 17 is still open. Could you re-review `4e94f157`, or tell me what you would still want changed? It is `8382fbed` merged with `dev`, with no change to the PR's own code, and its `Build` check is green. -- 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]
