Skip to content

Commit

Permalink
Fix shutdown tracking in s3 input (elastic#21380) (elastic#21397)
Browse files Browse the repository at this point in the history
(cherry picked from commit 7f5ccd3)
  • Loading branch information
faec authored Sep 30, 2020
1 parent 9b6840a commit 1dfc949
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 1dfc949

Please sign in to comment.