JDK-8338503 : Test java/net/httpclient/ThrowingSubscribersAsLines.java intermittent timeout
  • Type: Bug
  • Component: core-libs
  • Sub-Component: java.net
  • Priority: P4
  • Status: Closed
  • Resolution: Duplicate
  • OS: linux
  • CPU: generic
  • Submitted: 2024-08-16
  • Updated: 2024-08-16
  • Resolved: 2024-08-16
Related Reports
Duplicate :  
Description
Test log snippet:
"MainThread" #31 [2881229] prio=5 os_prio=0 cpu=688.27ms elapsed=480.33s tid=0x00007f04e02023b0 nid=2881229 waiting on condition  [0x00007f049111d000]
   java.lang.Thread.State: WAITING (parking)
	at jdk.internal.misc.Unsafe.park(java.base@24/Native Method)
	- parking to wait for  <0x00000000a3124338> (a java.util.concurrent.CompletableFuture$Signaller)
	at java.util.concurrent.locks.LockSupport.park(java.base@24/LockSupport.java:223)
	at java.util.concurrent.CompletableFuture$Signaller.block(java.base@24/CompletableFuture.java:1908)
	at java.util.concurrent.ForkJoinPool.unmanagedBlock(java.base@24/ForkJoinPool.java:4021)
	at java.util.concurrent.ForkJoinPool.managedBlock(java.base@24/ForkJoinPool.java:3967)
	at java.util.concurrent.CompletableFuture.waitingGet(java.base@24/CompletableFuture.java:1942)
	at java.util.concurrent.CompletableFuture.get(java.base@24/CompletableFuture.java:2116)
	at jdk.internal.net.http.HttpClientImpl.send(java.net.http@24/HttpClientImpl.java:935)
	at jdk.internal.net.http.HttpClientFacade.send(java.net.http@24/HttpClientFacade.java:133)
	at AbstractThrowingSubscribers.testThrowing(AbstractThrowingSubscribers.java:466)
	at AbstractThrowingSubscribers.testThrowing(AbstractThrowingSubscribers.java:425)
	at AbstractThrowingSubscribers.testThrowingAsLinesImpl(AbstractThrowingSubscribers.java:355)
	at ThrowingSubscribersAsLines.testThrowingAsLines(ThrowingSubscribersAsLines.java:42)
Comments
[~dfuchs]Hi, does the httpserver issue(https://bugs.openjdk.org/browse/JDK-8338502) is the reason
16-08-2024

Note that other tests involving the HttpClient could randomly and intermittently fail because of this reggression.
16-08-2024

I believe this is the regression that was triggered by the fix I pushed yesterday (JDK-8336655). That fix has now been reverted by JDK-8338495. My apologies for the noise. If the problem persists after pulling JDK-8338495 please reopen this bug.
16-08-2024

java/net/httpclient/ThrowingSubscribersAsStringAsync.java has the same failure: "MainThread" #31 [2802850] prio=5 os_prio=0 cpu=733.95ms elapsed=480.75s tid=0x00007f96f8207950 nid=2802850 waiting on condition [0x00007f96b8b06000] java.lang.Thread.State: WAITING (parking) at jdk.internal.misc.Unsafe.park(java.base@24/Native Method) - parking to wait for <0x00000000a31cf460> (a java.util.concurrent.CompletableFuture$Signaller) at java.util.concurrent.locks.LockSupport.park(java.base@24/LockSupport.java:223) at java.util.concurrent.CompletableFuture$Signaller.block(java.base@24/CompletableFuture.java:1908) at java.util.concurrent.ForkJoinPool.unmanagedBlock(java.base@24/ForkJoinPool.java:4021) at java.util.concurrent.ForkJoinPool.managedBlock(java.base@24/ForkJoinPool.java:3967) at java.util.concurrent.CompletableFuture.waitingGet(java.base@24/CompletableFuture.java:1942) at java.util.concurrent.CompletableFuture.join(java.base@24/CompletableFuture.java:2161) at AbstractThrowingSubscribers.testThrowing(AbstractThrowingSubscribers.java:458) at AbstractThrowingSubscribers.testThrowing(AbstractThrowingSubscribers.java:425) at AbstractThrowingSubscribers.testThrowingAsStringAsyncImpl(AbstractThrowingSubscribers.java:383) at ThrowingSubscribersAsStringAsync.testThrowingAsStringAsync(ThrowingSubscribersAsStringAsync.java:42)
16-08-2024