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
get requests intermittently timing out on v3.1.0-rc.1 #7136
Comments
@gyuho it was working fine with 3.0, though. It's getting request timeout errors, not only warnings-- this might be something different. |
@kragniz Can you easily reproduce this out of your test suite with a simple go or python program that I can compile/run on my local machine? |
Yeah, I'll create a little python script to try and reproduce. |
Here's the equivilant code that the test is running: Save this somewhere like timeout_reproducer.py import json
import subprocess
import os
from hypothesis import given
from hypothesis.strategies import characters
import etcd3
os.environ['ETCDCTL_API'] = '3'
def etcdctl(*args):
args = ['etcdctl', '-w', 'json'] + list(args)
print(" ".join(args))
output = subprocess.check_output(args)
return json.loads(output.decode('utf-8'))
@given(characters(blacklist_categories=['Cs', 'Cc']))
def test_get_key(string):
etcd = etcd3.client()
etcdctl('put', '/doot/a_key', string)
returned, _ = etcd.get('/doot/a_key')
assert returned == string.encode('utf-8')
etcdctl('del', '--prefix', '')
if __name__ == '__main__':
test_get_key() run it with:
|
@kragniz which etcdctl version are you running? I run your script with etcd(darwin) binaries downloaded from https://github.com/coreos/etcd/releases/tag/v3.1.0-rc.1. I didn't see any errors. does your script produce error everytime? |
Thanks! |
I've got a few CI jobs for python-etcd3, some of which run against etcd 3.1.0-rc.1. I've observed that the test for getting values out of etcd is flaky against v3.1.0-rc.1.
It's not really a problem for me, but there's a discrepancy between the reliability of this and v3.0.13 (the other version CI runs against).
Here's an example job that failed:
https://travis-ci.org/kragniz/python-etcd3/jobs/189153848
The text was updated successfully, but these errors were encountered: