-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Fix memory leaks caused by throwing reader_concurrency_semaphore::consume() #12756
Fix memory leaks caused by throwing reader_concurrency_semaphore::consume() #12756
Conversation
ddaf17e
to
bc4e7d0
Compare
CI state |
CI state |
Don't merge, v2 will be coming. |
bc4e7d0
to
f3fb04b
Compare
v2:
|
CI state |
Sanity Tests / cdc_test.TestCdc.test_cluster_reduction_with_cdc[Single_cluster] @kbr-scylla is this a known flaky test? Seems completely unrelated to this PR. |
I personally haven't seen this test fail before. |
CI state |
The test failed with:
|
CI state |
f3fb04b
to
4b6a751
Compare
v3:
|
I just happen on next a run |
this seems like a coredump in scylla-jmx |
CI state |
Said method can now throw `std::bad_alloc` since aab5954. All call-sites should have been adapted in the series introducing the throw, but some managed to slip through because the oom unit test didn't run in debug mode. In this commit the remaining unpatched call-sites are fixed.
… in debug mode Said tests require on being run with a limited amount of memory to be really useful. When the memory amount is unexpected, they silently exit. Which is exactly what they did in debug mode too, where the amount of memory available cannot be controlled. Disable the check in debug mode.
4b6a751
to
0961a3f
Compare
Rebased. |
CI state |
@scylladb/scylla-maint ping. |
1 similar comment
@scylladb/scylla-maint ping. |
Said method can now throw
std::bad_alloc
since aab5954. All call-sites should have been adapted in the series introducing the throw, but some managed to slip through because the oom unit test didn't run in debug mode. This series fixes the remaining unpatched call-sites and makes sure the test runs in debug mode too, so leaks like this are detected.Fixes: #12767