Github user hmcl commented on a diff in the pull request: https://github.com/apache/storm/pull/836#discussion_r43549300 --- Diff: storm-core/src/jvm/storm/trident/spout/OpaquePartitionedTridentSpoutExecutor.java --- @@ -162,9 +162,9 @@ public void commit(TransactionAttempt attempt) { Long txid = attempt.getTransactionId(); Map<String, Object> metas = _cachedMetas.remove(txid); - for(String partitionId: metas.keySet()) { - Object meta = metas.get(partitionId); - _partitionStates.get(partitionId).rotatingState.overrideState(txid, meta); + for(Entry<String, Object> entry: metas.entrySet()) { + Object meta = entry.getValue(); --- End diff -- Unless the variable is created to make the code easier to read, this could be simplified to _partitionStates.get(entry.getKey()).rotatingState.overrideState(txid, entry.getValue());
--- 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. ---