public void run() { try { Session sysSession = sessionManager.newSysSession(); Statement checkpoint = ParserCommand.getAutoCheckpointStatement(Database.this); sysSession.executeCompiledStatement(checkpoint, ValuePool.emptyObjectArray, 0); sysSession.commit(false); sysSession.close(); waiting = false; } catch (Throwable e) { // ignore exceptions // may be InterruptedException or IOException } }