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

Drain handlers when unloading built-in plugin #4820

Merged
merged 4 commits into from
Jan 20, 2024

Conversation

azdagron
Copy link
Member

This change updates the built-in plugin implementation to wait for all RPC handlers to drain when unloading the plugin.

This is not only important for graceful shut down of SPIRE but also allows plugin tests to deterministically assert properties after invoking streaming RPCs.

This change updates the built-in plugin implementation to wait for all
RPC handlers to drain when unloading the plugin.

This is not only important for graceful shut down of SPIRE but also
allows plugin tests to deterministically assert properties after
invoking streaming RPCs.

Signed-off-by: Andrew Harding <azdagron@gmail.com>
MarcosDY
MarcosDY previously approved these changes Jan 19, 2024
Signed-off-by: Andrew Harding <azdagron@gmail.com>
Signed-off-by: Andrew Harding <azdagron@gmail.com>
@rturner3 rturner3 merged commit 113a666 into spiffe:main Jan 20, 2024
32 checks passed
@azdagron azdagron added this to the 1.9.0 milestone Jan 21, 2024
faisal-memon pushed a commit to faisal-memon/spire that referenced this pull request Feb 7, 2024
* Drain handlers when unloading built-in plugin

This change updates the built-in plugin implementation to wait for all
RPC handlers to drain when unloading the plugin.

This is not only important for graceful shut down of SPIRE but also
allows plugin tests to deterministically assert properties after
invoking streaming RPCs.

Signed-off-by: Andrew Harding <azdagron@gmail.com>
Signed-off-by: Faisal Memon <fymemon@yahoo.com>
sriyer pushed a commit to spire-vault/spire that referenced this pull request Feb 23, 2024
* Drain handlers when unloading built-in plugin

This change updates the built-in plugin implementation to wait for all
RPC handlers to drain when unloading the plugin.

This is not only important for graceful shut down of SPIRE but also
allows plugin tests to deterministically assert properties after
invoking streaming RPCs.

Signed-off-by: Andrew Harding <azdagron@gmail.com>
rushi47 pushed a commit to rushi47/spire that referenced this pull request Apr 11, 2024
* Drain handlers when unloading built-in plugin

This change updates the built-in plugin implementation to wait for all
RPC handlers to drain when unloading the plugin.

This is not only important for graceful shut down of SPIRE but also
allows plugin tests to deterministically assert properties after
invoking streaming RPCs.

Signed-off-by: Andrew Harding <azdagron@gmail.com>
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