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

CSI: don't block client shutdown for node unmount #12457

Merged
merged 1 commit into from
Apr 5, 2022

Commits on Apr 5, 2022

  1. CSI: don't block client shutdown for node unmount

    When we unmount a volume we need to be able to recover from cases
    where the plugin has been shutdown before the allocation that needs
    it, so in #11892 we blocked shutting down the alloc runner hook. But
    this blocks client shutdown if we're in the middle of unmounting. The
    client won't be able to communicate with the plugin or send the
    unpublish RPC anyways, so we should cancel the context and assume that
    we'll resume the unmounting process when the client restarts.
    
    For `-dev` mode we don't send the graceful `Shutdown()` method and
    instead destroy all the allocations. In this case, we'll never be able
    to communicate with the plugin but also never close the context we
    need to prevent the hook from blocking. To fix this, move the retries
    into their own goroutine that doesn't block the main `Postrun`.
    tgross committed Apr 5, 2022
    Configuration menu
    Copy the full SHA
    650757a View commit details
    Browse the repository at this point in the history