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 EB5C2200BE2 for ; Thu, 15 Dec 2016 09:04:59 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id E9E2C160B10; Thu, 15 Dec 2016 08:04:59 +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 6572B160B0B for ; Thu, 15 Dec 2016 09:04:59 +0100 (CET) Received: (qmail 65629 invoked by uid 500); 15 Dec 2016 08:04:58 -0000 Mailing-List: contact dev-help@zookeeper.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@zookeeper.apache.org Delivered-To: mailing list dev@zookeeper.apache.org Received: (qmail 65616 invoked by uid 99); 15 Dec 2016 08:04:58 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 15 Dec 2016 08:04:58 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id 4FFA62C0057 for ; Thu, 15 Dec 2016 08:04:58 +0000 (UTC) Date: Thu, 15 Dec 2016 08:04:58 +0000 (UTC) From: "Tom Pijl (JIRA)" To: dev@zookeeper.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (ZOOKEEPER-2645) If embedded QuorumPeerMain is started with Properties no backupOldConfig should be done MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Thu, 15 Dec 2016 08:05:00 -0000 [ https://issues.apache.org/jira/browse/ZOOKEEPER-2645?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Tom Pijl updated ZOOKEEPER-2645: -------------------------------- Priority: Major (was: Blocker) > If embedded QuorumPeerMain is started with Properties no backupOldConfig should be done > --------------------------------------------------------------------------------------- > > Key: ZOOKEEPER-2645 > URL: https://issues.apache.org/jira/browse/ZOOKEEPER-2645 > Project: ZooKeeper > Issue Type: Bug > Components: server > Affects Versions: 3.5.2 > Reporter: Tom Pijl > > When starting an embedded _QuorumPeerMain_ by executing the _runFromConfig()_ and providing _QuorumPeerConfig_ properties: > {code}standaloneEnabled=false > initLimit=5 > syncLimit=2 > clientPort=4101 > server.1=nlbantpijl01.infor.com:2101:3101:participant;4101 > dataDir=/Storage/zookeeper/server001{code} > an NullPointerException is thrown in the _QuorumPeerConfig_ class in the method _backupOldConfig()_ because the property configFileStr is null. > A check must be made at the start of the method _backupOldConfig()_ if the property _configFileStr_ is null. If so just exit the method. In the embedded mode there is no config file, so no need to create a backup. -- This message was sent by Atlassian JIRA (v6.3.4#6332)