-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
make use of incoming Message's replyTopic
header if needed
#2904
make use of incoming Message's replyTopic
header if needed
#2904
Conversation
714c6ed
to
be3b805
Compare
...rc/main/java/org/springframework/kafka/listener/adapter/MessagingMessageListenerAdapter.java
Show resolved
Hide resolved
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.
thank you very much for so thoughtful contributions!
Would you mind double checking if PR build failure is related somehow to your changes: https://github.com/spring-projects/spring-kafka/actions/runs/6903843623/job/18783345784?pr=2904 ?
be3b805
to
f7da425
Compare
Can you, please, stop squashing your commits? Thanks for understanding! |
replyTopic
header if needed
...rc/main/java/org/springframework/kafka/listener/adapter/MessagingMessageListenerAdapter.java
Show resolved
Hide resolved
...rc/main/java/org/springframework/kafka/listener/adapter/MessagingMessageListenerAdapter.java
Show resolved
Hide resolved
a little bit late to read this comment. yeah, for sure. I totally understand. Will keep that in mind from now on. thanks. |
as usual, unit testing cases protected. Fixed the bug and now they would not complain. |
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.
Looks like this fix introduces some new functionality.
Any chances to have ti covered with unit test, please?
...rc/main/java/org/springframework/kafka/listener/adapter/MessagingMessageListenerAdapter.java
Show resolved
Hide resolved
New unit testing cases are desperately needed. My current concern is to
confirm my PR validity. Will add testing cases soon.
…On Fri, Nov 17, 2023, 1:56 p.m. Artem Bilan ***@***.***> wrote:
***@***.**** requested changes on this pull request.
Looks like this fix introduces some new functionality.
Any chances to have ti covered with unit test, please?
------------------------------
In
spring-kafka/src/main/java/org/springframework/kafka/listener/adapter/MessagingMessageListenerAdapter.java
<#2904 (comment)>
:
> @@ -482,14 +489,14 @@ else if (result instanceof Message) {
iterableOfMessages = iterator.next() instanceof Message;
Let's leave it wit this assumption for now!
We can look into that later.
Let's concentrate on missed headers logic in this your PR!
—
Reply to this email directly, view it on GitHub
<#2904 (review)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AB6UYASBEMEO4VPXER7A4F3YE6XOPAVCNFSM6AAAAAA7PHPRSWVHI2DSMVQWIX3LMV43YUDVNRWFEZLROVSXG5CSMV3GSZLXHMYTOMZXGY4DQMRVGI>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
During unit testing case development, I found this PR is invalid. For the following code snippet:
so if no reply topic is specified, the above default expression will ensure we got the value from |
as per reference doc: https://docs.spring.io/spring-kafka/docs/current/reference/html/#reply-message:
Seems we overlooked the incoming
KafkaHeaders.REPLY_TOPIC
logic.