You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@storm.apache.org by bo...@apache.org on 2014/07/31 02:04:19 UTC

[15/20] git commit: Make sure errorLapsedSecs is always integer

Make sure errorLapsedSecs is always integer


Project: http://git-wip-us.apache.org/repos/asf/incubator-storm/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-storm/commit/6b50a7f6
Tree: http://git-wip-us.apache.org/repos/asf/incubator-storm/tree/6b50a7f6
Diff: http://git-wip-us.apache.org/repos/asf/incubator-storm/diff/6b50a7f6

Branch: refs/heads/security
Commit: 6b50a7f69984ff8d5dc53def4d5bcfeb12c06c5f
Parents: 4127249
Author: Kishor Patil <kp...@yahoo-inc.com>
Authored: Mon Jul 21 18:49:34 2014 +0000
Committer: Kishor Patil <kp...@yahoo-inc.com>
Committed: Mon Jul 21 18:49:34 2014 +0000

----------------------------------------------------------------------
 STORM-UI-REST-API.md                          | 6 +++---
 storm-core/src/clj/backtype/storm/ui/core.clj | 3 +--
 2 files changed, 4 insertions(+), 5 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-storm/blob/6b50a7f6/STORM-UI-REST-API.md
----------------------------------------------------------------------
diff --git a/STORM-UI-REST-API.md b/STORM-UI-REST-API.md
index 22569cf..72b5ea0 100644
--- a/STORM-UI-REST-API.md
+++ b/STORM-UI-REST-API.md
@@ -250,7 +250,7 @@ Sample Response:
             "spoutId": "spout",
             "tasks": 5,
             "lastError": "",
-            "errorLapsedSecs": "",
+            "errorLapsedSecs": null
             "failed": 0
         }
     ],
@@ -266,7 +266,7 @@ Sample Response:
             "processLatency": "0.043",
             "boltId": "count",
             "lastError": "",
-            "errorLapsedSecs": "",
+            "errorLapsedSecs": null
             "capacity": "0.003",
             "failed": 0
         },
@@ -281,7 +281,7 @@ Sample Response:
             "processLatency": "2.112",
             "boltId": "split",
             "lastError": "",
-            "errorLapsedSecs": "",
+            "errorLapsedSecs": null
             "capacity": "0.000",
             "failed": 0
         }

http://git-wip-us.apache.org/repos/asf/incubator-storm/blob/6b50a7f6/storm-core/src/clj/backtype/storm/ui/core.clj
----------------------------------------------------------------------
diff --git a/storm-core/src/clj/backtype/storm/ui/core.clj b/storm-core/src/clj/backtype/storm/ui/core.clj
index 7df44a9..2fe9ab7 100644
--- a/storm-core/src/clj/backtype/storm/ui/core.clj
+++ b/storm-core/src/clj/backtype/storm/ui/core.clj
@@ -292,8 +292,7 @@
 (defn get-error-time
   [error]
   (if error
-    (time-delta (.get_error_time_secs ^ErrorInfo error))
-    ""))
+    (time-delta (.get_error_time_secs ^ErrorInfo error))))
 
 (defn get-error-data 
   [error]