modelcontextprotocol / modelcontextprotocol/example-remote-server
Session ownership data is never removed from Redis
Chưa có ai nhận issue này.
- Ngôn ngữ chính
- TypeScript
- Star
- 80
- Fork
- 39
- Merge trung bình
- 43 phút
- Pull request đã merge (30 ngày)
- 1
Mô tả
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:
- Create Session
- Finish Session
- 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.
Hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Hướng nghiên cứu
Kiểm tra đường dẫn dọn dẹp dữ liệu truyền tải và khóa Redis session:${sessionId}:owner. Tái hiện chuỗi lặp lại gồm việc tạo và kết thúc session, sau đó xác minh rằng dữ liệu quyền sở hữu được xóa khi một session kết thúc hoặc hết hạn sau một khoảng thời gian xác định, không tiếp tục tích lũy trong Redis.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Đánh giá
- Công nghệ
- redis, typescript
- Lĩnh vực
- backend, databases
- Loại issue
- Lỗi
- Độ khó
- 3/5
- Thời gian dự kiến
- 1-2 ngày
- Mức độ hoạt động
- Đình trệ
- Độ rõ ràng
- Khá rõ ràng
- Mức phù hợp với người mới
- 45/100