Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Attempt to fix defaultEvictor. #254

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
scream314 wants to merge 3 commits into coopernurse:master
base: master
Choose a base branch
Loading
from PoweredNow:v3.6.1-fix-DefaultEvictor

Conversation

@scream314
Copy link

@scream314 scream314 commented Feb 8, 2019

If pooledResource is not a Resource (but an Error), it won't have lastIdleTime thus all ifs are returning false meaning the Resource (which is already broken in some way) won't get evicted ever, they stay in the pool and this may result in a ResourceRequest Timed Out error (b/c all slots are occupied by stuck Resources).
As a solution, idleTime is checked, and if it is falsy, the Resource gets evicted.

Signed-off-by: Daniel Schopper scream314@gmail.com

adamkecskes reacted with thumbs up emoji
If `pooledResource` is not a `Resource` (but an `Error`), it won't have `lastIdleTime` thus all ifs are returning `false` meaning the `Resource` (which is already broken in some way) won't get evicted ever, they stay in the pool and this may result in a `ResourceRequest Timed Out` error (b/c all slots are occupied by stuck `Resource`s).
As a solution, `idleTime` is checked, and if it is falsy, the `Resource` gets evicted.
Signed-off-by: Daniel Schopper <scream314@gmail.com>
Copy link
Author

Please someone shed some light how to interpret the eslint errors in the Travis build log, I cannot figure out, what the problem is.

Copy link
Collaborator

sandfox commented Feb 19, 2019

npm run lint or yarn run lint should fix up the formatting errors which travis is complaining about.

...eError: Converting circular structure to JSON` error
Signed-off-by: Daniel Schopper <scream314@gmail.com>
Copy link
Author

scream314 commented Apr 30, 2019
edited
Loading

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.

Copy link

wadeDra commented Aug 13, 2019

I have reported ResourceRequest Timed Out here. I would like to ask what causes" pooledResource is not a Resource (but an Error)" @scream314

Copy link
Author

Sorry, I cannot work on this anymore.
Maybe @steveetm?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

No reviews

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

AltStyle によって変換されたページ (->オリジナル) /