PG DataSource Error handler throwing memory leak warning
还没有人认领这个 Issue。
评估
- 难度
- 3/5
- 预计耗时
- 1-2 天
- 新手友好度
- 38/100
- Issue 类型
- 缺陷
- 描述清晰度
- 基本清楚
- 活跃度
- 停滞
- 技术栈
- javascript, nodejs, postgresql
- 领域
- database
调研方向
使用链接的 sandbox 及其 README,通过 PostgreSQL DataSource 和 onError 处理程序重现 MaxListenersExceededWarning。然后检查 connector 的 connection-pool release path;完成的标准是,重复使用时,在连接返回 pool 之前不再累积 error listener。
由索引模型根据 Issue 内容生成。
描述
Steps to reproduce
- Add onError handler in DataSource for Loopback Connector Postgresql.
- Use DataSource on frequent manner.
- It should throw warnings like
(node:80014) MaxListenersExceededWarning: Possible EventEmitter memory leak detected. 11 error listeners added to [Client]. Use emitter.setMaxListeners() to increase limit
(More details to reproduce the issue are provided in the README.md file in the sandbox repository)
Current Behavior
It doesn't remove the attached error event listeners while releasing the connection back to pool.
Expected Behavior
It should remove attached event listener before releasing connection back to pool.
Link to reproduction sandbox
https://github.com/vinod-hansda/loopback-pg-warning
Additional information
node -e 'console.log(process.platform, process.arch, process.versions.node)' :-
darwin arm64 18.20.6
npm ls --prod --depth 0 | grep loopback :-
npm warn config production Use --omit=dev instead.
[email protected] /Users/vinodhansda/Documents/GitHub/loopback-pg-warning
├── @loopback/[email protected]
├── @loopback/[email protected]
├── @loopback/[email protected]
├── @loopback/[email protected]
├── @loopback/[email protected]
├── @loopback/[email protected]
├── [email protected]
Related Issues
See Reporting Issues for more tips on writing good issues
- 主要语言
- JavaScript
- 星标
- 118
- 派生
- 183
- 平均合并
- 3 天 7 小时
- 30 天内合并 PR
- 9
环境准备
- 没有 Dockerfile 或 Docker Compose 文件
- 有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
loopbackio/loopback-connector-postgresql 的其他 Issue
-
Partial JSON Update可能已有人在做 @vaibhavbhalla2505 于 263 天前认领。 未关闭feature
难度 5/5 一周以上 新手友好度 20/100
-
bug
难度 4/5 3-5 天 新手友好度 30/100
loopbackio/loopback-connector-postgresql#748 · 1 条评论 ·
-
bug
难度 4/5 3-5 天 新手友好度 25/100
-
bug
难度 2/5 1-3 小时 新手友好度 45/100
loopbackio/loopback-connector-postgresql#732 · 1 条评论 ·
-
feature
难度 3/5 1-2 天 新手友好度 55/100
查看 loopbackio/loopback-connector-postgresql 的全部 Issue
相似的 Issue
-
[Bug] Composer can submit an IME confirmation when keyCode is 229 but isComposing is false可能已有人在做 关联的 PR 仍在进行中或已合并。 未关闭
难度 2/5 1-3 小时 新手友好度 72/100
apache/rocketmq-dashboard#6067 ·
维护者通常 4 天内回复
-
severity: low
难度 2/5 1-3 小时 新手友好度 70/100
luainkernel/lunatik#1853 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 62/100
维护者通常 1 天内回复
-
factory-active factory-automatic harness/claude-code task-identify-harness-labels-done task-identify-issue-type-done
难度 2/5 1-3 小时 新手友好度 62/100
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 62/100
维护者通常 1 天内回复