@ Override public CountDownLatch snapshotCompleted ( SnapshotCompletionEvent event ) { if ( ! event . truncationSnapshot || ! event . didSucceed ) { VoltDB . crashGlobalVoltDB ( "Failed to truncate command logs by snapshot" , false , null ) ; } else { m_truncationSnapshot = event . multipartTxnId ; m_truncationSnapshotPerPartition = event . partitionTxnIds ; m_replayAgent . returnAllSegments ( ) ; changeState ( ) ; } return new CountDownLatch ( 0 ) ; }
All nodes will be notified about the completion of the truncation snapshot .