Uploaded image for project: 'JBoss Enterprise Application Platform'
  1. JBoss Enterprise Application Platform
  2. JBEAP-23873

[QA](7.4.z) UNDERTOW-2124 - ProgramaticLazyEndpointTest and BinaryEndpointTest failures with JDK-17

XMLWordPrintable

    • False
    • None
    • False
    • Hide
      export JAVA_HOME=/path/to/jdk-17
      mvn clean install -DskipTests
      cd websockets-jsr/
      mvn test -Dtest=io.undertow.websockets.jsr.test.BinaryEndpointTest,io.undertow.websockets.jsr.test.ProgramaticLazyEndpointTest
      

      Execute several times and the issue is seen. It happens to me in my fedora laptop too, so it's reproducible.

      Show
      export JAVA_HOME=/path/to/jdk-17 mvn clean install -DskipTests cd websockets-jsr/ mvn test -Dtest=io.undertow.websockets.jsr.test.BinaryEndpointTest,io.undertow.websockets.jsr.test.ProgramaticLazyEndpointTest Execute several times and the issue is seen. It happens to me in my fedora laptop too, so it's reproducible.

      In the `websockets-jsr` sub-project there spurious failures in tests `ProgramaticLazyEndpointTest`and `BinaryEndpointTest` when using JDK-17. The errors are something like the following:

      [INFO] Running io.undertow.websockets.jsr.test.ProgramaticLazyEndpointTest
      Error:  Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 11.032 s <<< FAILURE! - in io.undertow.websockets.jsr.test.ProgramaticLazyEndpointTest
      Error:  testStringOnMessage(io.undertow.websockets.jsr.test.ProgramaticLazyEndpointTest)  Time elapsed: 10.024 s  <<< ERROR!
      java.io.IOException: UT003035: Connection timed out
          at io.undertow.websockets.jsr.ServerWebSocketContainer.connectToServer(ServerWebSocketContainer.java:332)
          at io.undertow.websockets.jsr.ServerWebSocketContainer.connectToServer(ServerWebSocketContainer.java:309)
          at io.undertow.websockets.jsr.test.ProgramaticLazyEndpointTest.testStringOnMessage(ProgramaticLazyEndpointTest.java:108)
          ...
      

      Note the time taken is 10s which is the timeout used in the test.

              rhn-support-rmartinc Ricardo Martin Camarero
              rhn-support-rmartinc Ricardo Martin Camarero
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Created:
                Updated:
                Resolved: