File tree Expand file tree Collapse file tree
hbase-server/src/main/java/org/apache/hadoop/hbase/master/snapshot Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -252,11 +252,11 @@ public void process() {
252252 try {
253253 // if the working dir is still present, the snapshot has failed. it is present we delete
254254 // it.
255- if (!workingDirFs .delete (workingDir , true )) {
256- LOG .error ("Couldn't delete snapshot working directory:" + workingDir );
255+ if (workingDirFs . exists ( workingDir ) && !workingDirFs .delete (workingDir , true )) {
256+ LOG .error ("Couldn't delete snapshot working directory: {}" , workingDir );
257257 }
258258 } catch (IOException e ) {
259- LOG .error ("Couldn't delete snapshot working directory:" + workingDir );
259+ LOG .error ("Couldn't get or delete snapshot working directory: {}" , workingDir , e );
260260 }
261261 if (LOG .isDebugEnabled ()) {
262262 LOG .debug ("Table snapshot journal : \n " + status .prettyPrintJournal ());
You can’t perform that action at this time.
0 commit comments