storm-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From kabh...@apache.org
Subject [4/5] storm git commit: STORM-810: PartitionManager should commit latest offset before close
Date Wed, 08 Jul 2015 02:21:38 GMT
STORM-810: PartitionManager should commit latest offset before close


Project: http://git-wip-us.apache.org/repos/asf/storm/repo
Commit: http://git-wip-us.apache.org/repos/asf/storm/commit/f4d0b823
Tree: http://git-wip-us.apache.org/repos/asf/storm/tree/f4d0b823
Diff: http://git-wip-us.apache.org/repos/asf/storm/diff/f4d0b823

Branch: refs/heads/0.10.x-branch
Commit: f4d0b82322e4f2904eb8acb81a0fa048d3a23687
Parents: e5bf9aa
Author: xiajun <xiajun@xiaomi.com>
Authored: Wed May 6 16:19:44 2015 +0800
Committer: Jungtaek Lim <kabhwan@gmail.com>
Committed: Wed Jul 8 11:13:24 2015 +0900

----------------------------------------------------------------------
 external/storm-kafka/src/jvm/storm/kafka/PartitionManager.java | 1 +
 1 file changed, 1 insertion(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/storm/blob/f4d0b823/external/storm-kafka/src/jvm/storm/kafka/PartitionManager.java
----------------------------------------------------------------------
diff --git a/external/storm-kafka/src/jvm/storm/kafka/PartitionManager.java b/external/storm-kafka/src/jvm/storm/kafka/PartitionManager.java
index 00ab981..a7ed879 100644
--- a/external/storm-kafka/src/jvm/storm/kafka/PartitionManager.java
+++ b/external/storm-kafka/src/jvm/storm/kafka/PartitionManager.java
@@ -269,6 +269,7 @@ public class PartitionManager {
     }
 
     public void close() {
+        commit();
         _connections.unregister(_partition.host, _partition.partition);
     }
 


Mime
View raw message