Redis issue on module-redis-fork

オープン
#1,605 コメント 2 件 リアクション 2 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

まだ誰も着手していません。

評価

難易度
4/5
見積もり時間
3〜5日
初心者へのやさしさ
30/100
issue の種類
バグ
明瞭さ
おおむね明確
活発さ
停滞
技術スタック
nodejs, redis
領域
backend, databases

調査の方向性

node-redis 3.2、Redis 6.0.4、RediSearch 1.6.15 を使用し、モジュールの fork 前にクライアントを作成して動作を再現します。まず、fork 中のコマンド送信と接続エラー処理を追跡します。fork の終了時にコマンドがアイドル状態のままになったり中断されたりせず、既存のクライアントが引き続き動作すれば完了です。

索引モデルが issue の本文から書いたものです。

説明

stale
Issue

Hi everyone,

I have an issue while trying to interact with Redis in those conditions:

  1. Redis instance with Redisearch module,
  2. Create node-redis client before Redis module fork is ongoing,
  3. Redis module fork is on-going

The behaviour that I get is that "send_command" stays idle until the fork stops.
When the fork ends I get this error:
debug mode (node-redis) ->
Redis connection is gone from end event
client err ->
AbortError: Redis connection lost and command aborted. It might have been processed.

After I get this error the commands from the same client (without creating a new client) come back to works fine.

On every fork, I got the same behaviour.


Environment
  • Node.js Version: v14.15.1
  • Redis Version: 6.0.4
  • redisearch Version: 1.6.15
  • node-redis Version: 3.2
  • Platform: Server 128GB RAM, 8 Core, Debian
主要言語
TypeScript
スター
17.6k
フォーク
2k
平均マージ
1日 22時間
マージ済み PR(30日)
62

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

redis/node-redis のほかの issue

redis/node-redis の issue をすべて見る

似ている issue

TypeScript の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。