HDFS-11709. StandbyCheckpointer should handle an non-existing legacyOivImageDir gracefully. Contributed by Erik Krogen.
(cherry picked from commit d8a33098309f17dfb0e3a000934f68394de44bf7) (cherry picked from commit fc46f398d9192e83c7197115589eca7805c49943)
This commit is contained in:
parent
40b9c30d64
commit
70f18911c7
@ -190,7 +190,12 @@ private void doCheckpoint() throws InterruptedException, IOException {
|
||||
// Save the legacy OIV image, if the output dir is defined.
|
||||
String outputDir = checkpointConf.getLegacyOivImageDir();
|
||||
if (outputDir != null && !outputDir.isEmpty()) {
|
||||
img.saveLegacyOIVImage(namesystem, outputDir, canceler);
|
||||
try {
|
||||
img.saveLegacyOIVImage(namesystem, outputDir, canceler);
|
||||
} catch (IOException ioe) {
|
||||
LOG.error("Exception encountered while saving legacy OIV image; "
|
||||
+ "continuing with other checkpointing steps", ioe);
|
||||
}
|
||||
}
|
||||
} finally {
|
||||
namesystem.cpUnlock();
|
||||
|
Loading…
x
Reference in New Issue
Block a user