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

Timeout #119

Open
pjz opened this issue Dec 9, 2019 · 2 comments
Open

Timeout #119

pjz opened this issue Dec 9, 2019 · 2 comments
Labels
bug Something isn't working

Comments

@pjz
Copy link
Contributor

pjz commented Dec 9, 2019

  • etcd3-py version:
  • Python version:
  • Operating System:

Description

I was trying to do a (somewhat large - 10e3s of records) delete.

What I Did

await db.delete_range('prefix',prefix=True)

What happened

  File "/usr/lib/python3.7/asyncio/base_events.py", line 584, in run_until_complete                           
    return future.result()                                                                                       
  File "/usr/local/lib/python3.7/dist-packages/xgw/cli.py", line 208, in _del                    
    await db.delete_range(key, prefix=prefix)                                                    
  File "/usr/local/lib/python3.7/dist-packages/etcd3/aio_client.py", line 32, in __modelize                   
    await self.client._raise_for_status(self._resp)                                                                   
  File "/usr/local/lib/python3.7/dist-packages/etcd3/aio_client.py", line 233, in _raise_for_status                        
    raise get_client_error(error, code, status, resp)                                                                      
etcd3.errors.go_etcd_rpctypes_error.ErrTimeout: <ErrTimeout error:'etcdserver: request timed out', code:14>  

Is there a way to adjust up that timeout? if so, where/how?

@issue-label-bot issue-label-bot bot added the bug Something isn't working label Dec 9, 2019
@issue-label-bot
Copy link

Issue-Label Bot is automatically applying the label bug to this issue, with a confidence of 0.57. Please mark this comment with 👍 or 👎 to give our bot feedback!

Links: app homepage, dashboard and code for this bot.

@Revolution1
Copy link
Owner

It's kinda complicated problem. etcd-io/etcd#9159
Pretty much simmilar to your #113 , but deleterange method does not provide a "limit" parameter.

I found this:
https://github.com/grpc-ecosystem/grpc-gateway/blob/ee3ef70b7777cde4e61e4e224cb11e92beecee6a/docs/_docs/features.md#supported

I'll try if that works.

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

2 participants