YARN-1388. Fair Scheduler page always displays blank fair share (Liyin Liang via Sandy Ryza)

git-svn-id: https://svn.apache.org/repos/asf/hadoop/common/trunk@1538855 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Sanford Ryza 2013-11-05 02:14:23 +00:00
parent ee279fb19b
commit d12010e658
2 changed files with 5 additions and 1 deletions

View File

@ -138,6 +138,9 @@ Release 2.2.1 - UNRELEASED
YARN-1321. Changed NMTokenCache to support both singleton and an instance
usage. (Alejandro Abdelnur via vinodkv)
YARN-1388. Fair Scheduler page always displays blank fair share (Liyin Liang
via Sandy Ryza)
OPTIMIZATIONS
BUG FIXES

View File

@ -77,7 +77,8 @@ protected void render(Block html) {
if (maxApps < Integer.MAX_VALUE) {
ri._("Max Running Applications:", qinfo.getMaxApplications());
}
ri._("Fair Share:", qinfo.getFairShare().toString());
ri._("Fair Share:", StringEscapeUtils.escapeHtml(
qinfo.getFairShare().toString()));
html._(InfoBlock.class);