Description
The RetryWithToleranceOperator and ErrorReporter instances in connect are only ever used with a single type of ProcessingContext (ProcessingContext<SourceRecord> for sources, ProcessingContext<ConsumerRecord<byte[], byte[]>> for sinks) and currently dynamically decide between these with instanceof checks.
Instead, these classes should be generic, and have their implementations accept consistent ProcessingContext<T> objects.
Attachments
Issue Links
- links to