Skip to content

Commit cbfc534

Browse files
committed
Don't close connections,TODO: concurrent issues
1 parent 324c5f8 commit cbfc534

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

metamorphosis-client/src/main/java/com/taobao/metamorphosis/client/consumer/ConsumerZooKeeper.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -702,6 +702,7 @@ boolean rebalance() throws InterruptedException, Exception {
702702
this.fetchManager.stopFetchRunner();
703703
// closed all connections to old brokers.
704704
this.closeOldBrokersConnections();
705+
this.commitOffsets();
705706
this.updateFetchRunner(cluster);
706707
this.oldCluster = cluster;
707708
}
@@ -789,7 +790,8 @@ boolean rebalance() throws InterruptedException, Exception {
789790

790791
private void closeOldBrokersConnections() throws NotifyRemotingException {
791792
for (Broker old : this.oldBrokerSet) {
792-
ConsumerZooKeeper.this.remotingClient.closeWithRef(old.getZKString(), this, false);
793+
// ConsumerZooKeeper.this.remotingClient.closeWithRef(old.getZKString(),
794+
// this, false);
793795
log.warn("Closed " + old.getZKString());
794796
}
795797
}

0 commit comments

Comments
 (0)