the attached database contains just 1 empty table.
test.mv.db.zip
opening and closing it with h2shell leads to infinite compaction until it times out.
of course this also happens with lots of tables and data and when embedded,
but this is a minimised example.
i inserted a few writes into the code to illustrate the loop, see the attached log.
test.log