Class ParseExceptionHandler

java.lang.Object
org.apache.druid.segment.incremental.ParseExceptionHandler

public class ParseExceptionHandler extends Object
A handler for ParseExceptions thrown during ingestion. Based on the given configuration, this handler can - log ParseExceptions. - keep most recent N ParseExceptions in memory. - throw a RuntimeException when it sees more ParseExceptions than maxAllowedParseExceptions. No matter what the handler does, the relevant metric should be updated first.
  • Constructor Details

    • ParseExceptionHandler

      public ParseExceptionHandler(RowIngestionMeters rowIngestionMeters, boolean logParseExceptions, int maxAllowedParseExceptions, int maxSavedParseExceptions)
  • Method Details

    • handle

      public void handle(@Nullable ParseException e)
    • getSavedParseExceptionReports

      @Nullable public List<ParseExceptionReport> getSavedParseExceptionReports()
    • logParseExceptionHelper

      public void logParseExceptionHelper(Exception e)