Skip to content

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

Open
almson wants to merge 2 commits intodibog:masterfrom
almson:fix-unsorted-events
Open

Fixes "InvalidParameterException: Log events in a single PutLogEvents request must be in chronological order." and also a race condition#19
almson wants to merge 2 commits intodibog:masterfrom
almson:fix-unsorted-events

Conversation

@almson
Copy link

@almson almson commented Mar 30, 2020

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.

Alex Dubinsky added 2 commits March 30, 2020 13:43
Base class AppenderBase already uses synchronized methods, so it's not a problem to make other methods synchronized. This greatly simplifies concurrency issues and makes the code simpler. Previously, there was a bug on line 71 of AwsLogAppender.
List of events needs to be sorted by timestamp before sending to CloudWatch.
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.

1 participant