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

metrics endpoint crashes #204

Open
nritsche opened this issue May 29, 2020 · 0 comments
Open

metrics endpoint crashes #204

nritsche opened this issue May 29, 2020 · 0 comments
Labels
bug Something isn't working

Comments

@nritsche
Copy link
Contributor

We created an endpoint for testing that just waits 6minutes:

group: cluster
call:
  coco:
    name: wait
    request:
      duration: 360s

This was to test if it makes open redis connections time out, but we found that the metrics endpoint also crashes (if it get's called during the wait-time, probably):

May 29 12:24:50 csBfs cocod[27856]: ----------------------------------------
May 29 12:24:50 csBfs cocod[27856]: Exception happened during processing of request from ('10.1.111.8', 56538)
May 29 12:24:50 csBfs cocod[27856]: Traceback (most recent call last):
May 29 12:24:50 csBfs cocod[27856]: File "/usr/local/lib/python3.7/socketserver.py", line 650, in process_request_thread
May 29 12:24:50 csBfs cocod[27856]: self.finish_request(request, client_address)
May 29 12:24:50 csBfs cocod[27856]: File "/usr/local/lib/python3.7/socketserver.py", line 360, in finish_request
May 29 12:24:50 csBfs cocod[27856]: self.RequestHandlerClass(request, client_address, self)
May 29 12:24:50 csBfs cocod[27856]: File "/usr/local/lib/python3.7/socketserver.py", line 720, in __init__
May 29 12:24:50 csBfs cocod[27856]: self.handle()
May 29 12:24:50 csBfs cocod[27856]: File "/usr/local/lib/python3.7/http/server.py", line 426, in handle
May 29 12:24:50 csBfs cocod[27856]: self.handle_one_request()
May 29 12:24:50 csBfs cocod[27856]: File "/usr/local/lib/python3.7/http/server.py", line 414, in handle_one_request
May 29 12:24:50 csBfs cocod[27856]: method()
May 29 12:24:50 csBfs cocod[27856]: File "/usr/local/lib/python3.7/site-packages/coco/metric.py", line 43, in do_GET
May 29 12:24:50 csBfs cocod[27856]: self.wfile.write(output)
May 29 12:24:50 csBfs cocod[27856]: File "/usr/local/lib/python3.7/socketserver.py", line 799, in write
May 29 12:24:50 csBfs cocod[27856]: self._sock.sendall(b)
May 29 12:24:50 csBfs cocod[27856]: BrokenPipeError: [Errno 32] Broken pipe
May 29 12:24:50 csBfs cocod[27856]: ----------------------------------------
@nritsche nritsche added the bug Something isn't working label May 29, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant