-
Notifications
You must be signed in to change notification settings - Fork 136
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
pool: Fix pool size health check in case of asynchronous release of s…
…pace We have observed that operating sometimes don't report freed space right away when deleting files. This was observed on Linux (using ext4 and Mac OS X), but the behaviour can likely be observed on many other systems. The pool periodically checks the free space on the pool partition and compares it with its own internal account of free space. If the partition does not have enough free space, the pool size is reduced accordingly. If the operating system does not report free space right after a file has been deleted, it may happen that the pool's internal account object has registered free space that isn't yet reported as free by the operating system. In that case, the periodic health check may falsely reduce the pool size. The patch fixes this by introducing a 60 second grace period after the pool deletes a file. During this period, the pool size health check is suppressed. Target: trunk Request: 2.10 Request: 2.9 Request: 2.8 Request: 2.7 Request: 2.6 Require-notes: yes Require-book: no Acked-by: Paul Millar <paul.millar@desy.de> Patch: https://rb.dcache.org/r/7366/ (cherry picked from commit b721145) Conflicts: modules/dcache/src/main/java/org/dcache/pool/repository/v5/CheckHealthTask.java (cherry picked from commit 97fa65a) Conflicts: modules/dcache/src/main/java/org/dcache/pool/repository/v5/CheckHealthTask.java
- Loading branch information
Showing
2 changed files
with
44 additions
and
19 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters