Return-Path: X-Original-To: apmail-hadoop-common-issues-archive@minotaur.apache.org Delivered-To: apmail-hadoop-common-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 47E5318D84 for ; Tue, 29 Dec 2015 05:25:50 +0000 (UTC) Received: (qmail 30205 invoked by uid 500); 29 Dec 2015 05:25:49 -0000 Delivered-To: apmail-hadoop-common-issues-archive@hadoop.apache.org Received: (qmail 30115 invoked by uid 500); 29 Dec 2015 05:25:49 -0000 Mailing-List: contact common-issues-help@hadoop.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: common-issues@hadoop.apache.org Delivered-To: mailing list common-issues@hadoop.apache.org Received: (qmail 29731 invoked by uid 99); 29 Dec 2015 05:25:49 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 29 Dec 2015 05:25:49 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id 94BDE2C1F5A for ; Tue, 29 Dec 2015 05:25:49 +0000 (UTC) Date: Tue, 29 Dec 2015 05:25:49 +0000 (UTC) From: "madhumita chakraborty (JIRA)" To: common-issues@hadoop.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (HADOOP-12678) Handle empty rename pending metadata file during atomic rename in redo path 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/HADOOP-12678?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] madhumita chakraborty updated HADOOP-12678: ------------------------------------------- Status: Patch Available (was: Open) > Handle empty rename pending metadata file during atomic rename in redo path > --------------------------------------------------------------------------- > > Key: HADOOP-12678 > URL: https://issues.apache.org/jira/browse/HADOOP-12678 > Project: Hadoop Common > Issue Type: Bug > Components: fs/azure > Reporter: madhumita chakraborty > Assignee: madhumita chakraborty > Priority: Critical > Attachments: HADOOP-12678.001.patch, HADOOP-12678.002.patch, HADOOP-12678.003.patch > > > Handle empty rename pending metadata file during atomic rename in redo path > During atomic rename we create metadata file for rename(-renamePending.json). We create that in 2 steps > 1. We create an empty blob corresponding to the .json file in its real location > 2. We create a scratch file to which we write the contents of the rename pending which is then copied over into the blob described in 1 > If process crash occurs after step 1 and before step 2 is complete - we will be left with a zero size blob corresponding to the pending rename metadata file. > This kind of scenario can happen in the /hbase/.tmp folder because it is considered a candidate folder for atomic rename. Now when HMaster starts up it executes listStatus on the .tmp folder to clean up pending data. At this stage due to the lazy pending rename complete process we look for these json files. On seeing an empty file the process simply throws a fatal exception assuming something went wrong. -- This message was sent by Atlassian JIRA (v6.3.4#6332)