HDFS-10588. False alarm in datanode log - ERROR - Disk Balancer is not enabled. Contributed by Weiwei Yang.

This commit is contained in:
Wei-Chiu Chuang 2016-08-04 19:40:33 -07:00
parent 438a9f047e
commit 18d9e6ec0b

View File

@ -294,7 +294,6 @@ public long getBandwidth() throws DiskBalancerException {
private void checkDiskBalancerEnabled()
throws DiskBalancerException {
if (!isDiskBalancerEnabled) {
LOG.error("Disk Balancer is not enabled.");
throw new DiskBalancerException("Disk Balancer is not enabled.",
DiskBalancerException.Result.DISK_BALANCER_NOT_ENABLED);
}