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 9411310797 for ; Mon, 26 Aug 2013 22:26:53 +0000 (UTC) Received: (qmail 74730 invoked by uid 500); 26 Aug 2013 22:26:53 -0000 Delivered-To: apmail-hadoop-hdfs-issues-archive@hadoop.apache.org Received: (qmail 74700 invoked by uid 500); 26 Aug 2013 22:26:53 -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 74691 invoked by uid 99); 26 Aug 2013 22:26:53 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 26 Aug 2013 22:26:53 +0000 Date: Mon, 26 Aug 2013 22:26:53 +0000 (UTC) From: "Todd Lipcon (JIRA)" To: hdfs-issues@hadoop.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (HDFS-5074) Allow starting up from an fsimage checkpoint in the middle of a segment 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-5074?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13750654#comment-13750654 ] Todd Lipcon commented on HDFS-5074: ----------------------------------- I may have been incorrect above. HDFS-2709 fixed the above situation for FileJournalManager, but it may not work correctly with QJM. Let's incorporate that fix in this same issue, since I think it's highly related (in pretty much every case we should support opening a segment in the middle) > Allow starting up from an fsimage checkpoint in the middle of a segment > ----------------------------------------------------------------------- > > Key: HDFS-5074 > URL: https://issues.apache.org/jira/browse/HDFS-5074 > Project: Hadoop HDFS > Issue Type: Bug > Components: ha, namenode > Affects Versions: 3.0.0, 2.1.0-beta > Reporter: Todd Lipcon > > We've seen the following behavior a couple times: > - SBN is running and somehow encounters an error in the middle of replaying an edit log in the tailer (eg the JN it's reading from crashes) > - SBN successfully has processed half of the edits in the segment it was reading. > - SBN saves a checkpoint, which now falls in the middle of a segment, and then restarts > Upon restart, the SBN will load this checkpoint which falls in the middle of a segment. {{selectInputStreams}} then fails when the SBN requests a mid-segment txid. > We should handle this case by downloading the right segment and fast-forwarding to the correct txid. -- 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