Skip to content

Commit

Permalink
File input: Quiet close error (#345)
Browse files Browse the repository at this point in the history
* reorg test files only, ported from open-telemetry/opentelemetry-log-collection#165

* port otel enhanced file input benchmarking open-telemetry/opentelemetry-log-collection#166

* skip closing files that are already closed
  • Loading branch information
Joseph Sirianni authored Jun 25, 2021
1 parent 4fdb879 commit ffd6dcd
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions operator/builtin/input/file/file.go
Original file line number Diff line number Diff line change
Expand Up @@ -134,11 +134,6 @@ func (f *InputOperator) poll(ctx context.Context) {
// Wait until all the reader goroutines are finished
wg.Wait()

// Close all files
for _, reader := range readers {
reader.Close()
}

f.saveCurrent(readers)
f.syncLastPollFiles()
}
Expand Down

0 comments on commit ffd6dcd

Please sign in to comment.