Details
-
Bug
-
Status: Patch Available
-
Minor
-
Resolution: Unresolved
-
2.0.0-alpha
-
None
Description
Report from a user here: https://groups.google.com/a/cloudera.org/d/msg/cdh-user/pIhNyDVxdVY/b7ENZmEvBjIJ, post archived at http://pastebin.com/eVFkk0A0
This user had a specific DN that had a large non-DFS usage among dfs.data.dirs, and very little DFS usage (which is computed against total possible capacity).
Balancer apparently only looks at the usage, and ignores to consider that non-DFS usage may also be high on a DN/cluster. Hence, it thinks that if a DFS Usage report from DN is 8% only, its got a lot of free space to write more blocks, when that isn't true as shown by the case of this user. It went on scheduling writes to the DN to balance it out, but the DN simply can't accept any more blocks as a result of its disks' state.
I think it would be better if we computed the actual utilization based on (100-(actual remaining space))/(capacity), as opposed to the current (dfs used)/(capacity). Thoughts?
This isn't very critical, however, cause it is very rare to see DN space being used for non DN data, but it does expose a valid bug.
Attachments
Attachments
Issue Links
- is related to
-
HDFS-8278 HDFS Balancer should consider remaining storage % when checking for under-utilized machines
- Resolved
- links to