Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id A23C5200CAF for ; Thu, 8 Jun 2017 07:24:22 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id A0D28160BE2; Thu, 8 Jun 2017 05:24:22 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id E7154160BD0 for ; Thu, 8 Jun 2017 07:24:21 +0200 (CEST) Received: (qmail 21257 invoked by uid 500); 8 Jun 2017 05:24:20 -0000 Mailing-List: contact dev-help@kafka.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@kafka.apache.org Delivered-To: mailing list dev@kafka.apache.org Received: (qmail 21246 invoked by uid 99); 8 Jun 2017 05:24:20 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd2-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 08 Jun 2017 05:24:20 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd2-us-west.apache.org (ASF Mail Server at spamd2-us-west.apache.org) with ESMTP id 0F4121A04B2 for ; Thu, 8 Jun 2017 05:24:20 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd2-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -99.201 X-Spam-Level: X-Spam-Status: No, score=-99.201 tagged_above=-999 required=6.31 tests=[KAM_ASCII_DIVIDERS=0.8, RP_MATCHES_RCVD=-0.001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001, USER_IN_WHITELIST=-100] autolearn=disabled Received: from mx1-lw-us.apache.org ([10.40.0.8]) by localhost (spamd2-us-west.apache.org [10.40.0.9]) (amavisd-new, port 10024) with ESMTP id m-_fko-6UnN5 for ; Thu, 8 Jun 2017 05:24:19 +0000 (UTC) Received: from mailrelay1-us-west.apache.org (mailrelay1-us-west.apache.org [209.188.14.139]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with ESMTP id EE0B95F242 for ; Thu, 8 Jun 2017 05:24:18 +0000 (UTC) Received: from jira-lw-us.apache.org (unknown [207.244.88.139]) by mailrelay1-us-west.apache.org (ASF Mail Server at mailrelay1-us-west.apache.org) with ESMTP id 73075E01E5 for ; Thu, 8 Jun 2017 05:24:18 +0000 (UTC) Received: from jira-lw-us.apache.org (localhost [127.0.0.1]) by jira-lw-us.apache.org (ASF Mail Server at jira-lw-us.apache.org) with ESMTP id 2CF2121B51 for ; Thu, 8 Jun 2017 05:24:18 +0000 (UTC) Date: Thu, 8 Jun 2017 05:24:18 +0000 (UTC) From: "xiaoguy (JIRA)" To: dev@kafka.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Comment Edited] (KAFKA-5406) NoNodeException result in rebalance failed MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Thu, 08 Jun 2017 05:24:22 -0000 [ https://issues.apache.org/jira/browse/KAFKA-5406?page=3Dcom.atlassian= .jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=3D1604= 2157#comment-16042157 ]=20 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 handleNewSessi= on never called, when network recovered , it should be ?=20 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 handleNewSessi= on never called, when network recovered , it should be ?=20 > 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=EF=BC=8C consumer rebalance failed aft= er 5 times ,the log shows that zk path /consumers/$(groupIdName)/ids/ is em= pty, > consumer seems can't register after network recovered, so i got the kafka= source code (0.8.2.2) and found the consumer/ZookeeperConsumerConnector$ZK= SessionExpireListener 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=3D=3DKeeperState.SyncConnected){ > handleNewSession() > } > System.err.println("----------------ZKSessionExpireListener--------= ---- handleStateChanged-----state:"+state+"----"+state.getIntValue) > } -- This message was sent by Atlassian JIRA (v6.3.15#6346)