DUE TO SPAM, SIGN-UP IS DISABLED. Goto Selfserve wiki signup and request an account.
...
Currently, Kafka Streams does not support ProcessingExceptionHandler for GlobalKTable processors. When a processing exception occurs during GlobalKTable record processing, the GlobalStreamThread fails and terminates, causing the entire Kafka Streams application to shut down. This behaviour is inconsistent with regular KStream/KTable processing, where ProcessingExceptionHandler allows applications to handle exceptions gracefully and continue processing.
Public Interfaces
| Name | Type | Default | Description |
|---|---|---|---|
| default.processing.exception.handler.invoke.for.global | Boolean | False | When false (default), maintains backwards-compatible behaviour where global exceptions terminate or gracefully shut down the application. When true, enables the ProcessingExceptionHandler for GlobalKTable exceptions |
...
. |
|---|
...
This config will be removed in Kafka Streams 5.0, where global exception handling will be enabled by default |
|---|
Proposed Changes
This KIP extends the applicability of the existing ProcessingExceptionHandler to GlobalKTable processors. Currently, this exception handler only applies to regular stream processing (KStream/KTable). After this KIP, the same handler will also handle processing exceptions in GlobalKTable. The feature is gated behind a configuration flag to prevent unexpected behaviour in existing handler implementations that may not be designed to handle GlobalKTable handle GlobalKTable exceptions, which could cause crashes or undesired side effects. This provides a safe migration path for users to test and adapt their exception
handling exception handling logic.
Exception Handling Scope
...
- Create a new ProcessExceptionalHandler interface for the global thread, which require requires introducing new configuration at the stream config level. This would create unnecessary operational overload for the end users as it require to implement multiple interfaces.
...