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 F251B17D82 for ; Sun, 14 Jun 2015 18:32:00 +0000 (UTC) Received: (qmail 20734 invoked by uid 500); 14 Jun 2015 18:32:00 -0000 Delivered-To: apmail-hadoop-hdfs-issues-archive@hadoop.apache.org Received: (qmail 20680 invoked by uid 500); 14 Jun 2015 18:32:00 -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 20669 invoked by uid 99); 14 Jun 2015 18:32:00 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 14 Jun 2015 18:32:00 +0000 Date: Sun, 14 Jun 2015 18:32:00 +0000 (UTC) From: "Yongjun Zhang (JIRA)" To: hdfs-issues@hadoop.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (HDFS-8596) TestDistributedFileSystem et al tests are broken in branch-2 due to incorrect setting of "datanode" attribute 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-8596?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Yongjun Zhang updated HDFS-8596: -------------------------------- Summary: TestDistributedFileSystem et al tests are broken in branch-2 due to incorrect setting of "datanode" attribute (was: HDFS-8572 breaks TestDistributedFileSystem et al tests in branch-2) > TestDistributedFileSystem et al tests are broken in branch-2 due to incorrect setting of "datanode" attribute > ------------------------------------------------------------------------------------------------------------- > > Key: HDFS-8596 > URL: https://issues.apache.org/jira/browse/HDFS-8596 > Project: Hadoop HDFS > Issue Type: Bug > Components: HDFS > Affects Versions: 2.7.1 > Reporter: Yongjun Zhang > Assignee: Yongjun Zhang > Priority: Blocker > Attachments: HDFS-8596.001.patch > > > After HDFS-8572, some tests failed in branch-2 as below: > {code} > Running org.apache.hadoop.hdfs.TestDistributedFileSystem > Tests run: 17, Failures: 0, Errors: 3, Skipped: 0, Time elapsed: 44.302 sec <<< FAILURE! - in org.apache.hadoop.hdfs.TestDistributedFileSystem > testAllWithDualPort(org.apache.hadoop.hdfs.TestDistributedFileSystem) Time elapsed: 7.985 sec <<< ERROR! > java.io.IOException: Server returned HTTP response code: 500 for URL: http://127.0.0.1:43950/getFileChecksum/filechecksum/foo0?ugi=yzhangx&nnaddr=localhost:57316 > at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1625) > at org.apache.hadoop.hdfs.web.HftpFileSystem$ChecksumParser.getFileChecksum(HftpFileSystem.java:528) > at org.apache.hadoop.hdfs.web.HftpFileSystem$ChecksumParser.access$200(HftpFileSystem.java:504) > at org.apache.hadoop.hdfs.web.HftpFileSystem.getFileChecksum(HftpFileSystem.java:545) > at org.apache.hadoop.hdfs.TestDistributedFileSystem.testFileChecksum(TestDistributedFileSystem.java:592) > at org.apache.hadoop.hdfs.TestDistributedFileSystem.testAllWithDualPort(TestDistributedFileSystem.java:683) > {code} > I found that the cause is the wrong setting of "datanode" attribute in ServletContext introduced by this change. -- This message was sent by Atlassian JIRA (v6.3.4#6332)