try{ this.logger.info("successfully compact the log store, will now ask the statemachine to apply the snapshot"); if(!this.stateMachine.applySnapshot(snapshotSyncRequest.getSnapshot())){ this.logger.error("failed to apply the snapshot after log compacted, to ensure the safety, will shutdown the system"); System.exit(-1);
try{ this.logger.info("successfully compact the log store, will now ask the statemachine to apply the snapshot"); if(!this.stateMachine.applySnapshot(snapshotSyncRequest.getSnapshot())){ this.logger.error("failed to apply the snapshot after log compacted, to ensure the safety, will shutdown the system"); this.stateMachine.exit(-1);
try{ this.logger.info("successfully compact the log store, will now ask the statemachine to apply the snapshot"); if(!this.stateMachine.applySnapshot(snapshotSyncRequest.getSnapshot())){ this.logger.error("failed to apply the snapshot after log compacted, to ensure the safety, will shutdown the system"); this.stateMachine.exit(-1);