-
Notifications
You must be signed in to change notification settings - Fork 133
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
[s3] $INDEX in s3_key_format can be incorrect with multipart uploads #653
Comments
Quick fix for AWS distro: https://github.com/PettitWesley/fluent-bit/pull/25/files The S3 stability refactor that I am working on here also has a full logic fix: https://github.com/PettitWesley/fluent-bit/pull/24/files |
This will be fixed once I get 2.31.12 out: https://github.com/aws/aws-for-fluent-bit/blob/mainline/CHANGELOG.md |
PettitWesley
changed the title
[s3] $INDEX in s3_key_format can be incorrect with multipart uplaods
[s3] $INDEX in s3_key_format can be incorrect with multipart uploads
Jun 30, 2023
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Am I impacted?
If you have an S3 output: https://docs.fluentbit.io/manual/pipeline/outputs/s3
And have
use_put_object false
(the default) and have ans3_key_format
that uses$INDEX
you may be impacted.Bug Impact
When a multipart UploadPart call fails, the index can be incorrectly decremented, leading it to be wrong (smaller value that expected) for the next file upload. This may cause the same INDEX number to be used repeatedly in a row.
Root Cause: Code Bug
The code should only decrement the $INDEX when the multipart upload is marked for failure.
Currently it decrements here instead:
The text was updated successfully, but these errors were encountered: