Skip to content
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

Add timeout for validation command #245

Merged
merged 1 commit into from
Jul 5, 2018
Merged

Add timeout for validation command #245

merged 1 commit into from
Jul 5, 2018

Conversation

mariussturm
Copy link
Contributor

Fixes #239

Should the value for the timeout be configurable, it's set to 30s currently.

@mariussturm mariussturm added this to the 3.0.0 milestone Jul 3, 2018
@mariussturm mariussturm requested a review from bernd July 3, 2018 15:57
@bernd bernd self-assigned this Jul 5, 2018
Copy link
Member

@bernd bernd left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The windows build fails on Jenkins:

# github.com/Graylog2/collector-sidecar/daemon
daemon/svc_runner_windows.go:67:2: cannot use r (type *SvcRunner) as type Runner in return argument:
	*SvcRunner does not implement Runner (wrong type for GetBackend method)
		have GetBackend() backends.Backend
		want GetBackend() *backends.Backend
daemon/svc_runner_windows.go:77:3: undefined: backends.SetStatusLogErrorf
daemon/svc_runner_windows.go:85:3: undefined: backends.SetStatusLogErrorf
daemon/svc_runner_windows.go:92:3: undefined: backends.SetStatusLogErrorf
daemon/svc_runner_windows.go:123:10: undefined: backends.SetStatusLogErrorf
daemon/svc_runner_windows.go:128:10: undefined: backends.SetStatusLogErrorf
daemon/svc_runner_windows.go:150:4: undefined: backends.SetStatusLogErrorf
daemon/svc_runner_windows.go:158:4: undefined: backends.SetStatusLogErrorf
daemon/svc_runner_windows.go:164:4: undefined: backends.SetStatusLogErrorf
daemon/svc_runner_windows.go:187:4: undefined: backends.SetStatusLogErrorf
daemon/svc_runner_windows.go:187:4: too many errors
github.com/Graylog2/collector-sidecar/api/rest
make: *** [build-windows] Error 2

@mariussturm
Copy link
Contributor Author

mariussturm commented Jul 5, 2018

We introduced this error in: #244
Because it's unrelated to I will create a new PR.

#248 it is!

Copy link
Member

@bernd bernd left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think using 30 sec for a timeout is okay for now. We can introduce a config setting later if needed.

@bernd bernd merged commit c6756d7 into master Jul 5, 2018
@bernd bernd deleted the issue-239 branch July 5, 2018 13:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants