Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CacheConnectionHttpLoadBalanceFactoryTest #2485

Open
idelpivnitskiy opened this issue Jan 11, 2023 · 4 comments
Open

CacheConnectionHttpLoadBalanceFactoryTest #2485

idelpivnitskiy opened this issue Jan 11, 2023 · 4 comments
Labels
flaky tests Unit tests are flaky

Comments

@idelpivnitskiy
Copy link
Member

idelpivnitskiy commented Jan 11, 2023

https://github.com/apple/servicetalk/runs/10560802924

CacheConnectionHttpLoadBalanceFactoryTest.h1OrH2(int, int, boolean, boolean) [9] numRequests=1000 maxConcurrency=100 clientH2=true serverH2=true

java.util.concurrent.TimeoutException: h1OrH2(int, int, boolean, boolean) timed out after 30 seconds
...
	Suppressed: java.lang.InterruptedException
		at java.util.concurrent.locks.AbstractQueuedSynchronizer.doAcquireSharedInterruptibly(AbstractQueuedSynchronizer.java:1000)
		at java.util.concurrent.locks.AbstractQueuedSynchronizer.acquireSharedInterruptibly(AbstractQueuedSynchronizer.java:1308)
		at java.util.concurrent.CountDownLatch.await(CountDownLatch.java:231)
		at io.servicetalk.concurrent.api.SourceToFuture.get(SourceToFuture.java:91)
		at io.servicetalk.http.netty.CacheConnectionHttpLoadBalanceFactoryTest.h1OrH2(CacheConnectionHttpLoadBalanceFactoryTest.java:116)
		at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
@idelpivnitskiy
Copy link
Member Author

https://github.com/apple/servicetalk/pull/2529/checks?check_run_id=11665238657

CacheConnectionHttpLoadBalanceFactoryTest.h1OrH2(int, int, boolean, boolean) [8] numRequests=201 maxConcurrency=100 clientH2=true serverH2=true

java.util.concurrent.TimeoutException: h1OrH2(int, int, boolean, boolean) timed out after 30 seconds
...
	Suppressed: java.lang.InterruptedException
		at java.util.concurrent.locks.AbstractQueuedSynchronizer.doAcquireSharedInterruptibly(AbstractQueuedSynchronizer.java:1000)
		at java.util.concurrent.locks.AbstractQueuedSynchronizer.acquireSharedInterruptibly(AbstractQueuedSynchronizer.java:1308)
		at java.util.concurrent.CountDownLatch.await(CountDownLatch.java:231)
		at io.servicetalk.concurrent.api.SourceToFuture.get(SourceToFuture.java:91)
		at io.servicetalk.http.netty.CacheConnectionHttpLoadBalanceFactoryTest.h1OrH2(CacheConnectionHttpLoadBalanceFactoryTest.java:116)
		at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

@Scottmitch
Copy link
Member

Scottmitch commented Sep 18, 2023

https://github.com/apple/servicetalk/pull/2695/checks?check_run_id=16905023832

CacheConnectionHttpLoadBalanceFactoryTest.h1OrH2(int, int, boolean, boolean) [9] numRequests=1000 maxConcurrency=100 clientH2=true serverH2=true

java.util.concurrent.TimeoutException: h1OrH2(int, int, boolean, boolean) timed out after 30 seconds

	Suppressed: java.lang.InterruptedException
		at java.util.concurrent.locks.AbstractQueuedSynchronizer.doAcquireSharedInterruptibly(AbstractQueuedSynchronizer.java:1000)
		at java.util.concurrent.locks.AbstractQueuedSynchronizer.acquireSharedInterruptibly(AbstractQueuedSynchronizer.java:1308)
		at java.util.concurrent.CountDownLatch.await(CountDownLatch.java:231)
		at io.servicetalk.concurrent.api.SourceToFuture.get(SourceToFuture.java:94)
		at io.servicetalk.http.netty.CacheConnectionHttpLoadBalanceFactoryTest.h1OrH2(CacheConnectionHttpLoadBalanceFactoryTest.java:116)

@idelpivnitskiy idelpivnitskiy added the flaky tests Unit tests are flaky label Oct 25, 2023
@idelpivnitskiy
Copy link
Member Author

https://github.com/apple/servicetalk/pull/2746/checks?check_run_id=18541669002

CacheConnectionHttpLoadBalanceFactoryTest.h1OrH2(int, int, boolean, boolean) [9] numRequests=1000 maxConcurrency=100 clientH2=true serverH2=true

java.util.concurrent.TimeoutException: h1OrH2(int, int, boolean, boolean) timed out after 30 seconds
...
	Suppressed: java.lang.InterruptedException
		at java.util.concurrent.locks.AbstractQueuedSynchronizer.doAcquireSharedInterruptibly(AbstractQueuedSynchronizer.java:1000)
		at java.util.concurrent.locks.AbstractQueuedSynchronizer.acquireSharedInterruptibly(AbstractQueuedSynchronizer.java:1308)
		at java.util.concurrent.CountDownLatch.await(CountDownLatch.java:231)
		at io.servicetalk.concurrent.api.SourceToFuture.get(SourceToFuture.java:94)
		at io.servicetalk.http.netty.CacheConnectionHttpLoadBalanceFactoryTest.h1OrH2(CacheConnectionHttpLoadBalanceFactoryTest.java:116)
		at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

@bryce-anderson
Copy link
Contributor

I've tried to repro this with a few different settings and adding some extra work to hopefully induce some context switches but haven't had any success. See #2760 for details.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
flaky tests Unit tests are flaky
Projects
None yet
Development

No branches or pull requests

3 participants