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

terminate metrics server without IO errors #7

Merged
merged 1 commit into from
Apr 15, 2019
Merged

terminate metrics server without IO errors #7

merged 1 commit into from
Apr 15, 2019

Conversation

mikz
Copy link
Contributor

@mikz mikz commented Apr 11, 2019

Ctrl-C would print several errors when shutting down the metrics server.

Use Ctrl-C to stop
^C2019-04-11 11:30:59 +0200: Listen loop error: #<Errno::EBADF: Bad file descriptor>
puma-3.12.1/lib/puma/server.rb:386:in `select'
puma-3.12.1/lib/puma/server.rb:386:in `handle_servers'
puma-3.12.1/lib/puma/server.rb:360:in `block in run'
2019-04-11 11:30:59 +0200: Listen loop error: #<IOError: closed stream>
puma-3.12.1/lib/puma/server.rb:386:in `select'
puma-3.12.1/lib/puma/server.rb:386:in `handle_servers'
puma-3.12.1/lib/puma/server.rb:360:in `block in run'

2019-04-11 11:30:59 +0200: Listen loop error: #<IOError: closed stream>
gems/puma-3.12.1/lib/puma/server.rb:386:in `select'
gems/puma-3.12.1/lib/puma/server.rb:386:in `handle_servers'
puma-3.12.1/lib/puma/server.rb:360:in `block in run'

The state handler would be triggered twice, so it should check if it executed already.

Ctrl-C would print several errors when shutting down the metrics server.

```
Use Ctrl-C to stop
^C2019-04-11 11:30:59 +0200: Listen loop error: #<Errno::EBADF: Bad file descriptor>
puma-3.12.1/lib/puma/server.rb:386:in `select'
puma-3.12.1/lib/puma/server.rb:386:in `handle_servers'
puma-3.12.1/lib/puma/server.rb:360:in `block in run'
2019-04-11 11:30:59 +0200: Listen loop error: #<IOError: closed stream>
puma-3.12.1/lib/puma/server.rb:386:in `select'
puma-3.12.1/lib/puma/server.rb:386:in `handle_servers'
puma-3.12.1/lib/puma/server.rb:360:in `block in run'

2019-04-11 11:30:59 +0200: Listen loop error: #<IOError: closed stream>
gems/puma-3.12.1/lib/puma/server.rb:386:in `select'
gems/puma-3.12.1/lib/puma/server.rb:386:in `handle_servers'
puma-3.12.1/lib/puma/server.rb:360:in `block in run'
```

The state handler would be triggered twice, so it should check if it executed already.
@harmjanblok
Copy link
Owner

harmjanblok commented Apr 12, 2019

@mikz good catch, thanks, I'll take a look at the failing test, seems like some flaky tests.

@harmjanblok harmjanblok merged commit 9ee907a into harmjanblok:master Apr 15, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants