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:20 UTC
[16/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/6d0311f8
Tree: http://git-wip-us.apache.org/repos/asf/incubator-storm/tree/6d0311f8
Diff: http://git-wip-us.apache.org/repos/asf/incubator-storm/diff/6d0311f8
Branch: refs/heads/security
Commit: 6d0311f82fa2acf8fbc292c381c7e3d507bd651c
Parents: 9a41b50
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:53:03 2014 +0000
----------------------------------------------------------------------
STORM-UI-REST-API.md | 6 +++---
storm-core/src/clj/backtype/storm/ui/core.clj | 5 ++---
2 files changed, 5 insertions(+), 6 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/incubator-storm/blob/6d0311f8/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/6d0311f8/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 a7492f9..a8773de 100644
--- a/storm-core/src/clj/backtype/storm/ui/core.clj
+++ b/storm-core/src/clj/backtype/storm/ui/core.clj
@@ -321,9 +321,8 @@
(defn get-error-time
[error]
- (if error
- (time-delta (.get_error_time_secs ^ErrorInfo error))
- ""))
+ (if error
+ (time-delta (.get_error_time_secs ^ErrorInfo error))))
(defn get-error-data
[error]