-
Notifications
You must be signed in to change notification settings - Fork 725
Closed
Description
🐛 Bug Report
Happened on CI only. The message was Cannot read property 'resurrectTimeout' of undefined
See logs:
- https://github.com/elastic/elasticsearch-js/pull/1142/checks?check_run_id=578970718
- https://github.com/elastic/elasticsearch-js/pull/1142/checks?check_run_id=578970732
Related to #940
Cannot read property 'resurrectTimeout' of undefined
stack:
ConnectionPool.resurrect (lib/pool/ConnectionPool.js:101:47)
ConnectionPool.getConnection (lib/pool/ConnectionPool.js:167:10)
Transport.getConnection (lib/Transport.js:348:32)
makeRequest (lib/Transport.js:123:30)
onResponse (lib/Transport.js:150:13)
ClientRequest.request.on.err (lib/Connection.js:103:9)
at:
line: 101
column: 47
file: lib/pool/ConnectionPool.js
function: ConnectionPool.resurrect
Looks like there can be dead with an ID that hasn't the mathing connection. And therefore, connection.resurrectTimeout fails resulting in Cannot read property 'resurrectTimeout' of undefined.
Metadata
Metadata
Assignees
Labels
No labels