Github user HeartSaVioR commented on a diff in the pull request: https://github.com/apache/storm/pull/2241#discussion_r129534437 --- Diff: storm-client/src/jvm/org/apache/storm/executor/bolt/BoltOutputCollectorImpl.java --- @@ -114,27 +136,29 @@ public void ack(Tuple input) { LOG.info("BOLT ack TASK: {} TIME: {} TUPLE: {}", taskId, delta, input); } BoltAckInfo boltAckInfo = new BoltAckInfo(input, taskId, delta); - boltAckInfo.applyOn(taskData.getUserContext()); - if (delta >= 0) { + boltAckInfo.applyOn(task.getUserContext()); + if (delta != 0) { ((BoltExecutorStats) executor.getStats()).boltAckedTuple( input.getSourceComponent(), input.getSourceStreamId(), delta); } } @Override public void fail(Tuple input) { + if(!ackingEnabled) + return; Set<Long> roots = input.getMessageId().getAnchors(); for (Long root : roots) { - executor.sendUnanchored(taskData, Acker.ACKER_FAIL_STREAM_ID, + task.sendUnanchored(Acker.ACKER_FAIL_STREAM_ID, new Values(root), executor.getExecutorTransfer()); } long delta = tupleTimeDelta((TupleImpl) input); if (isDebug) { LOG.info("BOLT fail TASK: {} TIME: {} TUPLE: {}", taskId, delta, input); } BoltFailInfo boltFailInfo = new BoltFailInfo(input, taskId, delta); - boltFailInfo.applyOn(taskData.getUserContext()); - if (delta >= 0) { + boltFailInfo.applyOn(task.getUserContext()); + if (delta != 0) { --- End diff -- Same here.
--- 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 infrastruct...@apache.org or file a JIRA ticket with INFRA. ---