KAFKA-9533: ValueTransform forwards null values#8108
KAFKA-9533: ValueTransform forwards null values#8108bbejeck merged 5 commits intoapache:trunkfrom mviamari:KAFKA-9533
null values#8108Conversation
|
Ok to test. |
|
@bbejeck Is there anything I should do about these failures? I don't think they are related to my change, but that could be my unfamiliarity with the codebase. Also, should I expect that fixes for these failed tests will need to be merged before this PR can be merged? |
|
Java 11 failed with Java 8 failed with @mviamari, the test failures are unrelated, but we need a green build for merging. The |
|
Sounds good. Thanks for clarifying. |
|
retest this please |
|
ping @cadonna for another look before merging |
* Fix for KStreamTransformValues to filter `null` values returned from ValueTransformer * Tests for `shouldNotForwardNullTransformValuesWithValueTransformerWithKey()`.
* Remove integration test KStreamTransformIntegrationTest#esWithValueTransformerWithKey * Add unit test KStreamTransformValuesTest#shouldEmitNoRecordIfTransformReturnsNull
|
@cadonna Updated. I completely missed those unit tests the first time around, thanks for pointing that out. |
|
Retest this please. |
1 similar comment
|
Retest this please. |
…sNull to use EasyMock instead of TestDriver.
|
previous test results gone. retest this please. |
…TransformReturnsNull
|
Retest this please. |
1 similar comment
|
Retest this please. |
|
Java 8 failed with Java 11 passed. |
|
Retest this please. |
|
Ok to test |
|
Retest this please. |
1 similar comment
|
Retest this please. |
|
Merged #8108 into trunk |
|
Thank you for the fix, @mviamari ! |
Fixes a bug where KStream#transformValues would forward null values from the provided ValueTransform#transform operation. A test was added for verification KStreamTransformValuesTest#shouldEmitNoRecordIfTransformReturnsNull. A parallel test for non-key ValueTransformer was not added, as they share the same code path. Reviewers: Bruno Cadonna <bruno@confluent.io>, Bill Bejeck <bbejeck@gmail.com>
Fixes a bug where KStream#transformValues would forward null values from the provided ValueTransform#transform operation. A test was added for verification KStreamTransformValuesTest#shouldEmitNoRecordIfTransformReturnsNull. A parallel test for non-key ValueTransformer was not added, as they share the same code path. Reviewers: Bruno Cadonna <bruno@confluent.io>, Bill Bejeck <bbejeck@gmail.com>
Fixes a bug where KStream#transformValues would forward null values from the provided ValueTransform#transform operation. A test was added for verification KStreamTransformValuesTest#shouldEmitNoRecordIfTransformReturnsNull. A parallel test for non-key ValueTransformer was not added, as they share the same code path. Reviewers: Bruno Cadonna <bruno@confluent.io>, Bill Bejeck <bbejeck@gmail.com>
Fixes a bug where KStream#transformValues would forward null values from the provided ValueTransform#transform operation. A test was added for verification KStreamTransformValuesTest#shouldEmitNoRecordIfTransformReturnsNull. A parallel test for non-key ValueTransformer was not added, as they share the same code path. Reviewers: Bruno Cadonna <bruno@confluent.io>, Bill Bejeck <bbejeck@gmail.com>
|
cherry-picked to branches 2.5, 2.4, 2.3 and 2.2 |
* apache-github/trunk: (23 commits) KAFKA-9530; Fix flaky test `testDescribeGroupWithShortInitializationTimeout` (apache#8154) HOTFIX: fix NPE in Kafka Streams IQ (apache#8158) MINOR: set scala version automatically based on gradle.properties KAFKA-9577; SaslClientAuthenticator incorrectly negotiates SASL_HANDSHAKE version (apache#8142) KAFKA-9441: Add internal TransactionManager (apache#8105) MINOR: Document endpoints for connector topic tracking (KIP-558) MINOR: Standby task commit needed when offsets updated (apache#8146) KAFKA-9206; Throw KafkaException on CORRUPT_MESSAGE error in Fetch response (apache#8111) MINOR: Remove unwanted regexReplace on tests/kafkatest/__init__.py KAFKA-9586: Fix errored json filename in ops documentation KAFKA-9575: Mention ZooKeeper 3.5.7 upgrade KAFKA-9481: Graceful handling TaskMigrated and TaskCorrupted (apache#8058) HOTFIX: don't try to remove uninitialized changelogs from assignment & don't prematurely mark task closed (apache#8140) MINOR: Fix javadoc at org.apache.kafka.clients.producer.KafkaProducer.InterceptorCallback#onCompletion (apache#7337) MINOR: Improve EOS example exception handling (apache#8052) MINOR: Fix a number of warnings in clients test (apache#8073) MINOR: Update shell scripts to support z/OS system (apache#7913) MINOR: Wording fix in Streams DSL docs (apache#5692) MINOR: Add missing @test annotation to MetadataTest#testMetadataMerge (apache#8141) KAFKA-9533: ValueTransform forwards `null` values (apache#8108) ...
|
Hey @mviamari , It turns out that this fix causes more problems than it fixes :) I've made a comment on the ticket explaining the situation. I'm copying it here for visibility:
|
This reverts commit a41d3d8.
|
reverted cherry-picks to 2.5, 2.4, 2.3, and 2.2 |
Fixes a bug where KStream#transformValues would forward null values from the provided ValueTransform#transform operation. A test was added for verification KStreamTransformValuesTest#shouldEmitNoRecordIfTransformReturnsNull. A parallel test for non-key ValueTransformer was not added, as they share the same code path. Reviewers: Bruno Cadonna <bruno@confluent.io>, Bill Bejeck <bbejeck@gmail.com>
This reverts commit a41d3d8.
Fixes a bug where
KStream#transformValueswould forward null values from the providedValueTransform#transformoperation.A test was added for verification
KStreamTransformValuesTest#shouldEmitNoRecordIfTransformReturnsNull. A parallel test for non-key ValueTransformer was not added, as they share the same code path.Committer Checklist (excluded from commit message)