-
Notifications
You must be signed in to change notification settings - Fork 1.7k
KafkaTestUtils unified consumerPros call #3938
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
Conversation
1797755 to
4104734
Compare
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.
Please, add your name to the @author list of the affected class.
Thanks
spring-kafka-test/src/main/java/org/springframework/kafka/test/utils/KafkaTestUtils.java
Show resolved
Hide resolved
7bf7ded to
36400ec
Compare
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.
Please, build the project locally and look into logs.
There are a bunch of warnings like this:
/home/runner/work/spring-kafka/spring-kafka/spring-kafka-test/src/test/java/org/springframework/kafka/test/utils/KafkaTestUtilsTests.java:58: warning: [removal] consumerProps(String,String,EmbeddedKafkaBroker) in KafkaTestUtils has been deprecated and marked for removal
Map<String, Object> consumerProps = KafkaTestUtils.consumerProps("ktuTests1", "false", broker);
I expect that new API would be used whenever it is still rely on just deprecated one.
Thanks
|
I agree, I'll migrate the usages fo the deprecated API. The |
|
I wonder whether we can make these changes in |
36400ec to
ea4f7b9
Compare
|
That is a good point, @sobychacko, I also thought about it. I think this is open to discussion. The question is do we want to provide the extended grace period, or we do not. The P.S: @artembilan I have cleaned-up all the usages of the deprecated API |
Signed-off-by: mipo256 <[email protected]>
ea4f7b9 to
9003989
Compare
|
Thank you for contribution, @mipo256 ! Please, consider to fix your Git client to add your real Mikhail Polivakha name to the |
|
Sure @artembilan. Thank you! |
Currently, the
KafkaTestUtils#consumerPropsoverloaded methods I think have a couple of problems:The group goes either the first one, or the second one, the same goes for autocommit setting
enable.auto.commitis abooleanaccording to doc, so I think accepting aStringis not type safe, since the value. Making the API more typesafe I think is generally a good idea.