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

out_s3: replace MAX_UPLOAD_ERRORS constant with retry_limit #8985

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

lheer
Copy link

@lheer lheer commented Jun 20, 2024

This change replaces the constant for the maximum upload errors in the output plugin out_s3 with the user-configurable retry_limit variable and fixes a segfault that occurred when building with debug flags.

Previous attempts for older Fluent Bit versions (#6475, #6063) were not merged to master, presumably because of stability issues.

On our test systems, we can now configure the retry_limit and therefore better handle situations with network instabilities and prolonged network interruptions.

Fixes #8595


Enter [N/A] in the box, if an item is not applicable to your change.

Testing
Before we can approve your change; please submit the following in a comment:

  • Example configuration file for the change
    [OUTPUT]
    Name s3
    Match *
    Bucket fluentbit
    Endpoint http://127.0.0.1:9000
    Retry_Limit 3
    Preserve_Data_Ordering true
    Total_File_Size 15M
    Use_Put_Object false
  • Debug log output from testing the change

Screenshot-retry-limit-3

  • Attached Valgrind output that shows no leaks or memory corruption was found

Screenshot-valgrind-ok

If this is a change to packaging of containers or native binaries then please confirm it works for all targets.

  • Run local packaging test showing all targets (including any new ones) build.
  • Set ok-package-test label to test for all targets (requires maintainer to do).

Documentation

  • [N/A] Documentation required for this feature

The docs claim already that the retry_limit is taken into account.

Backporting

  • Backport to latest stable release.

Fluent Bit is licensed under Apache 2.0, by submitting this pull request I understand that this code will be released under the terms of that license.

This change replaces the constant for the maximum upload errors in
the output plugin out_s3 with the user-configurable retry_limit variable
and fixes a segfault that occurred when building with debug flags.

Signed-off-by: Lucas Heer <[email protected]>
@edsiper
Copy link
Member

edsiper commented Jun 21, 2024

ping @PettitWesley

@edsiper
Copy link
Member

edsiper commented Jun 24, 2024

@PettitWesley ping

@edsiper
Copy link
Member

edsiper commented Jul 8, 2024

moving to the next milestone

@edsiper edsiper removed this from the Fluent Bit v3.1.0 milestone Jul 8, 2024
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.

V2.2.2 / AWS S3 Output Plugin / retry_limit not taken into account
3 participants