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 F2C6444BB for ; Tue, 5 Jul 2011 16:29:41 +0000 (UTC) Received: (qmail 70337 invoked by uid 500); 5 Jul 2011 16:29:41 -0000 Delivered-To: apmail-hadoop-hdfs-issues-archive@hadoop.apache.org Received: (qmail 70160 invoked by uid 500); 5 Jul 2011 16:29:41 -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 69969 invoked by uid 99); 5 Jul 2011 16:29:41 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 05 Jul 2011 16:29:40 +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; Tue, 05 Jul 2011 16:29:38 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id F1E5243613 for ; Tue, 5 Jul 2011 16:29:16 +0000 (UTC) Date: Tue, 5 Jul 2011 16:29:16 +0000 (UTC) From: "Ivan Kelly (JIRA)" To: hdfs-issues@hadoop.apache.org Message-ID: <789573126.1052.1309883356987.JavaMail.tomcat@hel.zones.apache.org> In-Reply-To: <463470900.55765.1306838807767.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Commented] (HDFS-2018) Move all journal stream management code into one place MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/HDFS-2018?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13059988#comment-13059988 ] Ivan Kelly commented on HDFS-2018: ---------------------------------- I've removed a lot of tests from TestFSImageStorageInspector. The functionality is now tested by the following: public void testCurrentStorageInspector() throws IOException { - Simply removed editlog stuff public void testPlanWithGaps() throws IOException { - TestEditLog#testLoadingWithGaps() public void testPlanWithInProgressInMiddle() throws IOException { - Scenario is not possible. Inprogress files will be finalized before creating a new segment, however this _will_ lead to the case of InconsistentEndTxIds (see below). public void testLogGroupRecoveryNoop() throws IOException { - TestFileJournalManager#testNormalOperation public void testLogGroupRecoveryMixed() throws IOException { - TestFileJournalManager#testInprogressRecovery - TestFileJournalManager#testInprogressRecoveryMixed public void testLogGroupRecoveryInconsistentEndTxIds() throws IOException { - TestFileJournalManager#testManyLogsWithGapWhereInprogressInMiddle This isn't a failure case. If log A has 1-2 and log B has 1-5, then that means A failed after transaction 2 and wasn't reenabled until the next roll if at all. This means that A has a gap, from 3-5, so on loading B will be selected for that segment. public void testLogGroupRecoveryInProgress() throws IOException { - TestFileJournalManager#testInprogressRecoveryAll public void testCurrentSplitEditsAndImage() throws IOException { - No longer relevant whith storage inspector only handling image files public void testLogManifest() throws IOException { - TestEditLog#testEditLogManifest public void testLogManifestInProgressComesFirst() throws IOException { - TestEditLog#testEditLogInprogressComesFirst > Move all journal stream management code into one place > ------------------------------------------------------ > > Key: HDFS-2018 > URL: https://issues.apache.org/jira/browse/HDFS-2018 > Project: Hadoop HDFS > Issue Type: Improvement > Reporter: Ivan Kelly > Assignee: Ivan Kelly > Fix For: Edit log branch (HDFS-1073) > > Attachments: HDFS-2018.diff, HDFS-2018.diff, HDFS-2018.diff, HDFS-2018.diff, HDFS-2018.diff, HDFS-2018.diff, HDFS-2018.diff, HDFS-2018.diff > > > Currently in the HDFS-1073 branch, the code for creating output streams is in FileJournalManager and the code for input streams is in the inspectors. This change does a number of things. > - Input and Output streams are now created by the JournalManager. > - FSImageStorageInspectors now deals with URIs when referring to edit logs > - Recovery of inprogress logs is performed by counting the number of transactions instead of looking at the length of the file. > The patch for this applies on top of the HDFS-1073 branch + HDFS-2003 patch. -- This message is automatically generated by JIRA. For more information on JIRA, see: http://www.atlassian.com/software/jira