Skip to content

Revert s3 destination changes#846

Merged
MrAnno merged 4 commits intoaxoflow:mainfrom
sodomelle:revert-s3-destination-changes
Nov 11, 2025
Merged

Revert s3 destination changes#846
MrAnno merged 4 commits intoaxoflow:mainfrom
sodomelle:revert-s3-destination-changes

Conversation

@sodomelle
Copy link
Contributor

@sodomelle sodomelle commented Nov 11, 2025

This PR reverts the S3 related changes taken from syslog-ng.
Fixing a bug where empty chunks were uploaded, which caused problems with object creation on the destination side.
Implements the object_key_suffix option introduced by Bálint Horváth into the syslog-ng.

This reverts commit 9e0fa57, reversing
changes made to 604c258.

Signed-off-by: Tamás Kosztyu <[email protected]>
@sodomelle sodomelle force-pushed the revert-s3-destination-changes branch from 969db14 to 3d224d8 Compare November 11, 2025 12:29
sodomelle added a commit to sodomelle/axosyslog that referenced this pull request Nov 11, 2025
Signed-off-by: Tamás Kosztyu <[email protected]>
@MrAnno
Copy link
Contributor

MrAnno commented Nov 11, 2025

We've reverted the change because storing chunks in memory is not acceptable for our use cases. S3 objects, in general, are not appendable; the overall object size is huge, so we expect relatively big chunks as well.

This commit applies parts of 1c073f71a7b942d835fafe1b82d0267589c418ef, commited
by Bálint Horváth into to the syslog-ng codebase.

Signed-off-by: Tamás Kosztyu <[email protected]>
Creating an empty chunk and waiting for messages to start filling it later
caused a bug where empty chunks were created, and instantly uploaded.
Boto3 has a bug, where uploading empty files causes issues with uploading.
Since our bookkeeping showed that there are chunks missing from the uploaded object,
the object wasn't finished on the destination.
Now we start a new chunk, only if there is incoming message, so no empty chunks can
be uploaded.

Signed-off-by: Tamás Kosztyu <[email protected]>
Signed-off-by: Tamás Kosztyu <[email protected]>
@sodomelle sodomelle force-pushed the revert-s3-destination-changes branch from 16a41fc to ef71251 Compare November 11, 2025 15:01
@sodomelle sodomelle requested a review from MrAnno November 11, 2025 15:02
@MrAnno MrAnno merged commit 29d74ae into axoflow:main Nov 11, 2025
22 checks passed
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