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 01:48:07 UTC

[8/9] git commit: Merge branch 'show-recent-error' of https://github.com/kishorvpatil/incubator-storm into STORM-366

Merge branch 'show-recent-error' of https://github.com/kishorvpatil/incubator-storm into STORM-366

Conflicts:
	STORM-UI-REST-API.md

STORM-366: Add color span to most recent error and fix ui templates.


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

Branch: refs/heads/master
Commit: af58c3bcfd6f23de34bd895e741831e187734f6e
Parents: b2a8a77 6b50a7f
Author: Robert (Bobby) Evans <bo...@apache.org>
Authored: Wed Jul 30 18:45:37 2014 -0500
Committer: Robert (Bobby) Evans <bo...@apache.org>
Committed: Wed Jul 30 18:45:37 2014 -0500

----------------------------------------------------------------------
 STORM-UI-REST-API.md                            | 46 ++++++++++----------
 storm-core/src/clj/backtype/storm/ui/core.clj   | 11 ++---
 storm-core/src/ui/public/component.html         | 10 +++++
 .../templates/component-page-template.html      |  4 +-
 .../templates/topology-page-template.html       |  8 +++-
 storm-core/src/ui/public/topology.html          | 10 +++++
 6 files changed, 57 insertions(+), 32 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-storm/blob/af58c3bc/STORM-UI-REST-API.md
----------------------------------------------------------------------
diff --cc STORM-UI-REST-API.md
index e8a412d,72b5ea0..6dda435
--- a/STORM-UI-REST-API.md
+++ b/STORM-UI-REST-API.md
@@@ -341,9 -348,13 +348,13 @@@ Response Fields
  |componentType | String | component's type SPOUT or BOLT|
  |windowHint| String | window param value in "hh mm ss" format. Default value is "All Time"|
  |executors| Integer |Number of executor tasks in the component|
- |componentErrors| Array of Strings | List of component errors|
+ |componentErrors| Array of Errors | List of component errors|
 -|componentErrors.time| String | Date/time timezone for the error|
 +|componentErrors.time| Long | Timestamp when the exception occurred |
- |componentErrors.error| String | The stack trace of an exception info |
+ |componentErrors.errorHost| String | host name for the error|
+ |componentErrors.errorPort| String | port for the error|
+ |componentErrors.error| String |Shows the error happened in a component|
+ |componentErrors.errorLapsedSecs| Integer | Number of seconds elapsed since the error happened in a component |
+ |componentErrors.errorWorkerLogLink| String | Link to the worker log that reported the exception |
  |topologyId| String | Topology's Id|
  |tasks| Integer |Number of instances of component|
  |window    |String. Default value "All Time" | window duration for metrics in seconds|
@@@ -377,26 -388,13 +388,13 @@@ Sample Response
      "componentType": "spout",
      "windowHint": "10m 0s",
      "executors": 5,
-     "componentErrors": [
-     	{
-     		"time":1406006074000,
-     		"error":"java.lang.RuntimeException: java.lang.NullPointerException
- 	at backtype.storm.utils.DisruptorQueue.consumeBatchToCursor(DisruptorQueue.java:84)
- 	at backtype.storm.utils.DisruptorQueue.consumeBatchWhenAvailable(DisruptorQueue.java:55)
- 	at backtype.storm.disruptor$consume_batch_when_available.invoke(disruptor.clj:56)
- 	at backtype.storm.disruptor$consume_loop_STAR_$fn__1597.invoke(disruptor.clj:67)
- 	at backtype.storm.util$async_loop$fn__465.invoke(util.clj:377)
- 	at clojure.lang.AFn.run(AFn.java:24)
- 	at java.lang.Thread.run(Thread.java:662)
- Caused by: java.lang.NullPointerException
- 	at backtype.storm.serialization.SerializationFactory$IdDictionary.getStreamName(SerializationFactory.java:137)
- 	at backtype.storm.serialization.KryoTupleDeserializer.deserialize(KryoTupleDeserializer.java:34)
- 	at backtype.storm.daemon.executor$mk_task_receiver$fn__3967.invoke(executor.clj:311)
- 	at backtype.storm.disruptor$clojure_handler$reify__1585.onEvent(disruptor.clj:43)
- 	at backtype.storm.utils.DisruptorQueue.consumeBatchToCursor(DisruptorQueue.java:81)
- 	... 6 more"
-     	}
-     ],
 -    "componentErrors":[{"time": "Fri, 18 Jul 2014 19:00:16 +0000",
++    "componentErrors":[{"time": 1406006074000,
+                         "errorHost": "10.11.1.70",
+                         "errorPort": 6701,
+                         "errorWorkerLogLink": "http://10.11.1.7:8000/log?file=worker-6701.log",
+                         "errorLapsedSecs": 16,
+                         "error": "java.lang.RuntimeException: java.lang.StringIndexOutOfBoundsException: Some Error\n\tat backtype.storm.utils.DisruptorQueue.consumeBatchToCursor(DisruptorQueue.java:128)\n\tat backtype.storm.utils.DisruptorQueue.consumeBatchWhenAvailable(DisruptorQueue.java:99)\n\tat backtype.storm.disruptor$consume_batch_when_available.invoke(disruptor.clj:80)\n\tat backtype...more.."
+     }],
      "topologyId": "WordCount3-1-1402960825",
      "tasks": 5,
      "window": "600",

http://git-wip-us.apache.org/repos/asf/incubator-storm/blob/af58c3bc/storm-core/src/clj/backtype/storm/ui/core.clj
----------------------------------------------------------------------

http://git-wip-us.apache.org/repos/asf/incubator-storm/blob/af58c3bc/storm-core/src/ui/public/component.html
----------------------------------------------------------------------