Skip to content

Commit

Permalink
Fix shutdown tracking in s3 input (#21380) (#21396)
Browse files Browse the repository at this point in the history
(cherry picked from commit d8d35a1)
  • Loading branch information
faec committed Sep 30, 2020
1 parent 3ad478a commit 9d5ea60
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 9d5ea60

Please sign in to comment.