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
Close method on Resolver interface #1472
Comments
Agree to add it. |
This issue has been automatically marked as stale because it has not had activity in the last 30 days. It will be closed in the next 7 days unless it is tagged (pinned, good first issue, help wanted or triaged/resolved) or other activity occurs. Thank you for your contributions. |
Agree to this. @dapr/maintainers-components-contrib |
I'm happy to implement this @mukundansundar - could you please assign me so I can track it. |
@jjcollinge please use |
/assign |
This issue has been automatically marked as stale because it has not had activity in the last 30 days. It will be closed in the next 7 days unless it is tagged (pinned, good first issue, help wanted or triaged/resolved) or other activity occurs. Thank you for your contributions. |
not-stale |
This issue has been automatically marked as stale because it has not had activity in the last 30 days. It will be closed in the next 7 days unless it is tagged (pinned, good first issue, help wanted or triaged/resolved) or other activity occurs. Thank you for your contributions. |
@berndverst We don't necessarily need to update the interface for this. It can be implemented as an optional The runtime is already checking, upon termination, if components implement |
That works. |
I think this issue can be closed. mDNS already implements the Close() method that disposes of resources. Consul doesn't, but if that's needed, IMHO that's an issue specific to the component and not about the general interface for the resolvers. So should be a separate issue... |
It was done a while ago, marked as closed and moved to 1.10 since @ItalyPaleAle suggested that might be the correct timeline for that change. |
Ask your question here
I'm not sure if there's already been discussions around this topic (I can't find any) - is there any reason we cannot add a
Close()
method to theresolver
interface to allow any components that use stateful services to unregister? This would allow Consul and mDNS to shutdown correctly without leaving orphaned services. The change would be additive (non-breaking) so was wondering if anyone else had looked into this and found a good reason not to add this?The text was updated successfully, but these errors were encountered: