尚
Results
issues of
尚
## Background `McpCacheIndex` is the cache abstraction used by MCP-related query paths, and its default implementation is `MemoryMcpCacheIndex`. The current implementation maintains: - in-memory `name -> id` and `id ->...
kind/discussion
## 问题描述 `MetricAnnotation` 与 `SingleMetricAnnotation` 类的 `from_json` 类方法中,读取 JSON 文件直接使用 `json.load(open(path))`,**没有使用 `with` 上下文管理器**。 文件打开之后没有显式关闭文件句柄,依赖 Python GC 垃圾回收释放文件资源;高频率批量读取文件场景下,会造成文件句柄泄漏,严重时触发系统打开文件数上限 `Too many open files` 异常。 ## 问题代码片段 ``` # MetricAnnotation.from_json (第 614 行)...
bug