Return-Path: X-Original-To: apmail-hadoop-common-issues-archive@minotaur.apache.org Delivered-To: apmail-hadoop-common-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 E3AAE17A28 for ; Thu, 8 Jan 2015 11:33:35 +0000 (UTC) Received: (qmail 46290 invoked by uid 500); 8 Jan 2015 11:33:36 -0000 Delivered-To: apmail-hadoop-common-issues-archive@hadoop.apache.org Received: (qmail 46184 invoked by uid 500); 8 Jan 2015 11:33:36 -0000 Mailing-List: contact common-issues-help@hadoop.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: common-issues@hadoop.apache.org Delivered-To: mailing list common-issues@hadoop.apache.org Received: (qmail 45905 invoked by uid 99); 8 Jan 2015 11:33:36 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 08 Jan 2015 11:33:36 +0000 Date: Thu, 8 Jan 2015 11:33:36 +0000 (UTC) From: "Hudson (JIRA)" To: common-issues@hadoop.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (HADOOP-11462) TestSocketIOWithTimeout needs change for PowerPC platform 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/HADOOP-11462?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14269219#comment-14269219 ] Hudson commented on HADOOP-11462: --------------------------------- FAILURE: Integrated in Hadoop-Yarn-trunk-Java8 #67 (See [https://builds.apache.org/job/Hadoop-Yarn-trunk-Java8/67/]) HADOOP-11462. TestSocketIOWithTimeout needs change for PowerPC platform. Contributed by Ayappan. (cnauroth: rev 3ed0aed3cc4c2c7f96d3c5dd95d8dcd4eb8e888a) * hadoop-common-project/hadoop-common/src/test/java/org/apache/hadoop/net/TestSocketIOWithTimeout.java * hadoop-common-project/hadoop-common/CHANGES.txt > TestSocketIOWithTimeout needs change for PowerPC platform > --------------------------------------------------------- > > Key: HADOOP-11462 > URL: https://issues.apache.org/jira/browse/HADOOP-11462 > Project: Hadoop Common > Issue Type: Bug > Components: test > Affects Versions: 2.5.2 > Environment: PowerPC > Reporter: Ayappan > Assignee: Ayappan > Fix For: 2.7.0 > > Attachments: HADOOP-9627-v1.patch, HADOOP-9627-v2.patch > > > TestSocketIOWithTimeout uses a block size of 4192 bytes to simulate a partial write. This seems to be a valid in x86 architecture where the default minimum blocksize is 4096. > This testcase fails in PowerPC where the default minimum block size is 65536 bytes (64KB). So for PowerPC, using a blocksize little more than 64K , say 65555(65536 + 19) holds good for this scenario. > I attached a patch here where i made it very general by introducing NativeIO.POSIX.getCacheManipulator().getOperatingSystemPageSize() to get the page size. > I tested my patch in both ppc64 and x86 linux machines. -- This message was sent by Atlassian JIRA (v6.3.4#6332)