8000
Skip to content

awslogs - don't add new lines to maximum sized events - #36078

Merged
yongtang merged 1 commit into
moby:masterfrom
mixja:multiline-max-event-processing
Jan 24, 2018
Merged

awslogs - don't add new lines to maximum sized events#36078
yongtang merged 1 commit into
moby:masterfrom
mixja:multiline-max-event-processing

Conversation

@mixja
@mixja mixja commented Jan 21, 2018
Copy link
Copy Markdown
Contributor

Signed-off-by: Justin Menga justin.menga@gmail.com

- What I did

This PR addresses an edge scenario where a maximum sized log event is received, in which case a new line character should not be inserted.

The PR also renames a few variables for better readability and adjusts the multiline event buffer to expire if the buffer age is greater than or equal to (rather than greater than) the batch publish frequency.

- How I did it

Only append a new line character if the log event size is less than the maximum event size

- How to verify it

The TestCollectBatchMultilinePatternMaxEventSize test verifies the edge case.

- Description for the changelog

awslogs - don't add new lines to maximum sized events

- A picture of a cute animal (not mandatory but encouraged)



F440
Signed-off-by: Justin Menga <justin.menga@gmail.com>
@cpuguy83 cpuguy83 left a comment
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM ping @samuelkarp

@yongtang yongtang left a comment
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants

0