Skip to content

Commit

Permalink
Missing backup and delete for AWS S3 polling mode (#41071)
Browse files Browse the repository at this point in the history
  • Loading branch information
kaiyan-sheng authored Oct 4, 2024
1 parent f55bd8d commit f47cbd6
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.next.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -169,6 +169,7 @@ https://github.com/elastic/beats/compare/v8.8.1\...main[Check the HEAD diff]
- Ensure netflow custom field configuration is applied. {issue}40735[40735] {pull}40730[40730]
- Fix replace processor handling of zero string replacement validation. {pull}40751[40751]
- Fix long filepaths in diagnostics exceeding max path limits on Windows. {pull}40909[40909]
- Add backup and delete for AWS S3 polling mode feature back. {pull}41071[41071]
- Fix a bug in Salesforce input to only handle responses with 200 status code {pull}41015[41015]


Expand Down
4 changes: 4 additions & 0 deletions x-pack/filebeat/input/awss3/s3_input.go
Original file line number Diff line number Diff line change
Expand Up @@ -172,6 +172,10 @@ func (in *s3PollerInput) workerLoop(ctx context.Context, workChan <-chan *s3Fetc

// Metrics
in.metrics.s3ObjectsAckedTotal.Inc()

if finalizeErr := objHandler.FinalizeS3Object(); finalizeErr != nil {
in.log.Errorf("failed finalizing objects from S3 bucket (manual cleanup is required): %w", finalizeErr)
}
}
}

Expand Down

0 comments on commit f47cbd6

Please sign in to comment.