Join GitHub today
GitHub is home to over 36 million developers working together to host and review code, manage projects, and build software together.Sign up
during 'nodetool cleanup' space usage goes 2X #3735
it was complained that during 'nodetool cleanup' space usage goes 2X.
That's because we hold reference to all sstables being cleaned up, and cleanup itself is serialized. So disk space for data and index of cleaned sstables are not released until the whole operation is finished.
Fix would be about releasing reference to cleaned sstable as iteration goes on. That's in table::cleanup_sstables() at database.cc