Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions storm-client/src/jvm/org/apache/storm/executor/Executor.java
Original file line number Diff line number Diff line change
Expand Up @@ -278,13 +278,18 @@ public void accept(Object event) {
int taskId = addressedTuple.getDest();

TupleImpl tuple = (TupleImpl) addressedTuple.getTuple();
String streamId = tuple.getSourceStreamId();
boolean isSpout = this instanceof SpoutExecutor;
if (isDebug) {
LOG.info("Processing received TUPLE: {} for TASK: {} ", tuple, taskId);
}

try {
if (taskId != AddressedTuple.BROADCAST_DEST) {
tupleActionFn(taskId, tuple);
} else if (isSpout && streamId.equals(Constants.SYSTEM_TICK_STREAM_ID)) {
//taskId is irrelevant here. Ensures pending.rotate() is called once per tick.
tupleActionFn(taskIds.get(0), tuple);
} else {
for (Integer t : taskIds) {
tupleActionFn(t, tuple);
Expand Down