mirror of
https://github.com/scylladb/scylladb.git
synced 2026-06-04 22:13:19 +00:00
"_free_segments_in_zones is not adjusted by segment_pool::reclaim_segments() for empty zones on reclaim under some conditions. For instance when some zone becomes empty due to regular free() and then reclaiming is called from the std allocator, and it is satisfied from a zone after the one which is empty. This would result in free memory in such zone to appear as being leaked due to corrupted free segment count, which may cause a later reclaim to fail. This could result in bad_allocs. The fix is to always collect such zones. Fixes #3129 Refs #3119 Refs #3120" * 'tgrabiec/fix-free_segments_in_zones-leak' of github.com:scylladb/seastar-dev: tests: lsa: Test _free_segments_in_zones is kept correct on reclaim lsa: Expose max_zone_segments for tests lsa: Expose tracker::non_lsa_used_space() lsa: Fix memory leak on zone reclaim