Skip to content

Add stop method to TransportProviderAdmin#944

Merged
vmaheshw merged 1 commit intolinkedin:masterfrom
vmaheshw:vmaheshw/AddStopToTP
Jun 13, 2023
Merged

Add stop method to TransportProviderAdmin#944
vmaheshw merged 1 commit intolinkedin:masterfrom
vmaheshw:vmaheshw/AddStopToTP

Conversation

@vmaheshw
Copy link
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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