zanePerfor
zanePerfor copied to clipboard
Mongopool destroyed
跑了几天就出现了这个问题。

mongo是我自己搭建的,暂时不确定是不是mongo的问题。从mongo那里没有获取到错误信息。
在common-log 里面收集到如下日志:
2021-08-26 15:16:28,829 ERROR 4788 [-/172.16.60.83/-/6ms GET /api/v1/pvuvip/getPvUvIpSurvey?_=1629962188532&appId=fKK8M5w1629770728212&beginTime=&endTime=] nodejs.MongoError: pool destroyed at Pool.write (/home/zanePerfor/zanePerfor/node_modules/mongodb/lib/core/connection/pool.js:843:8) at _command (/home/zanePerfor/zanePerfor/node_modules/mongodb/lib/core/wireprotocol/command.js:125:10) at command (/home/zanePerfor/zanePerfor/node_modules/mongodb/lib/core/wireprotocol/command.js:28:5) at Object.query (/home/zanePerfor/zanePerfor/node_modules/mongodb/lib/core/wireprotocol/query.js:66:3) at Server.query (/home/zanePerfor/zanePerfor/node_modules/mongodb/lib/core/topologies/server.js:649:16) at FindOperation.execute (/home/zanePerfor/zanePerfor/node_modules/mongodb/lib/operations/find.js:38:12) at /home/zanePerfor/zanePerfor/node_modules/mongodb/lib/operations/execute_operation.js:144:17 at Server.selectServer (/home/zanePerfor/zanePerfor/node_modules/mongodb/lib/core/topologies/server.js:837:3) at Server.selectServer (/home/zanePerfor/zanePerfor/node_modules/mongodb/lib/topologies/topology_base.js:342:32) at executeWithServerSelection (/home/zanePerfor/zanePerfor/node_modules/mongodb/lib/operations/execute_operation.js:131:12) at /home/zanePerfor/zanePerfor/node_modules/mongodb/lib/operations/execute_operation.js:70:9 at maybePromise (/home/zanePerfor/zanePerfor/node_modules/mongodb/lib/utils.js:692:3) at executeOperation (/home/zanePerfor/zanePerfor/node_modules/mongodb/lib/operations/execute_operation.js:34:10) at Cursor._initializeCursor (/home/zanePerfor/zanePerfor/node_modules/mongodb/lib/core/cursor.js:541:7) at Cursor._initializeCursor (/home/zanePerfor/zanePerfor/node_modules/mongodb/lib/cursor.js:186:11) at nextFunction (/home/zanePerfor/zanePerfor/node_modules/mongodb/lib/core/cursor.js:744:10) name: "MongoError" pid: 4788 hostname: hqlt-pmpro-hzcon01
辛苦了大佬