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

Fixed bug with batch's creation parameters #31657

Conversation

klhuff
Copy link
Contributor

@klhuff klhuff commented Mar 8, 2024

Description:
When a new Batch is created, it's slice capacity for the number of records should be set to the maximum number of records, not the max record size, an error that can cause memory to be allocated frequently.
awskinesisexporter/internal/batch/batch.go#L76-L82
awskinesisexporter/internal/batch/batch.go#L28-L29

This is a copy of the original PR with the same fix found here:
#20862

I've simply made the change to the tests that was requested in the original PR.

Link to tracking Issue:
Fixes #20914

@klhuff klhuff requested a review from a team March 8, 2024 18:30
Copy link

linux-foundation-easycla bot commented Mar 8, 2024

CLA Signed

The committers listed above are authorized under a signed CLA.

  • ✅ login: klhuff / name: Kevin Huff (c4b20f1)

Copy link
Contributor

This PR was marked stale due to lack of activity. It will be closed in 14 days.

@github-actions github-actions bot added the Stale label Mar 23, 2024
@klhuff
Copy link
Contributor Author

klhuff commented Mar 25, 2024

Took me awhile to sort out the CLA, but it's good now.

@dmitryax dmitryax merged commit 9aa10d9 into open-telemetry:main Mar 25, 2024
141 of 143 checks passed
@github-actions github-actions bot added this to the next release milestone Mar 25, 2024
@klhuff klhuff deleted the fix_awskinesisexporter_batch_initialize_bug branch March 26, 2024 12:56
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.

awskinesis exporter records capacity is set too large
2 participants