TSFenwick commented on code in PR #13513:
URL: https://github.com/apache/druid/pull/13513#discussion_r1042664391
##########
indexing-service/src/main/java/org/apache/druid/indexing/common/task/IndexTask.java:
##########
@@ -546,6 +553,41 @@ public TaskStatus runTask(final TaskToolbox toolbox)
}
}
+ private void emitUnparseableEvents(TaskToolbox toolbox)
+ {
+ String taskId = getId();
+ for(Map.Entry<String, Object> unparseableEvents :
getTaskCompletionUnparseableEvents().entrySet()) {
+ if (unparseableEvents.getValue() instanceof List) {
+ List<Object> buildSegments = (List) unparseableEvents.getValue();
+ for (Object buildSegment : buildSegments) {
+ if (buildSegment instanceof Map) {
+ Map<String, Object> unparseableEventDetails = (Map) buildSegment;
+ if
("unparseable".equals(unparseableEventDetails.get("errorType"))) {
+ Object input = unparseableEventDetails.get("input");
+ Object details = unparseableEventDetails.get("details");
+ Long timeOfExceptionMillis = (Long)
unparseableEventDetails.get("timeOfExceptionMillis");
Review Comment:
agreed
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]