Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id E3368200B62 for ; Fri, 8 Jul 2016 01:47:12 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id DFFAB160A72; Thu, 7 Jul 2016 23:47:12 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 34A26160A75 for ; Fri, 8 Jul 2016 01:47:12 +0200 (CEST) Received: (qmail 22585 invoked by uid 500); 7 Jul 2016 23:47:11 -0000 Mailing-List: contact common-issues-help@hadoop.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Delivered-To: mailing list common-issues@hadoop.apache.org Received: (qmail 22274 invoked by uid 99); 7 Jul 2016 23:47:11 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 07 Jul 2016 23:47:11 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id F3E642C02A7 for ; Thu, 7 Jul 2016 23:47:10 +0000 (UTC) Date: Thu, 7 Jul 2016 23:47:10 +0000 (UTC) From: "Mingliang Liu (JIRA)" To: common-issues@hadoop.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Comment Edited] (HADOOP-13351) TestDFSClientSocketSize buffer size tests are flaky MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Thu, 07 Jul 2016 23:47:13 -0000 [ https://issues.apache.org/jira/browse/HADOOP-13351?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15366971#comment-15366971 ] Mingliang Liu edited comment on HADOOP-13351 at 7/7/16 11:46 PM: ----------------------------------------------------------------- The v1 patch is also the best effort I can figure out so far. Thanks for the patch. {code} void testSpecifiedSendBufferSize() throws IOException { final int mySendBufferSize = 64 * 1024; // 64 KB {code} To make the test covers the specified value, I'd suggest we change {{mySendBufferSize}} to be a different value (say, 512KB). The default value is 128KB >= 64KB. As a result, the test can pass without the following the statement which sets the specific value: {code} conf.setInt(DFS_CLIENT_SOCKET_SEND_BUFFER_SIZE_KEY, mySendBufferSize); {code} was (Author: liuml07): The v1 patch is also the best effort I can figure out so far. Thanks for the patch. {code} void testSpecifiedSendBufferSize() throws IOException { final int mySendBufferSize = 64 * 1024; // 64 KB {code} To make the test covers the specified value, I'd suggest we change {{mySendBufferSize}} to be a different value (say, 32KB). The default value is 128KB >= 64KB. As a result, the test can pass without the following the statement which sets the specific value: {code} conf.setInt(DFS_CLIENT_SOCKET_SEND_BUFFER_SIZE_KEY, mySendBufferSize); {code} > TestDFSClientSocketSize buffer size tests are flaky > --------------------------------------------------- > > Key: HADOOP-13351 > URL: https://issues.apache.org/jira/browse/HADOOP-13351 > Project: Hadoop Common > Issue Type: Bug > Affects Versions: 2.8.0, 3.0.0-alpha1 > Reporter: Aaron Fabbri > Attachments: HADOOP-13551.001.patch > > > {{TestDFSClientSocketSize}} has two tests that assert that a value that was set via {{java.net.Socket#setSendBufferSize}} is equal to the value subsequently returned by {{java.net.Socket#getSendBufferSize}}. > These tests are flaky when we run them. The occasionally fail. > This is expected behavior, actually, because {{Socket#setSendBufferSize()}}[is only a hint|https://docs.oracle.com/javase/7/docs/api/java/net/Socket.html#setSendBufferSize(int)]. (Similar to how the underlying libc {{setsockopt(SO_SNDBUF)}} works). -- This message was sent by Atlassian JIRA (v6.3.4#6332) --------------------------------------------------------------------- To unsubscribe, e-mail: common-issues-unsubscribe@hadoop.apache.org For additional commands, e-mail: common-issues-help@hadoop.apache.org