Return-Path: Delivered-To: apmail-hadoop-hdfs-issues-archive@minotaur.apache.org Received: (qmail 79703 invoked from network); 23 Nov 2010 18:43:03 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 23 Nov 2010 18:43:03 -0000 Received: (qmail 31401 invoked by uid 500); 23 Nov 2010 18:43:35 -0000 Delivered-To: apmail-hadoop-hdfs-issues-archive@hadoop.apache.org Received: (qmail 31368 invoked by uid 500); 23 Nov 2010 18:43:35 -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 31360 invoked by uid 99); 23 Nov 2010 18:43:35 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 23 Nov 2010 18:43:35 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.22] (HELO thor.apache.org) (140.211.11.22) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 23 Nov 2010 18:43:34 +0000 Received: from thor (localhost [127.0.0.1]) by thor.apache.org (8.13.8+Sun/8.13.8) with ESMTP id oANIhESl010142 for ; Tue, 23 Nov 2010 18:43:14 GMT Message-ID: <33288144.266811290537794522.JavaMail.jira@thor> Date: Tue, 23 Nov 2010 13:43:14 -0500 (EST) From: "Todd Lipcon (JIRA)" To: hdfs-issues@hadoop.apache.org Subject: [jira] Commented: (HDFS-1503) TestSaveNamespace fails In-Reply-To: <22969767.156921290023295582.JavaMail.jira@thor> 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-1503?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12934965#action_12934965 ] Todd Lipcon commented on HDFS-1503: ----------------------------------- Sure, no problem. This test uses a mockito "spy" object to inject some code right before the saveFSImage call. In some cases we want to call through to the original saveFSImage, in other cases we just want to throw an exception. For whatever reason, an incorrect change was made in HDFS-1071 which made the "call through" case call through to the same spy object rather than the unmodified class, so of course it infinitely recursed and blew out the stack. The patch switches to using the more "proper" way of doing this in Mockito - the callRealMethod() function. > TestSaveNamespace fails > ----------------------- > > Key: HDFS-1503 > URL: https://issues.apache.org/jira/browse/HDFS-1503 > Project: Hadoop HDFS > Issue Type: Bug > Components: test > Reporter: Eli Collins > Assignee: Todd Lipcon > Priority: Minor > Attachments: hdfs-1503.txt, TEST-org.apache.hadoop.hdfs.server.namenode.TestSaveNamespace.txt > > > Will attach the full log. Here's the relevant snippet: > {noformat} > Exception in thread "FSImageSaver for /home/eli/src/hdfs4/build/test/data/dfs/na > me1 of type IMAGE_AND_EDITS" java.lang.RuntimeException: Injected fault: saveFSI > mage second time > .... > at java.lang.Thread.run(Thread.java:619) > Exception in thread "FSImageSaver for /home/eli/src/hdfs4/build/test/data/dfs/na > me2 of type IMAGE_AND_EDITS" java.lang.StackOverflowError > at java.util.Arrays.copyOf(Arrays.java:2882) > {noformat} -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.