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 530CB200BF3 for ; Thu, 5 Jan 2017 16:00:00 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id 51AA8160B26; Thu, 5 Jan 2017 15:00:00 +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 86F04160B42 for ; Thu, 5 Jan 2017 15:59:59 +0100 (CET) Received: (qmail 18083 invoked by uid 500); 5 Jan 2017 14:59:58 -0000 Mailing-List: contact issues-help@activemq.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@activemq.apache.org Delivered-To: mailing list issues@activemq.apache.org Received: (qmail 18038 invoked by uid 99); 5 Jan 2017 14:59:58 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 05 Jan 2017 14:59:58 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id 83C842C03DC for ; Thu, 5 Jan 2017 14:59:58 +0000 (UTC) Date: Thu, 5 Jan 2017 14:59:58 +0000 (UTC) From: "Timothy Bish (JIRA)" To: issues@activemq.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Closed] (AMQ-6553) ReplicatedLevelDB with Zookeeper : ActiveMQ Broker Stop when leader stop MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Thu, 05 Jan 2017 15:00:00 -0000 [ https://issues.apache.org/jira/browse/AMQ-6553?page=3Dcom.atlassian.= jira.plugin.system.issuetabpanels:all-tabpanel ] Timothy Bish closed AMQ-6553. ----------------------------- Resolution: Invalid Questions on usage and configuration belong on the users mailing list. LevelDB is not longer supported, see http://activemq.apache.org/leveldb-sto= re.html > ReplicatedLevelDB with Zookeeper : ActiveMQ Broker Stop when leader stop > ------------------------------------------------------------------------ > > Key: AMQ-6553 > URL: https://issues.apache.org/jira/browse/AMQ-6553 > Project: ActiveMQ > Issue Type: Bug > Components: Broker, OSGi/Karaf, Transport > Affects Versions: 5.12.1 > Environment: Servicemix 5.5.2 > Activemq-osgi 5.12.1 > Reporter: Man=C3=A7aux Pierre-Alexandre > > hello, > I m using replicatedLevelDB to use zookeeper and clustering activemq brok= er. > all work fine when all is started. > here is my configuration > 3 servicemix=20 > each servicemix have a bundle zookeeper 3.4.6 and a bundle zookeeper-serv= er (my code to start zookeeper server) > each servicemix have is own activemq broker > Firslty, i start all my zookeeper-server bundle, and all work fine, i do= =20 > echo stat | nc localhost 2181 > echo stat | nc localhost 2182 > echo stat | nc localhost 2183 > and i have 1 Leader and 2 Followers. > After i configure each activemq broker with : > > directory=3D"${data}" > replicas=3D"3" > bind=3D"tcp://0.0.0.0:61622" > zkAddress=3D"localhost:2181,localhost:2182,localhost:2183" > zkPassword=3D"password" > zkPath=3D"/activemq/leveldb-stores" > hostname=3D"[I PUT MY IP BUT HIDE IN THIS JIRA]" > /> > > the only thing that change is the bind parameter with different port. > I start all my broker and all work fine, if i launch the karaf command bs= tat on my servicemix, i can see my queue/topic on 1 broker, and the 2 other= s just show me=20 > smx@zookeeper2> bstat > Uptime =3D 46 minutes > if i stop the master broker, zookeeper elect another one to be the master= and it works. > but if i stop my zookeepr Leader, master broker is stop and another one i= s up, but when i say broker is stop, bstat don't show me anything anymore o= n this instance. > so i have loose 1 broker and it can't be elected anymore. > here is the log i see:=20 > 2017-01-05 11:22:46,415 | WARN | spatch-DEFAULT-2 | MasterLevelDBStore = | 96 - org.apache.activemq.activemq-osgi - 5.12.1 | Unexpected= session error: java.io.IOException: Connection reset by peer > 2017-01-05 11:22:46,429 | ERROR | meSize=3D104857600 | TransportConnector= | 96 - org.apache.activemq.activemq-osgi - 5.12.1 | Could no= t accept connection : java.lang.InterruptedException > 2017-01-05 11:22:46,461 | WARN | spatch-DEFAULT-3 | MasterLevelDBStore = | 96 - org.apache.activemq.activemq-osgi - 5.12.1 | Unexpected= session error: java.io.IOException: Connection reset by peer > my question is : > why, when i stop the zookeeper leader, the master broker is killed? > why, in this case, we don't wait a little that another zookeeper become t= he leader and don't stop the master broker, but just reinitialize the conne= ction to the new zookeeper master? > or=20 > when, in this case, if its necessary to stop the broker and let zookeeper= reelect a new one, why the broker is kill and cannot be reelect by zookeep= er anymore? does it possible to let it up to be reelected? > possibly i miss something in the configuration that can prevent this prob= lem, but if not, how can i solve my problem? > thanks -- This message was sent by Atlassian JIRA (v6.3.4#6332)