Github user revans2 commented on the pull request:
https://github.com/apache/storm/pull/647#issuecomment-158085350
To make a feature like this work for storm, we need to provide people a lot
of control over it. I personally would prefer to see something where the
Bolt/Spout can indicate life without completely processing a tuple. Probably
an API in OutputCollector that would allow it to heartbeat in saying don't
shoot me. Any other interaction with an OutputCollection should also prevent
the component from being shot.
The timeout should be configurable on a per-component basis, including
turning them off. Having all of them set to the same cluster wide setting is
not good. Also if we detect that we are in a bad state there is no reason to
stop heart-beating, and wait for a supervisor to shoot us. If we think we are
bad just exit. It will let recovery happen much faster.
I agree with @bastiliu too that one of the options should be not to shot
ourselves, but to alert that we are seeing problems. I would like to see this
done through both the metrics system and through writing an error into
zookeeper that would show up on the UI for the component that is stuck. The
metrics would allow for automated alerting and the UI would let users manually
see what is happening.
---
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.
---