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

Persistent Kafka AdminClient for health checks #12200

Closed
wants to merge 2 commits into from

Conversation

garyrussell
Copy link
Contributor

Use a single AdminClient in KafkaHealthIndicator instead of opening a new connection
each time.

Also fixes #12198

If the replication factor can't be determined (older broker), don't perform the replication
factor health check.

@spring-projects-issues spring-projects-issues added the status: waiting-for-triage An issue we've not yet triaged label Feb 23, 2018
@philwebb philwebb added type: enhancement A general enhancement priority: normal and removed status: waiting-for-triage An issue we've not yet triaged labels Feb 23, 2018
@philwebb philwebb added this to the 2.0.0 milestone Feb 23, 2018
@snicoll snicoll self-assigned this Feb 24, 2018
@garyrussell
Copy link
Contributor Author

Also see #11515 (comment)

Use a single `AdminClient` in `KafkaHealthIndicator` instead of opening a new connection
each time.

Also fixes spring-projects#12198

If the replication factor can't be determined (older broker), don't perform the replication
factor health check.
snicoll pushed a commit to snicoll/spring-boot that referenced this pull request Feb 26, 2018
If the replication factor can't be determined (older broker), don't
perform the replication factor health check.

This commit also uses a single `AdminClient` in `KafkaHealthIndicator`
instead of opening a new connection each time.

See spring-projectsgh-12200
snicoll added a commit to snicoll/spring-boot that referenced this pull request Feb 26, 2018
snicoll pushed a commit to snicoll/spring-boot that referenced this pull request Feb 26, 2018
This commit uses a single `AdminClient` in `KafkaHealthIndicator` instead
of opening a new connection each time.

See spring-projectsgh-12200
snicoll added a commit to snicoll/spring-boot that referenced this pull request Feb 26, 2018
@snicoll
Copy link
Member

snicoll commented Feb 26, 2018

Thanks for the PR. We've been looking at this issue most of today and came to the conclusion it isn't mature enough for us to provide a health indicator out of the box. We'll revert it and reconsider this feature for a latter release.

@snicoll snicoll closed this Feb 26, 2018
@snicoll snicoll removed their assignment Feb 26, 2018
@snicoll snicoll added status: declined A suggestion or change that we don't feel we should currently apply and removed priority: normal type: enhancement A general enhancement labels Feb 26, 2018
@snicoll snicoll removed this from the 2.0.0 milestone Feb 26, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
status: declined A suggestion or change that we don't feel we should currently apply
Projects
None yet
Development

Successfully merging this pull request may close these issues.

KafkaHealthIndicator and older brokers
4 participants