KAFKA-15216: InternalSinkRecord::newRecord should not ignore new headers#14044
Conversation
|
The change from Can we reduce the scope here to use fields instead of methods wherever possible, but without altering the visibility of any parts of our public API? |
Ah, I did wonder about this but wasn't entirely certain, thanks for the clarification!
I considered the binary compatibility impact of this change directly on plugins themselves (and there shouldn't be any), but good point on the backward compatibility restriction that would be imposed on any potential external subclasses of
Done |
C0urante
left a comment
There was a problem hiding this comment.
Thanks Yash! LGTM, will merge pending CI build.
…ers (#14044) Reviewers: Chris Egerton <chrise@aiven.io>
…ers (#14044) Reviewers: Chris Egerton <chrise@aiven.io>
…ers (#14044) Reviewers: Chris Egerton <chrise@aiven.io>
…ers (apache#14044) Reviewers: Chris Egerton <chrise@aiven.io>
…ers (apache#14044) Reviewers: Chris Egerton <chrise@aiven.io> (cherry picked from commit fd47597)
…ers (apache#14044) Reviewers: Chris Egerton <chrise@aiven.io>
…ers (apache#14044) Reviewers: Chris Egerton <chrise@aiven.io>
kafka/connect/runtime/src/main/java/org/apache/kafka/connect/runtime/InternalSinkRecord.java
Lines 50 to 56 in a1f6ab6
The headers argument passed to the
InternalSinkRecordconstructor is the instance field via the accessorheaders()method instead of thenewRecordmethod'sheadersargument value (originally discovered here.).Committer Checklist (excluded from commit message)