googleapis / java-spanner

Apache License 2.0
64 stars 114 forks source link

SessionPoolTest.blockAndTimeoutOnPoolExhaustion_withAcquireSessionTimeout is flaky #3251

Closed olavloite closed 2 months ago

olavloite commented 2 months ago

Flake while multiplexed sessions were enabled

[ERROR] Tests run: 76, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 2.137 s <<< FAILURE! -- in com.google.cloud.spanner.SessionPoolTest
[ERROR] com.google.cloud.spanner.SessionPoolTest.blockAndTimeoutOnPoolExhaustion_withAcquireSessionTimeout[min sessions = 0] -- Time elapsed: 0.080 s <<< ERROR!
com.google.cloud.spanner.SpannerException: 
RESOURCE_EXHAUSTED: Timed out after waiting 20ms for acquiring session. To mitigate error SessionPoolOptions#setAcquireSessionTimeout(Duration) to set a higher timeout or increase the number of sessions in the session pool.
There are currently 1 sessions checked out: