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 E6D3E9537 for ; Tue, 11 Oct 2011 17:25:33 +0000 (UTC) Received: (qmail 63375 invoked by uid 500); 11 Oct 2011 17:25:33 -0000 Delivered-To: apmail-hadoop-hdfs-issues-archive@hadoop.apache.org Received: (qmail 63339 invoked by uid 500); 11 Oct 2011 17:25:33 -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 63331 invoked by uid 99); 11 Oct 2011 17:25:33 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 11 Oct 2011 17:25:33 +0000 X-ASF-Spam-Status: No, hits=-2000.5 required=5.0 tests=ALL_TRUSTED,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, 11 Oct 2011 17:25:32 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id 08538303F94 for ; Tue, 11 Oct 2011 17:25:12 +0000 (UTC) Date: Tue, 11 Oct 2011 17:25:12 +0000 (UTC) From: "Robert Joseph Evans (Commented) (JIRA)" To: hdfs-issues@hadoop.apache.org Message-ID: <2133022797.1569.1318353912035.JavaMail.tomcat@hel.zones.apache.org> In-Reply-To: <1383442950.810.1318342031993.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Commented] (HDFS-2433) TestFileAppend4 fails intermittently 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-2433?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13125205#comment-13125205 ] Robert Joseph Evans commented on HDFS-2433: ------------------------------------------- That could be true, but it does not seem to fit. testAppendSyncReplication[012] brings up a mini DFS cluster writes some data to a file. Kills off one of the datanodes and then appends some more data to the file. It then closes the file, shuts down the cluster. Brings up a new cluster in safemode, and tries to verify that the expected number of replications are there. It is showing too few replications. It could be that there is a race condition on startup of the second minicluster where not all of the datanodes have finished their full block reports before we ask how many replicas there are. > TestFileAppend4 fails intermittently > ------------------------------------ > > Key: HDFS-2433 > URL: https://issues.apache.org/jira/browse/HDFS-2433 > Project: Hadoop HDFS > Issue Type: Bug > Components: data-node, name-node, test > Affects Versions: 0.20.205.0, 0.20.205.1 > Reporter: Robert Joseph Evans > Priority: Critical > Attachments: failed.tar.bz2 > > > A Jenkins build we have running failed twice in a row with issues form TestFileAppend4.testAppendSyncReplication1 in an attempt to reproduce the error I ran TestFileAppend4 in a loop over night saving the results away. (No clean was done in between test runs) > When TestFileAppend4 is run in a loop the testAppendSyncReplication[012] tests fail about 10% of the time (14 times out of 130 tries) They all fail with something like the following. Often it is only one of the tests that fail, but I have seen as many as two fail in one run. > {noformat} > Testcase: testAppendSyncReplication2 took 32.198 sec > FAILED > Should have 2 replicas for that block, not 1 > junit.framework.AssertionFailedError: Should have 2 replicas for that block, not 1 > at org.apache.hadoop.hdfs.TestFileAppend4.replicationTest(TestFileAppend4.java:477) > at org.apache.hadoop.hdfs.TestFileAppend4.testAppendSyncReplication2(TestFileAppend4.java:425) > {noformat} > I also saw several other tests that are a part of TestFileApped4 fail during this experiment. They may all be related to one another so I am filing them in the same JIRA. If it turns out that they are not related then they can be split up later. > testAppendSyncBlockPlusBbw failed 6 out of the 130 times or about 5% of the time > {noformat} > Testcase: testAppendSyncBlockPlusBbw took 1.633 sec > FAILED > unexpected file size! received=0 , expected=1024 > junit.framework.AssertionFailedError: unexpected file size! received=0 , expected=1024 > at org.apache.hadoop.hdfs.TestFileAppend4.assertFileSize(TestFileAppend4.java:136) > at org.apache.hadoop.hdfs.TestFileAppend4.testAppendSyncBlockPlusBbw(TestFileAppend4.java:401) > {noformat} > testAppendSyncChecksum[012] failed 2 out of the 130 times or about 1.5% of the time > {noformat} > Testcase: testAppendSyncChecksum1 took 32.385 sec > FAILED > Should have 1 replica for that block, not 2 > junit.framework.AssertionFailedError: Should have 1 replica for that block, not 2 > at org.apache.hadoop.hdfs.TestFileAppend4.checksumTest(TestFileAppend4.java:556) > at org.apache.hadoop.hdfs.TestFileAppend4.testAppendSyncChecksum1(TestFileAppend4.java:500) > {noformat} > I will attach logs for all of the failures. Be aware that I did change some of the logging messages in this test so I could better see when testAppendSyncReplication started and ended. Other then that the code is stock 0.20.205 RC2 -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa For more information on JIRA, see: http://www.atlassian.com/software/jira