Open scream314 opened 5 years ago
Please someone shed some light how to interpret the eslint errors in the Travis build log, I cannot figure out, what the problem is.
npm run lint
or yarn run lint
should fix up the formatting errors which travis is complaining about.
This is definitely not good as it is, the added JSON.stringify
produces a TypeError: Converting circular structure to JSON
. Currently I am testing it with util.inspect
instead.
I have reported ResourceRequest Timed Out here. I would like to ask what causes” pooledResource is not a Resource (but an Error)“ @scream314
Sorry, I cannot work on this anymore. Maybe @steveetm?
If
pooledResource
is not aResource
(but anError
), it won't havelastIdleTime
thus all ifs are returningfalse
meaning theResource
(which is already broken in some way) won't get evicted ever, they stay in the pool and this may result in aResourceRequest Timed Out
error (b/c all slots are occupied by stuckResource
s). As a solution,idleTime
is checked, and if it is falsy, theResource
gets evicted.Signed-off-by: Daniel Schopper scream314@gmail.com