public void stopSyncInternal ( AlluxioURI syncPoint , MountTable . Resolution resolution ) { try ( LockResource r = new LockResource ( mSyncManagerLock ) ) { LOG . debug ( "stop syncPoint {}" , syncPoint . getPath ( ) ) ; RemoveSyncPointEntry removeSyncPoint = File . RemoveSyncPointEntry . newBuilder ( ) . setSyncpointPath ( syncPoint . toString ( ) ) . setMountId ( resolution . getMountId ( ) ) . build ( ) ; apply ( removeSyncPoint ) ; try { stopSyncPostJournal ( syncPoint ) ; } catch ( Throwable e ) { // revert state; AddSyncPointEntry addSyncPoint = File . AddSyncPointEntry . newBuilder ( ) . setSyncpointPath ( syncPoint . toString ( ) ) . build ( ) ; apply ( addSyncPoint ) ; recoverFromStopSync ( syncPoint , resolution . getMountId ( ) ) ; } } }
stop active sync on a URI .