Uploaded image for project: 'REEF (Retired)'
  1. REEF (Retired)
  2. REEF-2045

org.apache.reef.webserver.TestHttpServerhttpServerPortRetryTestWithTcpPortProvider() unit test consistently fails on Windows Subsystem for Linux

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Minor
    • Resolution: Unresolved
    • None
    • None
    • REEF
    • None
    • Windows Subsystem for Linux with Ubuntu 16.04 and openjdk-8

    Description

      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:

      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)
      

      Attachments

        Activity

          People

            Unassigned Unassigned
            motus Sergiy Matusevych
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated: