Skip to content

Commit

Permalink
Make sure errorLapsedSecs is always integer
Browse files Browse the repository at this point in the history
  • Loading branch information
kishorvpatil committed Jul 21, 2014
1 parent 9a41b50 commit 6d0311f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 deletions.
6 changes: 3 additions & 3 deletions STORM-UI-REST-API.md
Original file line number Diff line number Diff line change
Expand Up @@ -250,7 +250,7 @@ Sample Response:
"spoutId": "spout",
"tasks": 5,
"lastError": "",
"errorLapsedSecs": "",
"errorLapsedSecs": null
"failed": 0
}
],
Expand All @@ -266,7 +266,7 @@ Sample Response:
"processLatency": "0.043",
"boltId": "count",
"lastError": "",
"errorLapsedSecs": "",
"errorLapsedSecs": null
"capacity": "0.003",
"failed": 0
},
Expand All @@ -281,7 +281,7 @@ Sample Response:
"processLatency": "2.112",
"boltId": "split",
"lastError": "",
"errorLapsedSecs": "",
"errorLapsedSecs": null
"capacity": "0.000",
"failed": 0
}
Expand Down
5 changes: 2 additions & 3 deletions storm-core/src/clj/backtype/storm/ui/core.clj
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand Down

0 comments on commit 6d0311f

Please sign in to comment.