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

bugfix: fix potential deadlock when task updates collide with seelog's string marshalling of tasks #2811

Merged
merged 1 commit into from
Feb 19, 2021

Conversation

sparrc
Copy link
Contributor

@sparrc sparrc commented Feb 18, 2021

to quickly summarize, our logging library (seelog) has the potential to
deadlock if a task update happens at the same time as it is trying to
unmarshal the task object into a string.

long-term we are working to replace this library, but for now we can
remove the potential to trigger this deadlock by removing the lock on
Task.String(), and remove an unecessary Debug log statement in the
AddStateChangeEvent function.

  • remove lock from Task.String
  • AddStateChangeEvent: remove log.Debugf statement

closes #2802

Description for the changelog

bugfix: fix potential deadlock when task updates collide with seelog's string marshalling of tasks

Licensing

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

angelcar
angelcar previously approved these changes Feb 18, 2021
fenxiong
fenxiong previously approved these changes Feb 18, 2021
to quickly summarize, our logging library (seelog) has the potential to
deadlock if a task update happens at the same time as it is trying to
unmarshal the task object into a string.

long-term we are working to replace this library, but for now we can
remove the potential to trigger this deadlock by removing the lock on
Task.String(), and remove an unecessary Debug log statement in the
AddStateChangeEvent function.

- remove lock from Task.String
- AddStateChangeEvent: remove log.Debugf statement
@sparrc sparrc changed the title Remove a few code spots with potential to deadlock bugfix: fix potential deadlock when task updates collide with seelog's string marshalling of tasks Feb 19, 2021
@sparrc sparrc merged commit 6cd32aa into aws:dev Feb 19, 2021
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.

5 participants