-
Notifications
You must be signed in to change notification settings - Fork 324
Connections not properly closed on Kernel shutdown #400
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
Comments
Could you elaborate a bit more on the specific issue you are facing? |
If I understand correctly => if you have a ton of functional tests instantiating rebooted kernels, and therefore reinstantiating the Redis instances, they will start failing in the end indicating Redis has run out of sockets or something? |
@applike-ss I've just typed a bit in a related report at #412 (comment). As said there I'm not all too excited about changing or extending perfectly fine code just to facilitate test suites if it is easier and more correct to fix the test suite instead. What is your take on that? |
@curry684 i do understand your point, but it is not the test case/suite that creates the problem. |
You are right, having lots of tests using redis, we are facing an issue with connection count increasing to the maximum of the machine running the tests. |
@applike-ss check out #415 - should be a solution you're looking for. |
@supersmile2009 thanks a lot. Looking forward for it to be merged. |
Fixed in 2.x by #415 but keeping this issue open to better investigate how to do this in 3.0 without making a service needlessly public. |
Like @dkarlovi mentioned on #415 it is possible to create env-specific service for test environment and declare it public instead of making public the original service. If shutdown is indeed only a unit tests thing, than a public service prefixed by |
@supersmile2009 if you wish to support PPM, the official way to do it is to tag the service with |
I experience propblems because of too many open connections during unit tests.
These connection are at half from ongr which doesn't close the connection on kernel shutdown => Garbage collection doesn't free it.
The used PHP Version is 7.1.12
Bundle is 2.0.6
The text was updated successfully, but these errors were encountered: