From 34804679e3336876c36fd0d4ed995cc356f6be5b Mon Sep 17 00:00:00 2001 From: Wangda Tan Date: Tue, 29 May 2018 09:27:36 -0700 Subject: [PATCH] YARN-8369. Javadoc build failed due to 'bad use of >'. (Takanobu Asanuma via wangda) Change-Id: I79a42154e8f86ab1c3cc939b3745024b8eebe5f4 (cherry picked from commit 17aa40f669f197d43387d67dc00040d14cd00948) --- .../hadoop/yarn/util/resource/ResourceCalculator.java | 4 ++-- .../capacity/CapacitySchedulerPreemptionUtils.java | 8 ++++---- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-common/src/main/java/org/apache/hadoop/yarn/util/resource/ResourceCalculator.java b/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-common/src/main/java/org/apache/hadoop/yarn/util/resource/ResourceCalculator.java index b037a62ab53..178be3a40dc 100644 --- a/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-common/src/main/java/org/apache/hadoop/yarn/util/resource/ResourceCalculator.java +++ b/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-common/src/main/java/org/apache/hadoop/yarn/util/resource/ResourceCalculator.java @@ -251,10 +251,10 @@ public abstract class ResourceCalculator { /** * Check if resource has any major resource types (which are all NodeManagers - * included) has a >0 value. + * included) has a {@literal >} 0 value. * * @param resource resource - * @return returns true if any resource is >0 + * @return returns true if any resource is {@literal >} 0 */ public abstract boolean isAnyMajorResourceAboveZero(Resource resource); } diff --git a/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-resourcemanager/src/main/java/org/apache/hadoop/yarn/server/resourcemanager/monitor/capacity/CapacitySchedulerPreemptionUtils.java b/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-resourcemanager/src/main/java/org/apache/hadoop/yarn/server/resourcemanager/monitor/capacity/CapacitySchedulerPreemptionUtils.java index 59ca92eb5f1..951c01813a4 100644 --- a/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-resourcemanager/src/main/java/org/apache/hadoop/yarn/server/resourcemanager/monitor/capacity/CapacitySchedulerPreemptionUtils.java +++ b/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-resourcemanager/src/main/java/org/apache/hadoop/yarn/server/resourcemanager/monitor/capacity/CapacitySchedulerPreemptionUtils.java @@ -136,12 +136,12 @@ public class CapacitySchedulerPreemptionUtils { * @param conservativeDRF * should we do conservativeDRF preemption or not. * When true: - * stop preempt container when any major resource type <= 0 for to- - * preempt. + * stop preempt container when any major resource type + * {@literal <=} 0 for to-preempt. * This is default preemption behavior of intra-queue preemption * When false: - * stop preempt container when: all major resource type <= 0 for - * to-preempt. + * stop preempt container when: all major resource type + * {@literal <=} 0 for to-preempt. * This is default preemption behavior of inter-queue preemption * @return should we preempt rmContainer. If we should, deduct from * resourceToObtainByPartition