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

fix: improve lease log level and include key #2163

Closed
wants to merge 2 commits into from
Closed

Conversation

matt2e
Copy link
Collaborator

@matt2e matt2e commented Jul 25, 2024

fixes #2159
fixes #2160

  • When module lease heartbeats stopped, it always logged a warning, even if the lease was released properly.
  • All module lease logs now include the lease key for easy log lookups with controller lease logs
  • Previously, lease.err was not set properly because the struct was not referenced via a pointer so the state was not shared.
    • I added state: *leaseState to get around this (rather than making the lease handle a pointer) because it also made clear what the mutex is protecting. Not a strong opinion though, happy to do the other approach if people feel that it's cleaner.

@matt2e matt2e requested a review from alecthomas as a code owner July 25, 2024 01:50
@matt2e matt2e requested review from a team and deniseli and removed request for a team July 25, 2024 01:50
@ftl-robot ftl-robot mentioned this pull request Jul 25, 2024
@matt2e
Copy link
Collaborator Author

matt2e commented Jul 25, 2024

Accidentally included this change in this PR #2165 🤦‍♂️🤦‍♂️🤦‍♂️

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
1 participant