-
Notifications
You must be signed in to change notification settings - Fork 4.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Filebeat: Fast filecheck #8627
Filebeat: Fast filecheck #8627
Conversation
Since this is a community submitted pull request, a Jenkins build has not been kicked off automatically. Can an Elastic organization member please verify the contents of this patch and then kick off a build manually? |
filebeat/input/log/log_test.go
Outdated
buf := make([]byte, 10) | ||
|
||
i := 0 | ||
var receivedError error = nil |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
should drop = nil from declaration of var receivedError; it is the zero value
filebeat/input/log/log_test.go
Outdated
buf := make([]byte, 10) | ||
|
||
i := 0 | ||
var receivedError error = nil |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
should drop = nil from declaration of var receivedError; it is the zero value
filebeat/input/log/log.go
Outdated
@@ -51,16 +52,30 @@ func NewLog( | |||
} | |||
} | |||
|
|||
var checkTicker *time.Ticker = nil |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
should drop = nil from declaration of var checkTicker; it is the zero value
@@ -1,4 +1,4 @@ | |||
// Licensed to Elasticsearch B.V. under one or more contributor | |||
receivedError// Licensed to Elasticsearch B.V. under one or more contributor |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
expected 'package', found 'IDENT' receivedError (and 1 more errors)
#5556
check_status_interval
to control the file status checking interval.