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

Add stop method to TransportProviderAdmin #944

Merged
merged 1 commit into from
Jun 13, 2023

Conversation

vmaheshw
Copy link
Collaborator

Some TransportProviderAdmins create AdminClient for Kafka and the lifecycle of the object is until the coordinator stops. Without a proper stop call for TransportProviderAdmin, the AdminClient loses connection to the other entities and result in failure for other unit-tests.

Copy link
Collaborator

@jzakaryan jzakaryan left a comment

Choose a reason for hiding this comment

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

LGTM. Just curious, are you going to override the stop method for one of the "fake" transport provider admins used in tests?

@vmaheshw
Copy link
Collaborator Author

LGTM. Just curious, are you going to override the stop method for one of the "fake" transport provider admins used in tests?

This is a problem for the Kafka Transport provider admins in the test and I will see what is the best way to fix the tests. In production, we don't need it as the JVM itself gets shutdown and there is no dangling resource, but for unit-tests, the dangling resource creates problem for other unit-test.

@vmaheshw vmaheshw merged commit c317f12 into linkedin:master Jun 13, 2023
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.

3 participants