Github user revans2 commented on a diff in the pull request:
https://github.com/apache/storm/pull/897#discussion_r45671430
--- Diff: storm-core/src/jvm/backtype/storm/task/ShellBolt.java ---
@@ -376,15 +373,18 @@ public void run() {
sendHeartbeatFlag.compareAndSet(true, false);
}
- Object write = _pendingWrites.poll(1, SECONDS);
- if (write instanceof BoltMsg) {
- _process.writeBoltMsg((BoltMsg) write);
- } else if (write instanceof List<?>) {
- _process.writeTaskIds((List<Integer>)write);
- } else if (write != null) {
- throw new RuntimeException("Unknown class type to
write: " + write.getClass().getName());
+ List<Integer> taskIds = _pendingTaskIds.peek();
--- End diff --
Is there any way that we can make this thread block? The way this is
written if the bolt is idle we will be in a tight loop doing nothing but
burring through CPU.
---
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.
---