-
Notifications
You must be signed in to change notification settings - Fork 14k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
KAFKA-16339: [3/4 KStream#transformValues] Remove Deprecated "transformer" methods and classes #17266
KAFKA-16339: [3/4 KStream#transformValues] Remove Deprecated "transformer" methods and classes #17266
Conversation
@fonsdant -- any updates? |
@mjsax, yes! I must be pushing some commits tomorrow. I am checking if there is need to refactor the tests. |
Signed-off-by: Joao Pedro Fonseca Dantas <[email protected]>
Signed-off-by: Joao Pedro Fonseca Dantas <[email protected]>
Signed-off-by: Joao Pedro Fonseca Dantas <[email protected]>
03959ad
to
329d2ae
Compare
I will push the docs update too in a while. |
Signed-off-by: Joao Pedro Fonseca Dantas <[email protected]>
Signed-off-by: Joao Pedro Fonseca Dantas <[email protected]>
Signed-off-by: Joao Pedro Fonseca Dantas <[email protected]>
Signed-off-by: Joao Pedro Fonseca Dantas <[email protected]>
Signed-off-by: Joao Pedro Fonseca Dantas <[email protected]>
Signed-off-by: Joao Pedro Fonseca Dantas <[email protected]>
Signed-off-by: Joao Pedro Fonseca Dantas <[email protected]>
Signed-off-by: Joao Pedro Fonseca Dantas <[email protected]>
Signed-off-by: Joao Pedro Fonseca Dantas <[email protected]>
Signed-off-by: Joao Pedro Fonseca Dantas <[email protected]>
f1cb8f2
to
712f211
Compare
streams/src/main/java/org/apache/kafka/streams/kstream/ValueTransformer.java
Show resolved
Hide resolved
streams/src/main/java/org/apache/kafka/streams/kstream/ValueTransformerWithKey.java
Show resolved
Hide resolved
streams/src/main/java/org/apache/kafka/streams/kstream/internals/KStreamImpl.java
Outdated
Show resolved
Hide resolved
@@ -54,92 +44,6 @@ public class KStreamTransformValuesTest { | |||
private final Properties props = StreamsTestUtils.getStreamsConfig(Serdes.Integer(), Serdes.Integer()); | |||
private InternalProcessorContext context = mock(InternalProcessorContext.class); | |||
|
|||
@SuppressWarnings("deprecation") // Old PAPI. Needs to be migrated. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do we have a corresponding test for process(FixedKeyProcessor)
-- the comment says "needs to be migrated -- did this migration already happen?
assertArrayEquals(expected, supplier.theCapturedProcessor().processed().toArray()); | ||
} | ||
|
||
@SuppressWarnings("deprecation") // Old PAPI. Needs to be migrated. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
as above
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think they both are covered by org.apache.kafka.streams.kstream.internals.KStreamImplTest#shouldProcessValues
, since processValues
just has FixedKeyProcessorSupplier
as processor supplier.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks. SG.
But I am wondering if we can remove KStreamTransformValuesTest.java
completely for this case?
What also implies that we can remove KStreamTransformValues.java
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@fonsdant Did you miss this comment?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@mjsax, oh, sorry! Yes, I have missed it. Thanks!
Makes sense to me too! I'm going to push the removal.
Following this approach, we could remove KStreamFlatTransformTest
and KStreamFlatTransform
too, couldn't we?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Following this approach, we could remove KStreamFlatTransformTest and KStreamFlatTransform too, couldn't we?
Maybe in PR [4/4], but not in this PR, right?
Made a pass. Overall LGTM. A few comments:
Thx. PR [4/4] should remove |
streams/src/main/java/org/apache/kafka/streams/kstream/ValueTransformer.java
Outdated
Show resolved
Hide resolved
streams/src/main/java/org/apache/kafka/streams/kstream/ValueTransformerWithKey.java
Outdated
Show resolved
Hide resolved
Signed-off-by: Joao Pedro Fonseca Dantas <[email protected]>
Signed-off-by: Joao Pedro Fonseca Dantas <[email protected]>
803a408
to
a30dad1
Compare
Signed-off-by: Joao Pedro Fonseca Dantas <[email protected]>
Signed-off-by: Joao Pedro Fonseca Dantas <[email protected]>
Thanks for the PR. Merged to |
…rmer" methods and classes (apache#17266) Reviewers: Matthias J. Sax <[email protected]>
No description provided.