[ https://issues.apache.org/jira/browse/KAFKA-5406?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16042157#comment-16042157 ]
xiaoguy edited comment on KAFKA-5406 at 6/8/17 5:23 AM: -------------------------------------------------------- [~huxi_2b] thanks for your reply ,this is the code of props , props.put("zookeeper.session.timeout.ms", "30000"); props.put("rebalance.max.retries", "10"); props.put("rebalance.backoff.ms", "3000"); consumer/ZookeeperConsumerConnector$ZKSessionExpireListener handleNewSession never called, when network recovered , it should be ? was (Author: 1901): [~huxi_2b] thanks for your replay ,this is the code of props , props.put("zookeeper.session.timeout.ms", "30000"); props.put("rebalance.max.retries", "10"); props.put("rebalance.backoff.ms", "3000"); consumer/ZookeeperConsumerConnector$ZKSessionExpireListener handleNewSession never called, when network recovered , it should be ? > NoNodeException result in rebalance failed > ------------------------------------------ > > Key: KAFKA-5406 > URL: https://issues.apache.org/jira/browse/KAFKA-5406 > Project: Kafka > Issue Type: Bug > Components: consumer > Affects Versions: 0.8.2.2, 0.10.0.0 > Environment: windows8.1 centos6.4 > Reporter: xiaoguy > Priority: Critical > Labels: easyfix, patch > Attachments: log.log > > > hey guys , I got this problem this days, > because of the network is unstableļ¼ consumer rebalance failed after 5 times > ,the log shows that zk path /consumers/$(groupIdName)/ids/ is empty, > consumer seems can't register after network recovered, so i got the kafka > source code (0.8.2.2) and found the > consumer/ZookeeperConsumerConnector$ZKSessionExpireListener handleNewSession > won't call , and handleStateChanged do nothing, > so i change the code like this ,and it seems works , and i checked 0.10.0.0 > version, the same problem, is this a bug ? i'm confused , thank you. > def handleStateChanged(state: KeeperState) { > // do nothing, since zkclient will do reconnect for us. > if(state==KeeperState.SyncConnected){ > handleNewSession() > } > System.err.println("----------------ZKSessionExpireListener------------ > handleStateChanged-----state:"+state+"----"+state.getIntValue) > } -- This message was sent by Atlassian JIRA (v6.3.15#6346)