klaren opened a new pull request #489: URL: https://github.com/apache/logging-log4j2/pull/489
[LOG4J2-2816](https://issues.apache.org/jira/browse/LOG4J2-2816) There is a "race" when constructing a `JsonTemplateLayout` that can produce invalid JSON. In the constructor of `FormatResolverContext` the `formattedTimestampBuilder` is populated with a formated, but unquoted, timestamp based on the current time. Later in `FormatResolver.resolve()` we check if the log event matches the current time and send the cached value to `jsonWriter.writeRawString()`, which can be unquoted if the layout and log event was created in the same millisecond. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: [email protected]
