Return-Path: X-Original-To: apmail-hadoop-hdfs-issues-archive@minotaur.apache.org Delivered-To: apmail-hadoop-hdfs-issues-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 1AA4F110E2 for ; Sun, 18 May 2014 03:53:36 +0000 (UTC) Received: (qmail 24157 invoked by uid 500); 18 May 2014 03:45:28 -0000 Delivered-To: apmail-hadoop-hdfs-issues-archive@hadoop.apache.org Received: (qmail 2878 invoked by uid 500); 18 May 2014 03:20:27 -0000 Mailing-List: contact hdfs-issues-help@hadoop.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: hdfs-issues@hadoop.apache.org Delivered-To: mailing list hdfs-issues@hadoop.apache.org Received: (qmail 632 invoked by uid 99); 18 May 2014 03:11:14 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 18 May 2014 03:11:14 +0000 Date: Sun, 18 May 2014 03:11:14 +0000 (UTC) From: "Yongjun Zhang (JIRA)" To: hdfs-issues@hadoop.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (HDFS-6427) TestStandbyCheckpoints#testSBNCheckpoints throwing NPE when running TestBookKeeperHACheckpoints MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/HDFS-6427?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14000963#comment-14000963 ] Yongjun Zhang commented on HDFS-6427: ------------------------------------- HI Uma, I found the same problem, and saw your patch. Thanks for the good work! I looked at the your patch, one small comment here, what about creating a method in the base class and call it from setupCluster in both classes: {code} protected Configuration setupCommonCfg() throws Exception { tmpOivImgDir = Files.createTempDir(); Configuration conf = new Configuration(); conf.setInt(DFSConfigKeys.DFS_NAMENODE_CHECKPOINT_CHECK_PERIOD_KEY, 1); conf.setInt(DFSConfigKeys.DFS_NAMENODE_CHECKPOINT_TXNS_KEY, 5); conf.setInt(DFSConfigKeys.DFS_HA_TAILEDITS_PERIOD_KEY, 1); conf.set(DFSConfigKeys.DFS_NAMENODE_LEGACY_OIV_IMAGE_DIR_KEY, tmpOivImgDir.getAbsolutePath()); return conf; } {code} Thanks. > TestStandbyCheckpoints#testSBNCheckpoints throwing NPE when running TestBookKeeperHACheckpoints > ----------------------------------------------------------------------------------------------- > > Key: HDFS-6427 > URL: https://issues.apache.org/jira/browse/HDFS-6427 > Project: Hadoop HDFS > Issue Type: Bug > Components: test > Reporter: Uma Maheswara Rao G > Assignee: Uma Maheswara Rao G > Attachments: HDFS-6427.patch > > > HDFS-6293 added tmpOivImgDir and asserting in some tests. The initialization of tmpOivImgDir happend in setUpCluster, but that method overridden by TestBookKeeperHACheckpoints. So, while in asserting it can throw NPE. -- This message was sent by Atlassian JIRA (v6.2#6252)