public static Runnable writeTerminusMarker ( final String nonce , final NodeSettings paths , final VoltLogger logger ) { final File f = new File ( paths . getVoltDBRoot ( ) , VoltDB . TERMINUS_MARKER ) ; return new Runnable ( ) { @ Override public void run ( ) { try ( PrintWriter pw = new PrintWriter ( new FileWriter ( f ) , true ) ) { pw . println ( nonce ) ; } catch ( IOException e ) { throw new RuntimeException ( "Failed to create .complete file for " + f . getName ( ) , e ) ; } } } ; }
Write the shutdown save snapshot terminus marker