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 9AAC86ACE for ; Wed, 25 May 2011 01:25:28 +0000 (UTC) Received: (qmail 56817 invoked by uid 500); 25 May 2011 01:25:28 -0000 Delivered-To: apmail-hadoop-hdfs-issues-archive@hadoop.apache.org Received: (qmail 56685 invoked by uid 500); 25 May 2011 01:25:28 -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 56662 invoked by uid 99); 25 May 2011 01:25:28 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 25 May 2011 01:25:28 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED,T_RP_MATCHES_RCVD X-Spam-Check-By: apache.org Received: from [140.211.11.116] (HELO hel.zones.apache.org) (140.211.11.116) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 25 May 2011 01:25:27 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id 6CCA7DD2C7 for ; Wed, 25 May 2011 01:24:47 +0000 (UTC) Date: Wed, 25 May 2011 01:24:47 +0000 (UTC) From: "Todd Lipcon (JIRA)" To: hdfs-issues@hadoop.apache.org Message-ID: <413680623.41166.1306286687442.JavaMail.tomcat@hel.zones.apache.org> In-Reply-To: <1601286575.41154.1306286327499.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Updated] (HDFS-1994) Fix race conditions when running two rapidly checkpointing 2NNs 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-1994?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Todd Lipcon updated HDFS-1994: ------------------------------ Attachment: hdfs-1994.txt Here's a preliminary patch. It needs some more unit tests that trigger the interleaving described above. Doing the stress test described, it now runs a lot more stably, though there's still one unrelated issue in the 2NN (to be addressed later) > Fix race conditions when running two rapidly checkpointing 2NNs > --------------------------------------------------------------- > > Key: HDFS-1994 > URL: https://issues.apache.org/jira/browse/HDFS-1994 > Project: Hadoop HDFS > Issue Type: Sub-task > Components: name-node > Affects Versions: Edit log branch (HDFS-1073) > Reporter: Todd Lipcon > Assignee: Todd Lipcon > Fix For: Edit log branch (HDFS-1073) > > Attachments: hdfs-1994.txt > > > HDFS-1984 added the ability to run two secondary namenodes at the same time. However, there were two races I found when stress testing this (by running two NNs each checkpointing in a tight loop with no sleep): > 1) the writing of the seen_txid file was not atomic, so it was at some points reading an empty file > 2) it was possible for two checkpointers to try to take a checkpoint at the same transaction ID, which would cause the two image downloads to collide and fail -- This message is automatically generated by JIRA. For more information on JIRA, see: http://www.atlassian.com/software/jira