modelcontextprotocol / modelcontextprotocol/example-remote-server

Session ownership data is never removed from Redis

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

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

bug
主要言語
TypeScript
スター
80
フォーク
39
平均マージ
43分
マージ済み PR(30日)
1

説明

Describe the bug
Session ownership data is being stored in redis and don't have TTL or are removed

To Reproduce
Steps to reproduce the behavior:

  1. Create Session
  2. Finish Session
  3. Repeat a big number of times

Expected behavior
Session ownership should be cleaned from Redis when session is finished or after a prudential amount of time

Logs

Additional context
Service is storing session ownership info in redis using session:${sessionId}:owner but this data is not removed when cleaning up the transport data. This can cause a memory leak over time if no clean up mechanism is implemented.

コントリビューションガイド

コントリビューションガイドを開く

はじめの一歩

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

調査の方向性

トランスポートデータのクリーンアップパスと Redis キー session:${sessionId}:owner を調査します。セッションの作成と終了を繰り返すシーケンスを再現し、セッションが終了したとき、または定義された期間後に期限切れになったときに所有権データが削除され、Redis に蓄積し続けないことを確認します。

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

評価

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

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

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