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 closer to consul state #3020

Closed
wants to merge 5 commits into from

Conversation

filintod
Copy link
Contributor

@filintod filintod commented Jul 30, 2023

Description

Adds a consul closer to shutdown idle connections. Injected default transport into struct to be able to access the transport methods.

Issue reference

We strive to have all PR being opened based on an issue, where the problem or feature have been discussed prior to implementation.

Please reference the issue this PR will close: #2952

Checklist

Please make sure you've completed the relevant tasks for this PR, out of the following list:

  • Code compiles correctly
  • Created/updated tests
  • Extended the documentation / Created issue in the https://github.com/dapr/docs/ repo: dapr/docs#[issue number]

Signed-off-by: Filinto Duran <[email protected]>
@filintod filintod requested review from a team as code owners July 30, 2023 13:02
@filintod filintod changed the title Add nil closer to consul state Add closer to consul state Jul 30, 2023
Copy link
Contributor

@ItalyPaleAle ItalyPaleAle left a comment

Choose a reason for hiding this comment

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

Since this component is stateless and doesn't maintain any persistent connection, I am not sure a closer is needed.

I see the closer that was implemented is only concerned with closing potentially idle TCP sockets... Not sure there's much value in doing that. They'd be closed after a few seconds automatically anyways, and they don't really cause conflicts if the component is destroyed.

@filintod
Copy link
Contributor Author

filintod commented Aug 3, 2023

tested that indeed the time is not even in the seconds range, so would not affect restarts in any meaningful way. will close

@filintod filintod closed this Aug 3, 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.

Implement Close() on Consul state store
2 participants