redis / redis/node-redis

How to reproduce NR_CLOSED error and How to handle the NR_CLOSED error?

Open
#1,506 3 comments 6 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
TypeScript
Stars
17.6k
Forks
2k
Avg merge
2d 3h
Merged PRs (30d)
40

Description

Issue

We are using redis node module for Redis client to communicate with Redis server. We are facing NR_CLOSED error intermediately and failing to reproduce the issue. Due to failing in reproducing the issue we could not find mechanism to handle this error.

Also, the status of the redis client from connected and ready is not changing even after facing NR_CLOSED error.

Please advise how to reproduce on NR_CLOSED error and how to handle in client implementation when this error occurs.


Environment
  • Node.js Version: 8.0.0
  • Redis Version: 3.0.2
  • Platform: Node JS

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reviewing the node-redis handling of the NR_CLOSED error and how the connected and ready client states are updated. Reproduce the behavior using Node.js 8.0.0, Redis 3.0.2, and the Node.js platform; done means documenting a reliable reproduction and the supported client-side handling.

Written by the indexing model from the issue text.

Assessment

Tech stack
node.js, redis
Domain
backend, databases
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.