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

未关闭
#1,506 3 条评论 6 个 reaction 已指派 0 人 在 GitHub 查看

维护者通常 1 天内回复

还没有人认领这个 Issue。

评估

难度
4/5
预计耗时
3-5 天
新手友好度
25/100
Issue 类型
缺陷
描述清晰度
需要澄清
活跃度
停滞
技术栈
node.js, redis
领域
backend, databases

调研方向

首先检查 node-redis 对 NR_CLOSED 错误的处理方式,以及 connected 和 ready 状态如何更新。使用 Node.js 8.0.0、Redis 3.0.2 和 Node.js 平台重现该行为;完成的标准是记录可靠的重现步骤以及受支持的客户端处理方式。

由索引模型根据 Issue 内容生成。

描述

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
主要语言
TypeScript
星标
17.6k
派生
2k
平均合并
1 天 22 小时
30 天内合并 PR
62

环境准备

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

redis/node-redis 的其他 Issue

查看 redis/node-redis 的全部 Issue

相似的 Issue

更多 TypeScript Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。