DF should use used + available as the capacity of this volume

Key: HADOOP-5735
URL: https://issues.apache.org/jira/browse/HADOOP-5735
Project: Hadoop Core
Issue Type: Bug
Components: dfs
Affects Versions: 0.20.0, 0.19.1
Environment: UNIX
Reporter: Rong-En Fan

Generally speaking, UNIX tends to keep certain percentage of disk space reserved for root used only (can be changed via tune2fs or when mkfs). Therefore, Hadoop's DF class should not use the 1st number in df output as the capacity of this volume. Instead, it should use used+available as its capacity.

Otherwise, datanode may think this volume is not full but in fact it is.

The code in question is src/core/org/apache/hadoop/fs/DF.java, method parseExecResult()

This message is automatically generated by JIRA.
You can reply to this email to add a comment to the issue online.

Search Discussions

Related Discussions

Discussion Navigation
viewthread | post
Discussion Overview
groupcommon-dev @
postedApr 24, '09 at 6:13a
activeApr 24, '09 at 6:13a

1 user in discussion

Rong-En Fan (JIRA): 1 post



site design / logo © 2022 Grokbase