HDFS-13692. StorageInfoDefragmenter floods log when compacting StorageInfo TreeSet. Contributed by Bharat Viswanadham.

This commit is contained in:
Yiqun Lin 2018-06-22 10:50:54 +08:00
parent 99948565cb
commit 30728aced4

View File

@ -4576,7 +4576,7 @@ private void scanAndCompactStorages() throws InterruptedException {
datanodesAndStorages.add(node.getDatanodeUuid());
datanodesAndStorages.add(storage.getStorageID());
}
LOG.info("StorageInfo TreeSet fill ratio {} : {}{}",
LOG.debug("StorageInfo TreeSet fill ratio {} : {}{}",
storage.getStorageID(), ratio,
(ratio < storageInfoDefragmentRatio)
? " (queued for defragmentation)" : "");