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 207BCE0C9 for ; Wed, 28 Nov 2012 01:59:00 +0000 (UTC) Received: (qmail 98214 invoked by uid 500); 28 Nov 2012 01:58:59 -0000 Delivered-To: apmail-hadoop-hdfs-issues-archive@hadoop.apache.org Received: (qmail 98172 invoked by uid 500); 28 Nov 2012 01:58:59 -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 98118 invoked by uid 99); 28 Nov 2012 01:58:59 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 28 Nov 2012 01:58:59 +0000 Date: Wed, 28 Nov 2012 01:58:59 +0000 (UTC) From: "Aaron T. Myers (JIRA)" To: hdfs-issues@hadoop.apache.org Message-ID: <1036075145.30855.1354067939306.JavaMail.jiratomcat@arcas> In-Reply-To: <1378817230.8401.1353440578704.JavaMail.jiratomcat@arcas> Subject: [jira] [Commented] (HDFS-4214) OfflineEditsViewer should print out the offset at which it encountered an error 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-4214?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13505164#comment-13505164 ] Aaron T. Myers commented on HDFS-4214: -------------------------------------- bq. even though this is just a debug log, the information printed will be used for taking next steps on how to fix the editlog, right? If so, should we add a unit test anyway? What sort of test do you have in mind? One that checks that something is actually written to stderr? Or a test that EditLogInputStream#getPosition actually returns what's expected? In general I'm all for more tests, but this seems like a spot where it's annoying to write one and it won't actually test much. > OfflineEditsViewer should print out the offset at which it encountered an error > ------------------------------------------------------------------------------- > > Key: HDFS-4214 > URL: https://issues.apache.org/jira/browse/HDFS-4214 > Project: Hadoop HDFS > Issue Type: Improvement > Components: tools > Affects Versions: 2.0.3-alpha > Reporter: Colin Patrick McCabe > Assignee: Colin Patrick McCabe > Priority: Trivial > Fix For: 2.0.3-alpha > > Attachments: HDFS-4214.001.patch > > > OfflineEditsViewer should print out the offset at which it encountered an error. This helps developers or users debug problems with loading malformed 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