You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@reef.apache.org by "Sergiy Matusevych (JIRA)" <ji...@apache.org> on 2018/09/26 00:35:00 UTC

[jira] [Commented] (REEF-2045) org.apache.reef.webserver.TestHttpServerhttpServerPortRetryTestWithTcpPortProvider() unit test consistently fails on Windows Subsystem for Linux

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

Sergiy Matusevych commented on REEF-2045:
-----------------------------------------

[~singlis] says that somewhere in REEF unit tests we seed the random number generator with a constant {{0}}. if two unit tests run in parallel and seed the RNG and then attempt to open ports using numbers from the same sequence, one of the tests can fail under certain timing conditions. I'll check that later.

> org.apache.reef.webserver.TestHttpServerhttpServerPortRetryTestWithTcpPortProvider() unit test consistently fails on Windows Subsystem for Linux
> ------------------------------------------------------------------------------------------------------------------------------------------------
>
>                 Key: REEF-2045
>                 URL: https://issues.apache.org/jira/browse/REEF-2045
>             Project: REEF
>          Issue Type: Bug
>          Components: REEF
>         Environment: Windows Subsystem for Linux with Ubuntu 16.04 and openjdk-8
>            Reporter: Sergiy Matusevych
>            Priority: Minor
>
> Unit test {{o.a.r.webserver.TestHttpServer.httpServerPortRetryTestWithTcpPortProvider()}} fails consistently when ran under Windows Subsystem for Linux (WSL). Same test runs fine under plain Windows or Linux.
> Logs and stack trace:
> {code:none}
> Running org.apache.reef.webserver.TestHttpServer
> Sep 21, 2018 1:01:11 AM org.apache.reef.webserver.HttpServerImpl tryPort
> INFO: Jetty Server started with port: 13,737
> Sep 21, 2018 1:01:11 AM org.apache.reef.webserver.HttpServerImpl <init>
> INFO: Jetty Server started with port: 13,737
> Sep 21, 2018 1:01:11 AM org.apache.reef.webserver.HttpServerImpl tryPort
> INFO: Jetty Server started with port: 18,028
> Sep 21, 2018 1:01:11 AM org.apache.reef.webserver.HttpServerImpl <init>
> INFO: Jetty Server started with port: 18,028
> Sep 21, 2018 1:01:11 AM org.apache.reef.webserver.HttpServerImpl tryPort
> INFO: Jetty Server started with port: 15,015
> Sep 21, 2018 1:01:11 AM org.apache.reef.webserver.HttpServerImpl <init>
> INFO: Jetty Server started with port: 15,015
> Sep 21, 2018 1:01:12 AM org.apache.reef.webserver.HttpServerImpl tryPort
> INFO: Jetty Server started with port: 19,931
> Sep 21, 2018 1:01:12 AM org.apache.reef.webserver.HttpServerImpl <init>
> INFO: Jetty Server started with port: 19,931
> Sep 21, 2018 1:01:12 AM org.apache.reef.webserver.HttpServerImpl tryPort
> INFO: Jetty Server started with port: 13,085
> Sep 21, 2018 1:01:12 AM org.apache.reef.webserver.HttpServerImpl <init>
> INFO: Jetty Server started with port: 13,085
> Sep 21, 2018 1:01:12 AM org.apache.reef.webserver.HttpServerImpl tryPort
> INFO: Jetty Server started with port: 13,085
> Sep 21, 2018 1:01:12 AM org.apache.reef.webserver.HttpServerImpl <init>
> INFO: Jetty Server started with port: 13,085
> Sep 21, 2018 1:01:12 AM org.apache.reef.webserver.HttpServerImpl tryPort
> INFO: Jetty Server started with port: 17,102
> Sep 21, 2018 1:01:12 AM org.apache.reef.webserver.HttpServerImpl <init>
> INFO: Jetty Server started with port: 17,102
> Sep 21, 2018 1:01:12 AM org.apache.reef.webserver.HttpServerImpl addHttpHandler
> INFO: addHttpHandler: Reef
> Sep 21, 2018 1:01:12 AM org.apache.reef.webserver.HttpServerImpl tryPort
> INFO: Jetty Server started with port: 7,737
> Sep 21, 2018 1:01:12 AM org.apache.reef.webserver.HttpServerImpl <init>
> INFO: Jetty Server started with port: 7,737
> Sep 21, 2018 1:01:12 AM org.apache.reef.webserver.HttpServerImpl tryPort
> INFO: Jetty Server started with port: 5,624
> Sep 21, 2018 1:01:12 AM org.apache.reef.webserver.HttpServerImpl <init>
> INFO: Jetty Server started with port: 5,624
> Tests run: 6, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 0.823 sec <<< FAILURE! - in org.apache.reef.webserver.TestHttpServerhttpServerPortRetryTestWithTcpPortProvider(org.apache.reef.webserver.TestHttpServer)  Time elapsed: 0.035 sec  <<< FAILURE!
> java.lang.AssertionError: Created two web servers on the same port: 13085
>         at org.apache.reef.webserver.TestHttpServer.httpServerPortRetryTestWithTcpPortProvider(TestHttpServer.java:136)
> {code}



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