#23879·harbor

其自身的 DB 池出现核心死锁: 审计日志解析器在事务中间件中创建了第二个连接(大量用户删除导致核心堵塞)

作者: Vad1mo创建于 2026年9月9日更新于 2026年9月14日

Root cause: every non-GET request runs inside `transaction.Middleware` (`src/core/middlewares/middlewares.go:97`), which takes one pool connection with `begin` and stores the tx ormer in the request context. Inside that transaction, before the handler runs, `log.Middleware` calls the audit-log resolver's `PreCheck`, and `src/pkg/auditext/event/user/user.go:60-61` does:

内容来源: goharbor/harbor