Github user srdo commented on the pull request:
https://github.com/apache/storm/pull/1340#issuecomment-219992956
It's not strictly necessary, no. It's just an alternate way of looking up
leaders that avoids the concurrency issue when looking up the leader in
Zookeeper. As a side effect, it may give more informative error logs when the
metadata API returns errors, than being told that a node in Zookeeper is
missing.
Yes, the RuntimeExceptions will crash the worker. I put them in before
realizing that refresh was called periodically. I could replace them with error
logs?
---
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.
---