Skip to content
This repository has been archived by the owner on Dec 10, 2024. It is now read-only.

Address deadlock when attempting to avoid stack creation. #24

Merged
merged 1 commit into from
Oct 17, 2017

Conversation

jhspaybar
Copy link
Contributor

@jhspaybar jhspaybar commented Oct 15, 2017

Walking the tree eagerly could lead to deadlocks when logging happened from multiple threads because the order of appender walking was unstable. Instead, we will avoid generating a stack for LocationInfo until after the NFPatternParser has notified the LoggingContext that the logger should generate location information. It is important to note that the first log lines will not have valid LocationInfo, but will in subsequent lines.

@jhspaybar jhspaybar merged commit f571bcc into Netflix:master Oct 17, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant