Github user srdo commented on the issue:
https://github.com/apache/storm/pull/1993
If `RecordTranslator.apply` was given access to the `KafkaSpoutMessageId`
(or current number of retries), you could redirect tuples that have been
retried sufficiently many times to another stream using `KafkaTuple` as @hmcl
mentioned. That allows you to write the failed tuples to the dead letter topic
from a KafkaBolt instead of doing it from inside the spout. It would be cleaner
IMO.
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---