Quanlong Huang has uploaded this change for review. ( http://gerrit.cloudera.org:8080/19916
Change subject: IMPALA-12053: Expose event-processor error message in WebUI ...................................................................... IMPALA-12053: Expose event-processor error message in WebUI When the event-processor goes into the ERROR/NEEDS_INVALIDATE state, we can only check logs to get the detailed information. This is inconvenient in triaging failures. This patch exposes the error message in the /events WebUI. It includes the timestamp string and the stacktrace of the exception. This patch makes the /events page visable. Also modifies the test code of EventProcessorUtils.wait_for_synced_event_id() to print the error message if the event processor is down. A trivial bug of lastProcessedEvent is not updated (IMPALA-11588) is also fixed in this patch. Refactored the variable to be a member of the class so internal methods can update it before processing each event. Tests: - Manually inject codes to fail the event processor and verified the WebUI. - Ran metadata/test_event_processing.py when the event processor is in ERROR state. Verified the error message is shown up in test output. Change-Id: I077375422bc3d24eed57c95c6b05ac408228f083 --- M be/src/catalog/catalog-server.cc M common/thrift/JniCatalog.thrift M fe/src/main/java/org/apache/impala/catalog/events/MetastoreEvents.java M fe/src/main/java/org/apache/impala/catalog/events/MetastoreEventsProcessor.java M tests/util/event_processor_utils.py M www/events.tmpl 6 files changed, 75 insertions(+), 17 deletions(-) git pull ssh://gerrit.cloudera.org:29418/Impala-ASF refs/changes/16/19916/1 -- To view, visit http://gerrit.cloudera.org:8080/19916 To unsubscribe, visit http://gerrit.cloudera.org:8080/settings Gerrit-Project: Impala-ASF Gerrit-Branch: master Gerrit-MessageType: newchange Gerrit-Change-Id: I077375422bc3d24eed57c95c6b05ac408228f083 Gerrit-Change-Number: 19916 Gerrit-PatchSet: 1 Gerrit-Owner: Quanlong Huang <[email protected]>
