hadoop-yarn-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Sunil G (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (YARN-4909) Fix intermittent failures of TestRMWebServices And TestRMWithCSRFFilter
Date Tue, 12 Apr 2016 13:24:25 GMT

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

Sunil G commented on YARN-4909:
-------------------------------

Yes [~Naganarasimha Garla]
We need that to be random number.

{{9998 + rnd. nextInt()%500}}, something like this.. So it can be random when called in parallel.
However this is not fully solving, there can be corner cases. But probability is very very
less.

> Fix intermittent failures of TestRMWebServices And TestRMWithCSRFFilter
> -----------------------------------------------------------------------
>
>                 Key: YARN-4909
>                 URL: https://issues.apache.org/jira/browse/YARN-4909
>             Project: Hadoop YARN
>          Issue Type: Sub-task
>            Reporter: Brahma Reddy Battula
>            Assignee: Bibin A Chundatt
>            Priority: Blocker
>         Attachments: 0001-YARN-4909.patch, 0002-YARN-4909.patch, 0003-YARN-4909.patch,
0004-YARN-4909.patch
>
>
>  *Precommit link* 
> https://builds.apache.org/job/PreCommit-YARN-Build/10908/testReport/
> *Trace* 
> {noformat}
> com.sun.jersey.test.framework.spi.container.TestContainerException: java.net.BindException:
Address already in use
> 	at sun.nio.ch.Net.bind0(Native Method)
> 	at sun.nio.ch.Net.bind(Net.java:463)
> 	at sun.nio.ch.Net.bind(Net.java:455)
> 	at sun.nio.ch.ServerSocketChannelImpl.bind(ServerSocketChannelImpl.java:223)
> 	at sun.nio.ch.ServerSocketAdaptor.bind(ServerSocketAdaptor.java:74)
> 	at org.glassfish.grizzly.nio.transport.TCPNIOTransport.bind(TCPNIOTransport.java:413)
> 	at org.glassfish.grizzly.nio.transport.TCPNIOTransport.bind(TCPNIOTransport.java:384)
> 	at org.glassfish.grizzly.nio.transport.TCPNIOTransport.bind(TCPNIOTransport.java:375)
> 	at org.glassfish.grizzly.http.server.NetworkListener.start(NetworkListener.java:549)
> 	at org.glassfish.grizzly.http.server.HttpServer.start(HttpServer.java:255)
> 	at com.sun.jersey.api.container.grizzly2.GrizzlyServerFactory.createHttpServer(GrizzlyServerFactory.java:326)
> 	at com.sun.jersey.api.container.grizzly2.GrizzlyServerFactory.createHttpServer(GrizzlyServerFactory.java:343)
> 	at com.sun.jersey.test.framework.spi.container.grizzly2.web.GrizzlyWebTestContainerFactory$GrizzlyWebTestContainer.instantiateGrizzlyWebServer(GrizzlyWebTestContainerFactory.java:219)
> 	at com.sun.jersey.test.framework.spi.container.grizzly2.web.GrizzlyWebTestContainerFactory$GrizzlyWebTestContainer.<init>(GrizzlyWebTestContainerFactory.java:129)
> 	at com.sun.jersey.test.framework.spi.container.grizzly2.web.GrizzlyWebTestContainerFactory$GrizzlyWebTestContainer.<init>(GrizzlyWebTestContainerFactory.java:86)
> 	at com.sun.jersey.test.framework.spi.container.grizzly2.web.GrizzlyWebTestContainerFactory.create(GrizzlyWebTestContainerFactory.java:79)
> 	at com.sun.jersey.test.framework.JerseyTest.getContainer(JerseyTest.java:342)
> 	at com.sun.jersey.test.framework.JerseyTest.<init>(JerseyTest.java:217)
> 	at org.apache.hadoop.yarn.webapp.JerseyTestBase.<init>(JerseyTestBase.java:30)
> 	at org.apache.hadoop.yarn.server.resourcemanager.webapp.TestRMWebServices.<init>(TestRMWebServices.java:125)
> {noformat}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message