Cleaning up logging

Fixing one of the logging statements for the disk usage check process
that warns when the amount of free space is too low
This commit is contained in:
Christopher L. Shannon (cshannon) 2015-10-07 11:53:57 +00:00
parent 816e8dfe54
commit 6fef9eea65
1 changed files with 1 additions and 2 deletions

View File

@ -2027,7 +2027,6 @@ public class BrokerService implements Service {
String storeName = storeUsage instanceof StoreUsage ? "Store" : "Temporary Store";
long storeLimit = storeUsage.getLimit();
long storeCurrent = storeUsage.getUsage();
long usableSpace = dir.getUsableSpace();
long totalSpace = dir.getTotalSpace();
long totalUsableSpace = dir.getUsableSpace() + storeCurrent;
//compute byte value of the percent limit
@ -2067,7 +2066,7 @@ public class BrokerService implements Service {
LOG.warn(storeName + " limit is " + storeLimit / oneMeg +
" mb (current store usage is " + storeCurrent / oneMeg +
" mb). The data directory: " + dir.getAbsolutePath() +
" only has " + usableSpace / oneMeg +
" only has " + totalUsableSpace / oneMeg +
" mb of usable space - resetting to maximum available disk space: " +
totalUsableSpace / oneMeg + " mb");
storeUsage.setLimit(totalUsableSpace);