@ Override protected void stopInner ( ) throws VoldemortException { List < VoldemortException > exceptions = new ArrayList < VoldemortException > ( ) ; logger . info ( "Stopping services:" + getIdentityNode ( ) . getId ( ) ) ; /* Stop in reverse order */ exceptions . addAll ( stopOnlineServices ( ) ) ; for ( VoldemortService service : Utils . reversed ( basicServices ) ) { try { service . stop ( ) ; } catch ( VoldemortException e ) { exceptions . add ( e ) ; logger . error ( e ) ; } } logger . info ( "All services stopped for Node:" + getIdentityNode ( ) . getId ( ) ) ; if ( exceptions . size ( ) > 0 ) throw exceptions . get ( 0 ) ; // release lock of jvm heap JNAUtils . tryMunlockall ( ) ; }
Attempt to shutdown the server . As much shutdown as possible will be completed even if intermediate errors are encountered .