HDFS-4048. Use ERROR instead of INFO for volume failure logs. Contributed by Stephen Chu
git-svn-id: https://svn.apache.org/repos/asf/hadoop/common/trunk@1407345 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
be94bf6b57
commit
312eb23598
|
@ -461,6 +461,9 @@ Release 2.0.3-alpha - Unreleased
|
|||
HDFS-4046. Rename ChecksumTypeProto enum NULL since it is illegal in
|
||||
C/C++. (Binglin Chang via suresh)
|
||||
|
||||
HDFS-4048. Use ERROR instead of INFO for volume failure logs.
|
||||
(Stephen Chu via eli)
|
||||
|
||||
OPTIMIZATIONS
|
||||
|
||||
BUG FIXES
|
||||
|
|
|
@ -433,7 +433,7 @@ public abstract class Storage extends StorageInfo {
|
|||
if (!root.exists()) {
|
||||
// storage directory does not exist
|
||||
if (startOpt != StartupOption.FORMAT) {
|
||||
LOG.info("Storage directory " + rootPath + " does not exist");
|
||||
LOG.warn("Storage directory " + rootPath + " does not exist");
|
||||
return StorageState.NON_EXISTENT;
|
||||
}
|
||||
LOG.info(rootPath + " does not exist. Creating ...");
|
||||
|
@ -442,15 +442,15 @@ public abstract class Storage extends StorageInfo {
|
|||
}
|
||||
// or is inaccessible
|
||||
if (!root.isDirectory()) {
|
||||
LOG.info(rootPath + "is not a directory");
|
||||
LOG.warn(rootPath + "is not a directory");
|
||||
return StorageState.NON_EXISTENT;
|
||||
}
|
||||
if (!root.canWrite()) {
|
||||
LOG.info("Cannot access storage directory " + rootPath);
|
||||
LOG.warn("Cannot access storage directory " + rootPath);
|
||||
return StorageState.NON_EXISTENT;
|
||||
}
|
||||
} catch(SecurityException ex) {
|
||||
LOG.info("Cannot access storage directory " + rootPath, ex);
|
||||
LOG.warn("Cannot access storage directory " + rootPath, ex);
|
||||
return StorageState.NON_EXISTENT;
|
||||
}
|
||||
|
||||
|
|
|
@ -137,7 +137,7 @@ class FsVolumeList {
|
|||
if (removedVols != null && removedVols.size() > 0) {
|
||||
// Replace volume list
|
||||
volumes = Collections.unmodifiableList(volumeList);
|
||||
FsDatasetImpl.LOG.info("Completed checkDirs. Removed " + removedVols.size()
|
||||
FsDatasetImpl.LOG.warn("Completed checkDirs. Removed " + removedVols.size()
|
||||
+ " volumes. Current volumes: " + this);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue