Skip to content
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

Gh-2924 Fix send null payload with KafkaTemplate#send(Message), and … #2925

Merged
merged 2 commits into from
Dec 8, 2023

Conversation

pswrdf
Copy link
Contributor

@pswrdf pswrdf commented Dec 7, 2023

…JsonMessageConverter

fixes: #2924

@pivotal-cla
Copy link

@pswrdf Please sign the Contributor License Agreement!

Click here to manually synchronize the status of this Pull Request.

See the FAQ for frequently asked questions.

@pivotal-cla
Copy link

@pswrdf Thank you for signing the Contributor License Agreement!

@sobychacko
Copy link
Contributor

@pswrdf Thanks for the PR! Can you add a unit test to verify the changes? Or point to an existing test where this code is exercised.

Copy link
Member

@artembilan artembilan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi @pswrdf !

Thank you for contribution.
Please, make yourself familiar with commit message rules we try to follow: https://cbea.ms/git-commit/.

I don't say that you need to change anything right now if you don't want, but just for the future to avoid comments from me like this 😉

@sobychacko ,

This fix is supposed to be back-ported to 3.0.x.
When you merge this, please, consider to include Fixes: gh-2924 like into commit message.
This way Backport Bot GHA workflow will create a respective back-port issue for for current 3.0.x milestone. However don't merge yet, please, I'm working in that branch right now to migrate it into GHA.

Copy link
Member

@artembilan artembilan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

So, now CI/CD infra is set up for 3.0.x.
Therefore we are good to cherry-pick after merging this.

  1. Add some unit test, please. See BatchListenerConversionTests where we use one of those JsonMessageConverter impls.
  2. Add your name to the @author list of all the affected classes.
  3. Add also Fixes: gh-2924 into next commit message as I asked before.
  4. Add **Cherry-pick to 3.0.x** into the next commit message.

Thanks

…d(Message) and JsonMessageConverter

 Fixes: spring-projects#2924

 Add posibility to send KafkaNull message payload with JsonMessageConverter.
…d(Message) and JsonMessageConverter

Fixes: spring-projects#2924

 Add posibility to send KafkaNull message payload with JsonMessageConverter.
 **Cherry-pick to 3.0.x**
@pswrdf
Copy link
Contributor Author

pswrdf commented Dec 7, 2023

I think it's done.

Would I squash commits? It needs to change email also.

@sobychacko
Copy link
Contributor

No, you shouldn't squash the commits once a PR is issued. We will squash it upon merging. Thanks!

@sobychacko sobychacko merged commit 2306ac5 into spring-projects:main Dec 8, 2023
2 checks passed
@artembilan
Copy link
Member

... and cherry-picked to 3.0.x

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Unable to send null payload with KafkaTemplate#send(Message)
4 participants