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

Change session close logic to always attempt to close a lock session even if releasing the lock fails #126

Merged
merged 1 commit into from
Oct 28, 2021

Conversation

jswarren4
Copy link
Contributor

Closing the session will prevent the lease that the lock key is bound to from being renewed indefinitely.

if v3l.session != nil {
serr := v3l.session.Close()
if err == nil {
err = serr
Copy link
Contributor

Choose a reason for hiding this comment

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

Since this is a new possible error, I looked at the callers, but only see logging of the error and no action/logic. This should be safe change without other new tests then.

@jswarren4 jswarren4 merged commit e8aab7a into master Oct 28, 2021
@kramvan1 kramvan1 deleted the closesession branch October 28, 2021 15:44
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