Skip to content

Commit

Permalink
Fix shutdown tracking in s3 input (elastic#21380)
Browse files Browse the repository at this point in the history
(cherry picked from commit d8d35a1)
  • Loading branch information
faec committed Sep 29, 2020
1 parent 6cfe43e commit 84249ed
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion x-pack/filebeat/input/s3/input.go
Original file line number Diff line number Diff line change
Expand Up @@ -190,11 +190,11 @@ func (p *s3Input) Run() {

p.workerWg.Add(1)
go p.run(svcSQS, svcS3, visibilityTimeout)
p.workerWg.Done()
})
}

func (p *s3Input) run(svcSQS sqsiface.ClientAPI, svcS3 s3iface.ClientAPI, visibilityTimeout int64) {
defer p.workerWg.Done()
defer p.logger.Infof("s3 input worker for '%v' has stopped.", p.config.QueueURL)

p.logger.Infof("s3 input worker has started. with queueURL: %v", p.config.QueueURL)
Expand Down

0 comments on commit 84249ed

Please sign in to comment.