Skip to content

Conversation

Chaedie
Copy link
Contributor

@Chaedie Chaedie commented Aug 30, 2025

Related Issue: #3954

Added a warning note to the topic configuration docs about @PostConstruct timing issues.

When sending messages from Spring components, avoid using `@PostConstruct` methods
if you rely on automatic topic creation via `NewTopic` beans. `@PostConstruct` runs
before the application context is fully ready, which may cause
`UnknownTopicOrPartitionException` on clean brokers.
Copy link
Member

Choose a reason for hiding this comment

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

All good, but, please, consider to fix your change according to best practice rules we try to follow: https://asciidoctor.org/docs/asciidoc-recommended-practices/#one-sentence-per-line.

It also would be great to make the text as "personless".
Use the language which would not be like pointing to someone.
In other words try to avoid "you", "we", "they" etc.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Thanks for advice.
I revised documentation.

@artembilan artembilan merged commit f0324da into spring-projects:main Sep 3, 2025
1 check passed
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.

2 participants