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 log level for lock failed: endpoint is in the process of being removed #16773

Merged
merged 1 commit into from Jul 19, 2021

Conversation

humancalico
Copy link
Contributor

Change the log level for lock failed: endpoint is in the process of being removed from error to debug

Fixes: #16422


Please ensure your pull request adheres to the following guidelines:

  • For first time contributors, read Submitting a pull request
  • All code is covered by unit and/or runtime tests where feasible.
  • All commits contain a well written commit description including a title,
    description and a Fixes: #XXX line if the commit addresses a particular
    GitHub issue.
  • All commits are signed off. See the section Developer’s Certificate of Origin
  • Provide a title or release-note blurb suitable for the release notes.
  • Thanks for contributing!

…g removed`

Change the log level for `lock failed: endpoint is in the process of
being removed` from error to debug

Fixes: cilium#16422

Signed-off-by: Akshat Agarwal <akshat@accuknox.com>
@humancalico humancalico requested a review from a team as a code owner July 5, 2021 06:46
@maintainer-s-little-helper maintainer-s-little-helper bot added the dont-merge/needs-release-note-label The author needs to describe the release impact of these changes. label Jul 5, 2021
@@ -66,5 +66,5 @@ func (e *Endpoint) unconditionalRLock() {

// logDisconnectedMutexAction gets the logger and logs given error with context
func (e *Endpoint) logDisconnectedMutexAction(err error, context string) {
e.getLogger().WithError(err).Error(context)
e.getLogger().WithError(err).Debug(context)
Copy link
Member

Choose a reason for hiding this comment

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

Given that this is only ever called after failing rlockAlive() and the only error condition therein is ErrNotAlive = errors.New("rlock failed: endpoint is in the process of being removed"), this is the right thing to do.

@aanm aanm added needs-backport/1.10 release-note/bug This PR fixes an issue in a previous release of Cilium. labels Jul 19, 2021
@maintainer-s-little-helper maintainer-s-little-helper bot removed the dont-merge/needs-release-note-label The author needs to describe the release impact of these changes. label Jul 19, 2021
@aanm aanm merged commit 678e098 into cilium:master Jul 19, 2021
@humancalico humancalico deleted the log-level-debug branch September 9, 2021 07:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
release-note/bug This PR fixes an issue in a previous release of Cilium.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Error lock failed: endpoint is in the process of being removed should be debug
4 participants