You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@bookkeeper.apache.org by GitBox <gi...@apache.org> on 2018/06/07 22:46:35 UTC
[GitHub] dlg99 opened a new issue #1498: Log messages/exception text in
DiskChecker shows "used < threshold" in "used > threshold" situations
dlg99 opened a new issue #1498: Log messages/exception text in DiskChecker shows "used < threshold" in "used > threshold" situations
URL: https://github.com/apache/bookkeeper/issues/1498
**BUG REPORT**
Log messages/exception text in DiskChecker shows "used < threshold" in "used > threshold" situations
```java
if (used > diskUsageThreshold) {
LOG.error("Space left on device {} : {}, Used space fraction: {} < threshold {}.",
dir, usableSpace, used, diskUsageThreshold);
throw new DiskOutOfSpaceException("Space left on device "
+ usableSpace + " Used space fraction:" + used + " < threshold " + diskUsageThreshold, used);
}
// Warn should be triggered only if disk usage threshold doesn't trigger first.
if (used > diskUsageWarnThreshold) {
LOG.warn("Space left on device {} : {}, Used space fraction: {} < WarnThreshold {}.",
dir, usableSpace, used, diskUsageThreshold);
throw new DiskWarnThresholdException("Space left on device:"
+ usableSpace + " Used space fraction:" + used + " < WarnThreshold:" + diskUsageWarnThreshold,
used);
```
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
With regards,
Apache Git Services