|
@@ -322,8 +322,9 @@ public class BootstrapStandby implements Tool, Configurable {
|
|
// Write seen_txid to the formatted image directories.
|
|
// Write seen_txid to the formatted image directories.
|
|
storage.writeTransactionIdFileToStorage(imageTxId, NameNodeDirType.IMAGE);
|
|
storage.writeTransactionIdFileToStorage(imageTxId, NameNodeDirType.IMAGE);
|
|
} catch (IOException ioe) {
|
|
} catch (IOException ioe) {
|
|
- image.close();
|
|
|
|
throw ioe;
|
|
throw ioe;
|
|
|
|
+ } finally {
|
|
|
|
+ image.close();
|
|
}
|
|
}
|
|
return 0;
|
|
return 0;
|
|
}
|
|
}
|