Github user HeartSaVioR commented on a diff in the pull request: https://github.com/apache/storm/pull/521#discussion_r30201415 --- Diff: storm-core/src/jvm/backtype/storm/utils/TransferDrainer.java --- @@ -26,10 +26,10 @@ public class TransferDrainer { - private HashMap<String, ArrayList<ArrayList<TaskMessage>>> bundles = new HashMap(); + private HashMap<Integer, ArrayList<ArrayList<TaskMessage>>> bundles = new HashMap(); - public void add(HashMap<String, ArrayList<TaskMessage>> workerTupleSetMap) { - for (String key : workerTupleSetMap.keySet()) { + public void add(HashMap<Integer, ArrayList<TaskMessage>> taskTupleSetMap) { --- End diff -- @d2r Looking it again, it should stores tuples to buffer unless batch-end? is true. 0666c41 stores tuples to ArrayList, and 861a92e just stores tuples to TransferDrainer itself. So if we changed add() to private or remove add(), we should introduce another buffer, which role may be duplicated to TransferDrainer. (It may not an issue when batch-end? is always true, but I don't know.) Which one do you think is better?
--- 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. ---