oliver-zehentleitner / maity

test infra: a MariaDB test server whose data dir is gone keeps running and fills the disk

Sign in to report

tsk-gebkd7y92g8t Open

On 2026-11-19 a mysqld started for a hub MariaDB test session (instance g7yz, --datadir=/tmp/g7yz/mysql/data, port 33067) kept running for 3.5 h after its /tmp/g7yz directory was deleted. With its files gone it logged errors without pause into its deleted err.log, which reached 189 GB and filled the shared machine's disk to 0 bytes. Every agent on the machine lost its shell output, maity wait ended with ENOSPC, placements went not-listening and claims expired. Freeing files did not help, since the space of a deleted open file comes back only when the process ends; the process sat in another sandbox, so only root could kill it.

Done when: whatever starts a local MariaDB/PostgreSQL for tests (scripts, make targets, agent helpers) stops the server before or when it removes the data dir, also on Ctrl-C, a killed session and a timeout (a trap / process group / pid file checked on next start); the error log has a size cap; and docs/ (test setup) says how to find and stop an orphaned test server. Test: a test that removes the data dir of a running test server sees the server ended.