Return-Path: X-Original-To: apmail-hadoop-hdfs-dev-archive@minotaur.apache.org Delivered-To: apmail-hadoop-hdfs-dev-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id B9C6CD2B8 for ; Wed, 19 Sep 2012 18:58:10 +0000 (UTC) Received: (qmail 80157 invoked by uid 500); 19 Sep 2012 18:58:09 -0000 Delivered-To: apmail-hadoop-hdfs-dev-archive@hadoop.apache.org Received: (qmail 80073 invoked by uid 500); 19 Sep 2012 18:58:09 -0000 Mailing-List: contact hdfs-dev-help@hadoop.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: hdfs-dev@hadoop.apache.org Delivered-To: mailing list hdfs-dev@hadoop.apache.org Received: (qmail 80021 invoked by uid 99); 19 Sep 2012 18:58:09 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 19 Sep 2012 18:58:09 +0000 Date: Thu, 20 Sep 2012 05:58:09 +1100 (NCT) From: "Todd Lipcon (JIRA)" To: hdfs-dev@hadoop.apache.org Message-ID: <2132500083.98680.1348081089770.JavaMail.jiratomcat@arcas> In-Reply-To: <145225184.95622.1348022947671.JavaMail.jiratomcat@arcas> Subject: [jira] [Resolved] (HDFS-3955) QJM: Make acceptRecovery() atomic 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-3955?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Todd Lipcon resolved HDFS-3955. ------------------------------- Resolution: Fixed Fix Version/s: QuorumJournalManager (HDFS-3077) Hadoop Flags: Reviewed > QJM: Make acceptRecovery() atomic > --------------------------------- > > Key: HDFS-3955 > URL: https://issues.apache.org/jira/browse/HDFS-3955 > Project: Hadoop HDFS > Issue Type: Sub-task > Components: ha > Affects Versions: QuorumJournalManager (HDFS-3077) > Reporter: Todd Lipcon > Assignee: Todd Lipcon > Fix For: QuorumJournalManager (HDFS-3077) > > Attachments: hdfs-3955.txt > > > Per one of the TODOs in Journal.java, there is currently a lack of atomicity in the {{acceptRecovery()}} code path. In particular, we have the following actions executed non-atomically: > - Download a new edits_inprogress_N from some other node > - Persist the paxos recovery file to disk. > If the JN crashes between these two steps, then we may be left in the state whereby the edits_inprogress file has different data than the Paxos data left over on the disk from a previous recovery attempt. This causes the next {{prepareRecovery()}} to fail with an AssertionError. > I discovered this by randomly injecting a fault between the two steps, and then running the randomized fault test on a cluster. This resulted in some AssertionErrors in the test logs. -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators For more information on JIRA, see: http://www.atlassian.com/software/jira