gharris1727 opened a new pull request, #15233: URL: https://github.com/apache/kafka/pull/15233
This is a follow-up to #15154 which propagates the generic type for ProcessingContext upward through all its call-sites. I decided to avoid generifying the WorkerTask and instead separate the common retryWithToleranceOperator field into two fields with different types, in WorkerSinkTask and AbstractWorkerSourceTask, as the only operation which was present in the WorkerTask was the retryWithToleranceOperator.triggerStop() call. This now makes the type system enforce that the DeadLetterQueueReporter only works for sink tasks, and the LogReporter must be specialized as either LogReporter.Sink or LogReporter.Source. ### Committer Checklist (excluded from commit message) - [ ] Verify design and implementation - [ ] Verify test coverage and CI build status - [ ] Verify documentation (including upgrade notes) -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
