hadoop-yarn-issues mailing list archives

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

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

Naganarasimha G R commented on YARN-4909:
-----------------------------------------

Hi [~vvasudev],
We too had discussions here on the similar lines:
bq. Don't undo the JerseyTest options to set a port. If a user has provided a port via the
system properties, we should honor it.
If we see the current implementation of {{JerseyTestBase.initializeJerseyPort}} we are simply
overriding "jerseyPort" by {{System.setProperty("jersey.test.port", Integer.toString(jerseyPort));}}
so here too if user has provided the port it gets over ridden by the code. Also would there
be possibility for this property to be set by user ? if so then we can do it in this way :
overriden {{getport}} can check whether *"jersey.test.port"* is set then use that system property
configured port as argument for {{ServerSocketUtil.getPort}} else use {{port}}.
bq. I'm not convinced the current patch will fix the issue - it'll probably make the occurrences
less frequent.
Initially i felt the same but *ServerSocketUtil.getPort"* has been designed to work in that
way itself, IIRC Solution was discussed as per this [comment|https://issues.apache.org/jira/browse/YARN-3528?focusedCommentId=14564091&page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#comment-14564091]
and also they wanted to respect allocating to the port which was initially given. As per the
test results, test failure propability is less And also what ever approach we take there would
be slight possibility that the ports can overlap right ?

> 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