Repository navigation
fix: evictor never runs when autostart:false - #201
Conversation
|
Yay, thanks for hunting this down (and writing some tests). I'll try to test this locally and get it merged in the next day or two |
|
Ok, I've had a slightly deeper look and can see a couple of potential problems, mainly that I wonder if the solution to is for |
|
Thats why I checked for We can make this more safe by moving this check to
I guess first acquire call can do that by calling start logic |
|
Hey @sushantdhiman @sandfox, is there an update on this issue? sequelize/sequelize#7884 is pretty brutal because of our users' requests timing out. |
|
sorry! had a million other things pile up. @sushantdhiman somehow I completely missed 2 of those 3 lines! Couldn't see the wood for the trees. Yeah, your PR is actually totally fine in that respect, but after some thought I'd much prefer that Are you ok to make the changes? As soonas they are ready I'll try and get a release out. |
|
We have enough safeguards to prevent multiple evictors, so this fix should be good to go @sandfox |
|
Ah nvm @sandfox I misread your comment, I will think about it. If we just need to start the pool, we can do it ourselves without any changes to pool library |
|
If it's any further influence on your decision, I'm probably going to add it if you don't :-) (I'll put it behind a minor version bump). |
|
Would be great if this could be merged here so the sequelize |
|
waiting for merged! |
|
Agreed. This is an absolutely massive issue that affects production hardware. Chucking another vote in for the merge. |
|
ok, @sushantdhiman fixes along with my proposed changes have now been merged and released as |
Closes #174
Closes sequelize/sequelize#8126