HDFS-11147. Remove confusing log output in FsDatasetImpl#getInitialVolumeFailureInfos. Contributed by Chen Liang.
This commit is contained in:
parent
59bfcbf357
commit
04a024b683
|
@ -364,14 +364,12 @@ class FsDatasetImpl implements FsDatasetSpi<FsVolumeImpl> {
|
||||||
Set<StorageLocation> failedLocationSet = Sets.newHashSetWithExpectedSize(
|
Set<StorageLocation> failedLocationSet = Sets.newHashSetWithExpectedSize(
|
||||||
dataLocations.size());
|
dataLocations.size());
|
||||||
for (StorageLocation sl: dataLocations) {
|
for (StorageLocation sl: dataLocations) {
|
||||||
LOG.info("Adding to failedLocationSet " + sl);
|
|
||||||
failedLocationSet.add(sl);
|
failedLocationSet.add(sl);
|
||||||
}
|
}
|
||||||
for (Iterator<Storage.StorageDirectory> it = storage.dirIterator();
|
for (Iterator<Storage.StorageDirectory> it = storage.dirIterator();
|
||||||
it.hasNext(); ) {
|
it.hasNext(); ) {
|
||||||
Storage.StorageDirectory sd = it.next();
|
Storage.StorageDirectory sd = it.next();
|
||||||
failedLocationSet.remove(sd.getStorageLocation());
|
failedLocationSet.remove(sd.getStorageLocation());
|
||||||
LOG.info("Removing from failedLocationSet " + sd.getStorageLocation());
|
|
||||||
}
|
}
|
||||||
List<VolumeFailureInfo> volumeFailureInfos = Lists.newArrayListWithCapacity(
|
List<VolumeFailureInfo> volumeFailureInfos = Lists.newArrayListWithCapacity(
|
||||||
failedLocationSet.size());
|
failedLocationSet.size());
|
||||||
|
|
Loading…
Reference in New Issue