question: private void terminateAndWaitFsyncService ( ) throws Exception { if ( fsyncService . isTerminated ( ) ) return ; fsyncService . shutdown ( ) ; fsyncService . awaitTermination ( 3600 , TimeUnit . SECONDS ) ; Exception fsyncExceptionCopy = fsyncException ; if ( fsyncExceptionCopy != null ) throw fsyncExceptionCopy ; }
target:  terminate the fsync service and wait for all the tasks to complete. If it is already terminated