When a redis server drops an already established connection, it fails loudly
@mitsuhiko is already working on this.
Since Apr 22, 2016.
Assessment
This issue has not been assessed yet.
Description
This can be tested by setting CONFIG SET timeout 1 in Redis, then running:
from time import sleep
from rb import Cluster
cluster = Cluster({0:{'host': '127.0.0.1', 'port': 6379}})
with cluster.map() as c:
c.get('foo')
sleep(2)
with cluster.map() as c:
c.get('foo')
Yells with redis.exceptions.ConnectionError: Error while trying to write requests to redis..
The problem is the first poll on the socket is a close event before any data has been written to the socket.
We should detect this and attempt to reconnect.
- Dominant language
- Python
- Stars
- 300
- Forks
- 31
- Avg merge
- 1h 8m
- Merged PRs (30d)
- 1
Getting set up
This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from getsentry/rb
-
Difficulty 4/5 3-5 days Newbie friendliness 25/100
-
Difficulty 3/5 1-2 days Newbie friendliness 35/100
-
Difficulty 4/5 3-5 days Newbie friendliness 30/100
-
Difficulty 5/5 Over a week Newbie friendliness 20/100
Similar issues
-
json_params_matcher fails on falsy top-level JSON primitives (0, False, "")Possibly taken @mayureshsonawane17 claimed this today. OpenWaiting for: Product Owner
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
Maintainers usually reply within 5 days
-
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
Maintainers usually reply within 1 day
-
Difficulty 1/5 Under an hour Newbie friendliness 88/100
bojieli/ai-agent-book#1169 ·
Maintainers usually reply within 1 day
-
priority:low ready-for-dev
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
OpenHands/extensions#738 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 85/100
micronaut-projects/micronaut-core#13677 ·
Maintainers usually reply within 1 day