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

Default for spring.kafka.listener.missing-topics-fatal is no longer aligned with Spring Kafka's default #20917

Conversation

dhirenmathur
Copy link

Related to:
ISSUE -20828

Issue Explanation:
Spring-Kafka configuration change - Starting with version 2.3.4, the missingTopicsFatal container property is false by default. (Previously) When this is true, the application fails to start if the broker is down; many users were affected by this change;
After this S-K config change, default for spring.kafka.listener.missing-topics-fatal is no longer aligned with Spring Kafka's default.

AIM:
Update the missingTopicsFatal default value to be consistent with above referenced Spring-Kafka change

This commit contains:

  • In KafkaProperties.java update missingTopicsFatal default value to false.
  • Unit test to assert that new default is consistent

@spring-projects-issues spring-projects-issues added the status: waiting-for-triage An issue we've not yet triaged label Apr 11, 2020
@snicoll snicoll self-assigned this Apr 11, 2020
@snicoll snicoll added type: bug A general bug and removed status: waiting-for-triage An issue we've not yet triaged labels Apr 11, 2020
@snicoll snicoll added this to the 2.2.7 milestone Apr 11, 2020
@snicoll snicoll changed the title Update missingTopicsFatal Kafka property default value Default for spring.kafka.listener.missing-topics-fatal is no longer aligned with Spring Kafka's default Apr 11, 2020
snicoll pushed a commit that referenced this pull request Apr 11, 2020
@snicoll snicoll closed this in 080c20b Apr 11, 2020
@snicoll
Copy link
Member

snicoll commented Apr 11, 2020

@dhirenmathur thank you for making your first contribution to Spring Boot. Well done writing a test for testing the default, although we already had one. It is interesting we had the same chain of thoughts! Turns out those two tests are identical and wrong since they assert the outcome of the auto-configuration rather than the actual default in Spring Kafka.

I've moved that test where it belongs now. Thanks again!

@dhirenmathur
Copy link
Author

Thanks @snicoll , don't know how I missed the existing test 😅Thanks for the feedback.
I'm Glad to be contributing to something I use daily at work 👍

So now that I have successfully dipped my toes in the water, do you have any other unassigned small issues you can recommend me to try out? Also, are there any channels where I can gain more knowledge about the project workflow?

@snicoll
Copy link
Member

snicoll commented Apr 11, 2020

There is contributing page and we have labelled issues for things we believe is suitable to new contributors. However, anything that's triaged and unassigned is fair game. My recommendation is to pick something you care or you use yourself.

If you have more questions, please join us on Gitter

@dhirenmathur dhirenmathur deleted the 20828_kafkaProp_missingTopicFatal_update_default branch April 13, 2020 16:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: bug A general bug
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants