[ https://issues.apache.org/jira/browse/HDFS-11252?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15753131#comment-15753131 ]
Yiqun Lin commented on HDFS-11252: ---------------------------------- Thanks for reporting this, [~jlowe]. Some comments from mie. {quote} Maybe there's a race condition there? {quote} We would better not to hard-code or reuse the same port number in unit tests since the Jenkins slave can run multiple jobs at the same time. And this will cause bind conflicts. So if we restart datanode with keeping port, there is a chance that will lead a Bind Exception. You can see a similar issue HDFS-10730. BTW, I think here we don't need to keep the port. Will attach a simple patch soon to fix this. Thanks. > TestFileTruncate#testTruncateWithDataNodesRestartImmediately can fail with > BindException > ---------------------------------------------------------------------------------------- > > Key: HDFS-11252 > URL: https://issues.apache.org/jira/browse/HDFS-11252 > Project: Hadoop HDFS > Issue Type: Bug > Affects Versions: 3.0.0-alpha2 > Reporter: Jason Lowe > Assignee: Yiqun Lin > > testTruncateWithDataNodesRestartImmediately can fail with a BindException. > The setup for TestFileTruncate has been fixed in the past to solve a bind > exception, but this is occurring after the minicluster comes up and the > datanodes are being restarted. Maybe there's a race condition there? -- This message was sent by Atlassian JIRA (v6.3.4#6332) --------------------------------------------------------------------- To unsubscribe, e-mail: hdfs-issues-unsubscr...@hadoop.apache.org For additional commands, e-mail: hdfs-issues-h...@hadoop.apache.org