jetty.project
jetty.project copied to clipboard
`WebSocketOverHTTP2Test.testWebSocketConnectPortDoesNotExist()` is flaky
Jetty version(s) 12.0.x
Description
org.eclipse.jetty.ee8.websocket.tests.WebSocketOverHTTP2Test.testWebSocketConnectPortDoesNotExist() sometimes fails with:
java.lang.AssertionError:
Expected: an instance of java.net.ConnectException
but: <java.io.IOException: frame_size_error/invalid_frame_length> is a java.io.IOException
at org.hamcrest.MatcherAssert.assertThat(MatcherAssert.java:20)
at org.hamcrest.MatcherAssert.assertThat(MatcherAssert.java:6)
at org.eclipse.jetty.ee8.websocket.tests.WebSocketOverHTTP2Test.testWebSocketConnectPortDoesNotExist(WebSocketOverHTTP2Test.java:224)
at java.base/java.lang.reflect.Method.invoke(Method.java:568)
at java.base/java.util.concurrent.RecursiveAction.exec(RecursiveAction.java:194)
at java.base/java.util.concurrent.ForkJoinTask.doExec(ForkJoinTask.java:373)
at java.base/java.util.concurrent.ForkJoinPool$WorkQueue.topLevelExec(ForkJoinPool.java:1182)
at java.base/java.util.concurrent.ForkJoinPool.scan(ForkJoinPool.java:1655)
at java.base/java.util.concurrent.ForkJoinPool.runWorker(ForkJoinPool.java:1622)
at java.base/java.util.concurrent.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:165)
See: https://jenkins.webtide.net/blue/organizations/jenkins/jetty.project/detail/PR-10431/62/tests
Here is the output when the test fails:
Running org.eclipse.jetty.ee8.websocket.tests.client.ClientCloseTest.testMessageTooLargeException()
2024-04-18 10:35:30.663:INFO :oejsh.ContextHandler:ForkJoinPool-1-worker-3: Started oeje8n.ContextHandler$CoreContextHandler@672da6a0{ROOT,/,b=null,a=AVAILABLE,h=oeje8n.ContextHandler$CoreContextHandler$CoreToNestedHandler@46397f32{STARTED}}
2024-04-18 10:35:30.663:INFO :oejs.DefaultSessionIdManager:ForkJoinPool-1-worker-3: Session workerName=node0
2024-04-18 10:35:30.664:INFO :oejs.AbstractConnector:ForkJoinPool-1-worker-3: Started ServerConnector@442b9b9b{HTTP/1.1, (http/1.1)}{0.0.0.0:38413}
2024-04-18 10:35:30.664:INFO :oejs.Server:ForkJoinPool-1-worker-3: Started oejs.Server@3276328d{STARTING}[12.0.9-SNAPSHOT,sto=0] @7349ms
2024-04-18 10:35:30.664:INFO :oejs.Server:ForkJoinPool-1-worker-8: jetty-12.0.9-SNAPSHOT; built: 2024-04-17T12:21:45.880Z; git: 4aee46dacf18a90ab35d0b057c88f18737c5c630; jvm 17.0.10+7
2024-04-18 10:35:30.668:INFO :oejus.SslContextFactory:ForkJoinPool-1-worker-2: x509=X509@3ed34d1a(1,h=[localhost],a=[],w=[]) for Server@58ec4a63[provider=null,keyStore=file:///home/jenkins/agent/workspace/jetty.project_PR-10431/jetty-ee8/jetty-ee8-websocket/jetty-ee8-websocket-jetty-tests/target/test-classes/keystore.p12,trustStore=null]
2024-04-18 10:35:30.668:INFO :oejsh.ContextHandler:ForkJoinPool-1-worker-8: Started oeje8n.ContextHandler$CoreContextHandler@742c766e{ROOT,/,b=null,a=AVAILABLE,h=oeje8n.ContextHandler$CoreContextHandler$CoreToNestedHandler@56926a15{STARTED}}
2024-04-18 10:35:30.669:INFO :oejs.AbstractConnector:ForkJoinPool-1-worker-8: Started ServerConnector@3f7c771f{HTTP/1.1, (http/1.1)}{0.0.0.0:33589}
2024-04-18 10:35:30.669:INFO :oejs.Server:ForkJoinPool-1-worker-8: Started oejs.Server@528978f6{STARTING}[12.0.9-SNAPSHOT,sto=0] @7355ms
2024-04-18 10:35:30.670:INFO :oejs.Server:ForkJoinPool-1-worker-3: Stopped oejs.Server@3276328d{STOPPING}[12.0.9-SNAPSHOT,sto=0]
2024-04-18 10:35:30.671:INFO :oejs.AbstractConnector:ForkJoinPool-1-worker-3: Stopped ServerConnector@442b9b9b{HTTP/1.1, (http/1.1)}{0.0.0.0:0}
2024-04-18 10:35:30.672:INFO :oejs.Server:ForkJoinPool-1-worker-3: jetty-12.0.9-SNAPSHOT; built: 2024-04-17T12:21:45.880Z; git: 4aee46dacf18a90ab35d0b057c88f18737c5c630; jvm 17.0.10+7
2024-04-18 10:35:30.676:INFO :oejsh.ContextHandler:ForkJoinPool-1-worker-3: Started oeje8n.ContextHandler$CoreContextHandler@672da6a0{ROOT,/,b=null,a=AVAILABLE,h=oeje8n.ContextHandler$CoreContextHandler$CoreToNestedHandler@46397f32{STARTED}}
2024-04-18 10:35:30.676:INFO :oejs.DefaultSessionIdManager:ForkJoinPool-1-worker-3: Session workerName=node0
2024-04-18 10:35:30.676:INFO :oejs.AbstractConnector:ForkJoinPool-1-worker-3: Started ServerConnector@442b9b9b{HTTP/1.1, (http/1.1)}{0.0.0.0:37925}
2024-04-18 10:35:30.677:INFO :oejs.Server:ForkJoinPool-1-worker-3: Started oejs.Server@3276328d{STARTING}[12.0.9-SNAPSHOT,sto=0] @7362ms
2024-04-18 10:35:30.755:INFO :oejs.AbstractConnector:ForkJoinPool-1-worker-2: Started ServerConnector@55630b69{SSL, (ssl, alpn, http/1.1, h2)}{0.0.0.0:45123}
2024-04-18 10:35:30.755:INFO :oejs.Server:ForkJoinPool-1-worker-2: Started oejs.Server@1adbd6{STARTING}[12.0.9-SNAPSHOT,sto=0] @7440ms
2024-04-18 10:35:30.756:INFO :oejs.Server:ForkJoinPool-1-worker-3: Stopped oejs.Server@3276328d{STOPPING}[12.0.9-SNAPSHOT,sto=0]
2024-04-18 10:35:30.756:INFO :oejs.AbstractConnector:ForkJoinPool-1-worker-3: Stopped ServerConnector@442b9b9b{HTTP/1.1, (http/1.1)}{0.0.0.0:0}
2024-04-18 10:35:30.757:WARN :oejusS.config:ForkJoinPool-1-worker-2: Trusting all certificates configured for Client@7b615a1d[provider=null,keyStore=null,trustStore=null]
2024-04-18 10:35:30.758:WARN :oejusS.config:ForkJoinPool-1-worker-2: No Client EndPointIdentificationAlgorithm configured for Client@7b615a1d[provider=null,keyStore=null,trustStore=null]
2024-04-18 10:35:30.758:INFO :oejs.Server:ForkJoinPool-1-worker-3: jetty-12.0.9-SNAPSHOT; built: 2024-04-17T12:21:45.880Z; git: 4aee46dacf18a90ab35d0b057c88f18737c5c630; jvm 17.0.10+7
2024-04-18 10:35:30.762:INFO :oejsh.ContextHandler:ForkJoinPool-1-worker-3: Started oeje8n.ContextHandler$CoreContextHandler@672da6a0{ROOT,/,b=null,a=AVAILABLE,h=oeje8n.ContextHandler$CoreContextHandler$CoreToNestedHandler@46397f32{STARTED}}
2024-04-18 10:35:30.762:INFO :oejs.DefaultSessionIdManager:ForkJoinPool-1-worker-3: Session workerName=node0
2024-04-18 10:35:30.763:INFO :oejs.AbstractConnector:ForkJoinPool-1-worker-3: Started ServerConnector@442b9b9b{HTTP/1.1, (http/1.1)}{0.0.0.0:42961}
2024-04-18 10:35:30.764:INFO :oejs.Server:ForkJoinPool-1-worker-3: Started oejs.Server@3276328d{STARTING}[12.0.9-SNAPSHOT,sto=0] @7449ms
2024-04-18 10:35:30.770:INFO :oejs.Server:ForkJoinPool-1-worker-3: Stopped oejs.Server@3276328d{STOPPING}[12.0.9-SNAPSHOT,sto=0]
2024-04-18 10:35:30.770:INFO :oejs.AbstractConnector:ForkJoinPool-1-worker-3: Stopped ServerConnector@442b9b9b{HTTP/1.1, (http/1.1)}{0.0.0.0:0}
2024-04-18 10:35:30.772:INFO :oejs.Server:ForkJoinPool-1-worker-3: jetty-12.0.9-SNAPSHOT; built: 2024-04-17T12:21:45.880Z; git: 4aee46dacf18a90ab35d0b057c88f18737c5c630; jvm 17.0.10+7
2024-04-18 10:35:30.772:INFO :oejs.Server:ForkJoinPool-1-worker-2: Stopped oejs.Server@1adbd6{STOPPING}[12.0.9-SNAPSHOT,sto=0]
2024-04-18 10:35:30.773:INFO :oejs.AbstractConnector:ForkJoinPool-1-worker-2: Stopped ServerConnector@c00204f{HTTP/1.1, (http/1.1, h2c)}{0.0.0.0:0}
2024-04-18 10:35:30.773:INFO :oejs.AbstractConnector:ForkJoinPool-1-worker-2: Stopped ServerConnector@55630b69{SSL, (ssl, alpn, http/1.1, h2)}{0.0.0.0:0}
2024-04-18 10:35:30.774:INFO :oejewc.WebSocketClient:ForkJoinPool-1-worker-2: Shutdown WebSocketClient@4a0c6abd[coreClient=oejwcc.WebSocketCoreClient@3830fb9f{STARTED},openSessions.size=0]
2024-04-18 10:35:30.776:INFO :oejsh.ContextHandler:ForkJoinPool-1-worker-3: Started oeje8n.ContextHandler$CoreContextHandler@672da6a0{ROOT,/,b=null,a=AVAILABLE,h=oeje8n.ContextHandler$CoreContextHandler$CoreToNestedHandler@46397f32{STARTED}}
2024-04-18 10:35:30.776:INFO :oejs.DefaultSessionIdManager:ForkJoinPool-1-worker-3: Session workerName=node0
2024-04-18 10:35:30.777:INFO :oejs.AbstractConnector:ForkJoinPool-1-worker-3: Started ServerConnector@442b9b9b{HTTP/1.1, (http/1.1)}{0.0.0.0:39815}
2024-04-18 10:35:30.777:INFO :oejs.Server:ForkJoinPool-1-worker-3: Started oejs.Server@3276328d{STARTING}[12.0.9-SNAPSHOT,sto=0] @7463ms
2024-04-18 10:35:30.783:INFO :oejewc.WebSocketClient:ForkJoinPool-1-worker-8: Shutdown WebSocketClient@82a9f8d8[coreClient=oejwcc.WebSocketCoreClient@70bb264b{STARTED},openSessions.size=0]
2024-04-18 10:35:30.783:INFO :oejs.Server:ForkJoinPool-1-worker-3: Stopped oejs.Server@3276328d{STOPPING}[12.0.9-SNAPSHOT,sto=0]
2024-04-18 10:35:30.783:INFO :oejs.AbstractConnector:ForkJoinPool-1-worker-3: Stopped ServerConnector@442b9b9b{HTTP/1.1, (http/1.1)}{0.0.0.0:0}
2024-04-18 10:35:30.854:INFO :oejs.Server:ForkJoinPool-1-worker-3: jetty-12.0.9-SNAPSHOT; built: 2024-04-17T12:21:45.880Z; git: 4aee46dacf18a90ab35d0b057c88f18737c5c630; jvm 17.0.10+7