public class ParseExceptionHandler extends Object
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 and Description |
|---|
ParseExceptionHandler(RowIngestionMeters rowIngestionMeters,
boolean logParseExceptions,
int maxAllowedParseExceptions,
int maxSavedParseExceptions) |
| Modifier and Type | Method and Description |
|---|---|
CircularBuffer<ParseExceptionReport> |
getSavedParseExceptionReports() |
void |
handle(ParseException e) |
void |
logParseExceptionHelper(Exception e) |
public ParseExceptionHandler(RowIngestionMeters rowIngestionMeters, boolean logParseExceptions, int maxAllowedParseExceptions, int maxSavedParseExceptions)
public void handle(@Nullable ParseException e)
@Nullable public CircularBuffer<ParseExceptionReport> getSavedParseExceptionReports()
public void logParseExceptionHelper(Exception e)
Copyright © 2011–2023 The Apache Software Foundation. All rights reserved.