You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jira@kafka.apache.org by "Chris Egerton (Jira)" <ji...@apache.org> on 2020/11/13 18:33:00 UTC
[jira] [Created] (KAFKA-10720) Add note to Transformation docs to
avoid mutating records or their members
Chris Egerton created KAFKA-10720:
-------------------------------------
Summary: Add note to Transformation docs to avoid mutating records or their members
Key: KAFKA-10720
URL: https://issues.apache.org/jira/browse/KAFKA-10720
Project: Kafka
Issue Type: Improvement
Components: KafkaConnect
Reporter: Chris Egerton
The public documentation for the {{Transformation}} interface does not mention whether an SMT should or should not mutate records or their members (such as their values or headers), but there's some logic in the Connect framework that relies on SMTs not doing this, such as the invocation of `SourceTask::commitRecord` with a pre-transformation record in some cases.
We should consider adding a note about not modifying records or their members to the public-facing documentation for the {{Transformation}} interface.
--
This message was sent by Atlassian Jira
(v8.3.4#803005)