-
Notifications
You must be signed in to change notification settings - Fork 725
Closed
Description
Greetings!
I found an error in the code:
elasticsearch-js/lib/pool/ConnectionPool.js
Line 107 in 1b638d6
if ((opts.now || Date.now()) < connection.resurrectTimeout) { |
const connection = this.connections.find(c => c.id === this.dead[0])
if ((opts.now || Date.now()) < connection.resurrectTimeout) {
debug('Nothing to resurrect')
callback(null, null)
return
}
If the connection is not found. Then the code will throw an error further: Cannot read property 'resurrectTimeout' of undefined
I just got a lot of such errors in production.
Metadata
Metadata
Assignees
Labels
No labels