hadoop-common-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From varunsax...@apache.org
Subject hadoop git commit: YARN-6074. FlowRunEntity does not deserialize long values correctly (Rohith Sharma K S via Varun Saxena)
Date Mon, 09 Jan 2017 10:56:44 GMT
Repository: hadoop
Updated Branches:
  refs/heads/YARN-5355 9a2f288a6 -> 8df6f98e5


YARN-6074. FlowRunEntity does not deserialize long values correctly (Rohith Sharma K S via
Varun Saxena)

(cherry picked from commit db490eccced3c42ac27253ca6cbaf10a77e0e116)


Project: http://git-wip-us.apache.org/repos/asf/hadoop/repo
Commit: http://git-wip-us.apache.org/repos/asf/hadoop/commit/8df6f98e
Tree: http://git-wip-us.apache.org/repos/asf/hadoop/tree/8df6f98e
Diff: http://git-wip-us.apache.org/repos/asf/hadoop/diff/8df6f98e

Branch: refs/heads/YARN-5355
Commit: 8df6f98e570f11c57fe37b709d6ef86231d494b7
Parents: 9a2f288
Author: Varun Saxena <varunsaxena@apache.org>
Authored: Mon Jan 9 18:54:22 2017 +0530
Committer: Varun Saxena <varunsaxena@apache.org>
Committed: Mon Jan 9 18:56:21 2017 +0530

----------------------------------------------------------------------
 .../hadoop/yarn/api/records/timelineservice/FlowRunEntity.java   | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/hadoop/blob/8df6f98e/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-api/src/main/java/org/apache/hadoop/yarn/api/records/timelineservice/FlowRunEntity.java
----------------------------------------------------------------------
diff --git a/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-api/src/main/java/org/apache/hadoop/yarn/api/records/timelineservice/FlowRunEntity.java
b/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-api/src/main/java/org/apache/hadoop/yarn/api/records/timelineservice/FlowRunEntity.java
index 410a1bf..5c666cd 100644
--- a/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-api/src/main/java/org/apache/hadoop/yarn/api/records/timelineservice/FlowRunEntity.java
+++ b/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-api/src/main/java/org/apache/hadoop/yarn/api/records/timelineservice/FlowRunEntity.java
@@ -100,7 +100,7 @@ public class FlowRunEntity extends HierarchicalTimelineEntity {
 
   public long getRunId() {
     Object runId = getInfo().get(FLOW_RUN_ID_INFO_KEY);
-    return runId == null ? 0L : (Long) runId;
+    return runId == null ? 0L : ((Number) runId).longValue();
   }
 
   public void setRunId(long runId) {
@@ -117,7 +117,7 @@ public class FlowRunEntity extends HierarchicalTimelineEntity {
 
   public long getMaxEndTime() {
     Object time = getInfo().get(FLOW_RUN_END_TIME);
-    return time == null ? 0L : (Long)time;
+    return time == null ? 0L : ((Number) time).longValue();
   }
 
   public void setMaxEndTime(long endTime) {


---------------------------------------------------------------------
To unsubscribe, e-mail: common-commits-unsubscribe@hadoop.apache.org
For additional commands, e-mail: common-commits-help@hadoop.apache.org


Mime
View raw message