-
Notifications
You must be signed in to change notification settings - Fork 556
*: improve leak detection UX for iters, DBs #2032
Copy link
Copy link
Closed
Description
We've run into a few issues caused by various types of "leak" - e.g. failure to close an iterator, failure to decrement a ref count, which can create a resource leak (file, memory, etc.).
It would be nice to have some general mechanism for asserting that an iterator / DB is closed. This is especially useful in testing (both unit and metamorphic tests).
I'm thinking of something like we have already in Cockroach - a defer that runs a leak check (example). The UX could be improved there, but that might be a good starting point.
Jira issue: PEBBLE-140
Reactions are currently unavailable