cloudwatch-logback-appender icon indicating copy to clipboard operation
cloudwatch-logback-appender copied to clipboard

Fixes "InvalidParameterException: Log events in a single PutLogEvents request must be in chronological order." and also a race condition

Open almson opened this issue 4 years ago • 0 comments

List of events needs to be sorted by timestamp before sending to CloudWatch.

Base class AppenderBase already uses synchronized methods, so it's not a problem to make other methods synchronized. This simplifies concurrency issues. Previously, there was a bug on line 71 of AwsLogAppender.

almson avatar Mar 30 '20 11:03 almson