Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: adjust buffer size for awslogs driver in non-blocking mode #240

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

konoui
Copy link

@konoui konoui commented Jan 15, 2025

Issue #, if available:

#239

Description of changes:

The buffered logger uses maximumBytesPerEvent instead of defaultAwsBufSizeInBytes to avoid unexpected log splitting.
Before the fix, the e2e test failed with a the number of test log lines are not matching error.
After the fix, the e2e test passes.

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

@konoui konoui requested a review from a team as a code owner January 15, 2025 13:07
@BinSquare
Copy link
Contributor

Appreciate the detailed investigation and solution. Please review the lint complaint.

@BinSquare BinSquare self-assigned this Jan 20, 2025
@konoui konoui force-pushed the fix-awslogs-with-non-blocking-mode branch from 0a36903 to 7063065 Compare January 21, 2025 12:02
@konoui
Copy link
Author

konoui commented Jan 21, 2025

@BinSquare, Thank you for pointing this out. I have addressed the lint error.

@konoui konoui changed the title adjust buffer size for awslogs driver in non-blocking mode fix: adjust buffer size for awslogs driver in non-blocking mode Jan 23, 2025
@konoui
Copy link
Author

konoui commented Jan 23, 2025

Sorry, I misunderstood. I've corrected the title.

Copy link
Contributor

@BinSquare BinSquare left a comment

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
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants