Class ParseExceptionHandler
java.lang.Object
org.apache.druid.segment.incremental.ParseExceptionHandler
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 Summary
ConstructorsConstructorDescriptionParseExceptionHandler(RowIngestionMeters rowIngestionMeters, boolean logParseExceptions, int maxAllowedParseExceptions, int maxSavedParseExceptions) -
Method Summary
Modifier and TypeMethodDescriptionvoidvoid
-
Constructor Details
-
ParseExceptionHandler
public ParseExceptionHandler(RowIngestionMeters rowIngestionMeters, boolean logParseExceptions, int maxAllowedParseExceptions, int maxSavedParseExceptions)
-
-
Method Details
-
handle
-
getSavedParseExceptionReports
-
logParseExceptionHelper
-