Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Relax restrictions on filesystem size reporting in DiskUsage #9283

Merged
merged 1 commit into from Jan 26, 2015

Commits on Jan 26, 2015

  1. Relax restrictions on filesystem size reporting

    Apparently some filesystems such as ZFS and occasionally NTFS can report
    filesystem usages that are negative, or above the maximum total size of
    the filesystem. This relaxes the constraints on `DiskUsage` so that an
    exception is not thrown.
    
    If 0 is passed as the totalBytes, `.getFreeDiskAsPercentage()` will
    always return 100.0% free (to ensure the disk threshold decider fails
    open)
    
    Fixes elastic#9249
    Relates to elastic#9260
    dakrone committed Jan 26, 2015
    Copy the full SHA
    537769c View commit details
    Browse the repository at this point in the history