You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Apr 7, 2026. It is now read-only.
Caused by: java.util.concurrent.TimeoutException: Waited 30000 milliseconds (plus 129893 nanoseconds delay) for com.google.common.util.concurrent.AbstractCatchingFuture$CatchingFuture@26b95b0b[status=PENDING, info=[inputFuture=[com.google.api.core.ApiFutureToListenableFuture@5f7da3d3], exceptionType=[class java.lang.Exception], fallback=[com.google.api.core.ApiFutures$GaxFunctionToGuavaFunction@103082dd]]]
at com.google.common.util.concurrent.AbstractFuture.get(AbstractFuture.java:509)
at com.google.common.util.concurrent.FluentFuture$TrustedFuture.get(FluentFuture.java:102)
at com.google.common.util.concurrent.ForwardingFuture.get(ForwardingFuture.java:68)
at com.google.api.gax.longrunning.OperationFutureImpl.get(OperationFutureImpl.java:133)
at com.google.cloud.spanner.IntegrationTestEnv.initializeInstance(IntegrationTestEnv.java:124)
... 21 more
But the instance is created successfully but is not deleted. Then, all subsequent tests fail with "Instance already exists" error:
Environment details
spanner/v1.49.2
Steps to reproduce
When the following code has a timeout exception, the created instance will not be cleaned up.
java-spanner/google-cloud-spanner/src/test/java/com/google/cloud/spanner/IntegrationTestEnv.java
Line 124 in ce93f87
I get the following exception:
But the instance is created successfully but is not deleted. Then, all subsequent tests fail with "Instance already exists" error:
Expected behaviour
If a test fails with an exception but an instance is created, the instance should be deleted properly and it should not affect the subsequent tests.