HDFS-9569. Log the name of the fsimage being loaded for better supportability. Contributed by Yongjun Zhang.
This commit is contained in:
parent
d90625e038
commit
eb6939cea0
@ -2506,6 +2506,9 @@ Release 2.7.3 - UNRELEASED
|
||||
|
||||
IMPROVEMENTS
|
||||
|
||||
HDFS-9569. Log the name of the fsimage being loaded for better
|
||||
supportability (Yongjun Zhang via kihwal)
|
||||
|
||||
OPTIMIZATIONS
|
||||
|
||||
BUG FIXES
|
||||
|
@ -671,8 +671,8 @@ LayoutVersion.Feature.TXID_BASED_LAYOUT, getLayoutVersion())) {
|
||||
imageFile = imageFiles.get(i);
|
||||
loadFSImageFile(target, recovery, imageFile, startOpt);
|
||||
break;
|
||||
} catch (IOException ioe) {
|
||||
LOG.error("Failed to load image from " + imageFile, ioe);
|
||||
} catch (Exception e) {
|
||||
LOG.error("Failed to load image from " + imageFile, e);
|
||||
target.clear();
|
||||
imageFile = null;
|
||||
}
|
||||
@ -721,7 +721,7 @@ private void rollingRollback(long discardSegmentTxId, long ckptId)
|
||||
|
||||
void loadFSImageFile(FSNamesystem target, MetaRecoveryContext recovery,
|
||||
FSImageFile imageFile, StartupOption startupOption) throws IOException {
|
||||
LOG.debug("Planning to load image :\n" + imageFile);
|
||||
LOG.info("Planning to load image: " + imageFile);
|
||||
StorageDirectory sdForProperties = imageFile.sd;
|
||||
storage.readProperties(sdForProperties, startupOption);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user