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 C3EDB200D26 for ; Fri, 20 Oct 2017 23:30:04 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id C2721160BED; Fri, 20 Oct 2017 21:30:04 +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 13D4D1609ED for ; Fri, 20 Oct 2017 23:30:03 +0200 (CEST) Received: (qmail 90925 invoked by uid 500); 20 Oct 2017 21:30:03 -0000 Mailing-List: contact common-issues-help@hadoop.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Delivered-To: mailing list common-issues@hadoop.apache.org Received: (qmail 90914 invoked by uid 99); 20 Oct 2017 21:30:03 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd1-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 20 Oct 2017 21:30:03 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd1-us-west.apache.org (ASF Mail Server at spamd1-us-west.apache.org) with ESMTP id 45645C1367 for ; Fri, 20 Oct 2017 21:30:02 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd1-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -100.002 X-Spam-Level: X-Spam-Status: No, score=-100.002 tagged_above=-999 required=6.31 tests=[RP_MATCHES_RCVD=-0.001, SPF_PASS=-0.001, USER_IN_WHITELIST=-100] autolearn=disabled Received: from mx1-lw-us.apache.org ([10.40.0.8]) by localhost (spamd1-us-west.apache.org [10.40.0.7]) (amavisd-new, port 10024) with ESMTP id VkJpe40-H3xd for ; Fri, 20 Oct 2017 21:30:01 +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 5B88C5F566 for ; Fri, 20 Oct 2017 21:30:01 +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 EB584E06C2 for ; Fri, 20 Oct 2017 21:30:00 +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 ABE5A21EE6 for ; Fri, 20 Oct 2017 21:30:00 +0000 (UTC) Date: Fri, 20 Oct 2017 21:30:00 +0000 (UTC) From: "Steve Loughran (JIRA)" To: common-issues@hadoop.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (HADOOP-14942) DistCp#cleanup() should check whether jobFS is null MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Fri, 20 Oct 2017 21:30:04 -0000 [ https://issues.apache.org/jira/browse/HADOOP-14942?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Steve Loughran updated HADOOP-14942: ------------------------------------ Resolution: Fixed Fix Version/s: 3.0.0 2.9.0 Status: Resolved (was: Patch Available) > DistCp#cleanup() should check whether jobFS is null > --------------------------------------------------- > > Key: HADOOP-14942 > URL: https://issues.apache.org/jira/browse/HADOOP-14942 > Project: Hadoop Common > Issue Type: Bug > Reporter: Ted Yu > Assignee: Andras Bokor > Priority: Minor > Fix For: 2.9.0, 3.0.0 > > Attachments: HADOOP-14942.01.patch > > > Over in HBASE-18975, we observed the following: > {code} > 2017-10-10 17:22:53,211 DEBUG [main] mapreduce.MapReduceBackupCopyJob(313): Doing COPY_TYPE_DISTCP > 2017-10-10 17:22:53,272 DEBUG [main] mapreduce.MapReduceBackupCopyJob(322): DistCp options: [hdfs://localhost:55247/backupUT/.tmp/backup_1507681285309, hdfs://localhost:55247/ backupUT] > 2017-10-10 17:22:53,283 ERROR [main] tools.DistCp(167): Exception encountered > java.lang.reflect.InvocationTargetException > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) > at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) > at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) > at java.lang.reflect.Method.invoke(Method.java:498) > at org.apache.hadoop.hbase.backup.mapreduce.MapReduceBackupCopyJob$BackupDistCp.execute(MapReduceBackupCopyJob.java:234) > at org.apache.hadoop.tools.DistCp.run(DistCp.java:153) > at org.apache.hadoop.hbase.backup.mapreduce.MapReduceBackupCopyJob.copy(MapReduceBackupCopyJob.java:331) > at org.apache.hadoop.hbase.backup.impl.IncrementalTableBackupClient.incrementalCopyHFiles(IncrementalTableBackupClient.java:286) > ... > Caused by: java.lang.NullPointerException > at org.apache.hadoop.tools.DistCp.cleanup(DistCp.java:460) > ... 45 more > {code} > NullPointerException came from second line below: > {code} > if (metaFolder == null) return; > jobFS.delete(metaFolder, true); > {code} > in which case jobFS was null. > A check against null should be added. -- This message was sent by Atlassian JIRA (v6.4.14#64029) --------------------------------------------------------------------- To unsubscribe, e-mail: common-issues-unsubscribe@hadoop.apache.org For additional commands, e-mail: common-issues-help@hadoop.apache.org