zachjsh commented on code in PR #13548:
URL: https://github.com/apache/druid/pull/13548#discussion_r1053642801


##########
processing/src/main/java/org/apache/druid/segment/incremental/ParseExceptionHandler.java:
##########
@@ -76,27 +86,51 @@ public void handle(@Nullable ParseException e)
       rowIngestionMeters.incrementProcessedWithError();
     } else {
       rowIngestionMeters.incrementUnparseable();
-    }
+      if (emitter != null) {
+        DateTime timeOfException = new DateTime(e.getTimeOfExceptionMillis());
 
-    logParseExceptionHelper(e);
-
-    if (savedParseExceptionReports != null) {
-      ParseExceptionReport parseExceptionReport = new ParseExceptionReport(
-          e.getInput(),
-          e.isFromPartiallyValidRow() ? "processedWithError" : "unparseable",
-          e.isFromPartiallyValidRow()
-          ? ((UnparseableColumnsParseException) e).getColumnExceptionMessages()
-          : ImmutableList.of(e.getMessage()),
-          e.getTimeOfExceptionMillis()
-      );
-      savedParseExceptionReports.add(parseExceptionReport);
-    }
+        ImmutableMap<String, Object> extraData = new 
ImmutableMap.Builder().putAll(taskMetadata)
+                                                                           
.put("input", e.getInput())
+                                                                           
.put("detailMessage", e.getMessage())
+                                                                           
.build();
+        Event event = new AlertEvent(

Review Comment:
   Should we use a new event type here which is not emitted by default so that 
existing users who are using emitters do not get bombarded with parsing error 
alerts suddenly when they update their versions of imply. Or what is protecting 
against this?



-- 
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]

Reply via email to