hadoop-hdfs-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Xiaoyu Yao (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (HDFS-11043) TestWebHdfsTimeouts fails
Date Fri, 16 Mar 2018 18:35:00 GMT

    [ https://issues.apache.org/jira/browse/HDFS-11043?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16402324#comment-16402324
] 

Xiaoyu Yao commented on HDFS-11043:
-----------------------------------

Thanks [~elgoiri] for the comments and [~csun] for sharing articles on this.

 

Looks like the /proc/sys/net/ipv4/tcp_max_syn_backlog in Ubuntu is 128. I slightly tweak the CLIENTS_TO_CONSUME_BACKLOG
to 129 along with two small changes like below.

Now, the test can pass successfully in Ubuntu with repeated runs of 500+ times on Ubuntu.


 

Without the change below, the test usually failed after a repeated run of 40~50 times on Ubuntu. 

 

{code}

-  private static final int CLIENTS_TO_CONSUME_BACKLOG = 100;

+  private static final int CLIENTS_TO_CONSUME_BACKLOG = 129;

   private static final int CONNECTION_BACKLOG = 1;

-  private static final int SHORT_SOCKET_TIMEOUT = 5;

-  private static final int TEST_TIMEOUT = 10000;

+  private static final int SHORT_SOCKET_TIMEOUT = 100;

+  private static final int TEST_TIMEOUT = 100000;

{code}

> TestWebHdfsTimeouts fails
> -------------------------
>
>                 Key: HDFS-11043
>                 URL: https://issues.apache.org/jira/browse/HDFS-11043
>             Project: Hadoop HDFS
>          Issue Type: Bug
>          Components: webhdfs
>    Affects Versions: 3.0.0-alpha1
>            Reporter: Andrew Wang
>            Assignee: Chao Sun
>            Priority: Major
>         Attachments: HDFS-11043.000.patch, org.apache.hadoop.hdfs.web.TestWebHdfsTimeouts.txt
>
>
> I'm seeing reproducible test failures for TestWebHdfsTimeouts locally, at least on trunk.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

---------------------------------------------------------------------
To unsubscribe, e-mail: hdfs-issues-unsubscribe@hadoop.apache.org
For additional commands, e-mail: hdfs-issues-help@hadoop.apache.org


Mime
View raw message