[ 
https://issues.apache.org/jira/browse/GEODE-5237?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Lynn Gallinat resolved GEODE-5237.
----------------------------------
       Resolution: Fixed
    Fix Version/s: 1.8.0

commit 5321796cc5f2cfdbe78ec9be60a80b194ea0cc71 (HEAD -> develop, 
origin/develop)
Author: lgallinat <lgalli...@users.noreply.github.com>
Date:   Thu May 24 14:24:37 2018 -0700

    GEODE-5237 DiskAccessException can sometimes state that actual usage is 
less than critical (#1990)

> DiskAccessException can sometimes state that actual usage is less than 
> critical
> -------------------------------------------------------------------------------
>
>                 Key: GEODE-5237
>                 URL: https://issues.apache.org/jira/browse/GEODE-5237
>             Project: Geode
>          Issue Type: Bug
>          Components: persistence
>            Reporter: Lynn Gallinat
>            Assignee: Lynn Gallinat
>            Priority: Major
>              Labels: pull-request-available
>             Fix For: 1.8.0
>
>          Time Spent: 20m
>  Remaining Estimate: 0h
>
> It's possible that GEODE can throw a DiskAccessException stating that the 
> current file system usage exceeds the critical threshold, but the exception's 
> message states that the file system usage is UNDER the critical threshold, as 
> follows. This appears to be only an error in what is logged and GEODE really 
> is over critical.
> org.apache.geode.cache.DiskAccessException: For DiskStore: dmDiskStore_3604: 
> Critical disk usage threshold exceeded for volume 
> /var/vcap/data/scratch/serialParRegHABridgePersistParOffline-0516-200217/vm_2_bridge3_disk_1:
>  the file system is 5% full, which exceeds the critical threshold of 
> 5.203678%.
> The problem is that GEODE rounds the file system usage before logging it in 
> the message in the method DiskUsage.update(float, float), and this can cause 
> the problem when it gets rounded down:
>  double use = 100.0 * (total - remaining) / total;
>  recordStats(total, remaining, elapsed);
>  String pct = Math.round(use) + "%";  <=====



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to