public void releaseAndTryRemoveAll ( ) throws Exception { Collection < String > children = getAllPaths ( ) ; Exception exception = null ; for ( String child : children ) { try { releaseAndTryRemove ( ' ' + child ) ; } catch ( Exception e ) { exception = ExceptionUtils . firstOrSuppressed ( e , exception ) ; } } if ( exception != null ) { throw new Exception ( "Could not properly release and try removing all state nodes." , exception ) ; } }
Releases all lock nodes of this ZooKeeperStateHandleStores and tries to remove all state nodes which are not locked anymore .