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

[Bug]: Spanner resource manager broken for SpannerIOLT #1326

Open
Abacn opened this issue Feb 9, 2024 · 0 comments
Open

[Bug]: Spanner resource manager broken for SpannerIOLT #1326

Abacn opened this issue Feb 9, 2024 · 0 comments
Labels
bug Something isn't working needs triage p2

Comments

@Abacn
Copy link
Contributor

Abacn commented Feb 9, 2024

Related Template(s)

N/A

Template Version

N/A

What happened?

GCP IO performance benchmark used for validation for SpannerIO no longer working. This command used to work:

[main] INFO org.apache.beam.it.gcp.spanner.SpannerResourceManager - Creating instance testspa-20240209-223741-100149 in project apache-beam-testing.
[main] INFO org.apache.beam.it.gcp.spanner.SpannerResourceManager - Deleting instance testspa-20240209-223741-100149...
[main] INFO org.apache.beam.it.common.utils.ResourceManagerUtils - Cleaning up resource manager SpannerResourceManager
[main] INFO org.apache.beam.it.gcp.spanner.SpannerResourceManager - Deleting instance testspa-20240209-223741-100149...
[main] ERROR org.apache.beam.it.common.utils.ResourceManagerUtils - Error cleaning the resource manager SpannerResourceManager
[main] INFO org.apache.beam.it.gcp.dataflow.AbstractPipelineLauncher - Cleaning up Dataflow jobs...
[main] INFO org.apache.beam.it.gcp.dataflow.AbstractPipelineLauncher - Dataflow jobs successfully cleaned up.
[main] INFO org.apache.beam.it.gcp.dataflow.AbstractPipelineLauncher - Cleaning up Dataflow jobs...
[main] INFO org.apache.beam.it.gcp.dataflow.AbstractPipelineLauncher - Dataflow jobs successfully cleaned up.
[main] INFO org.apache.beam.it.gcp.monitoring.MonitoringClient - Attempting to cleanup monitoring client.
[main] INFO org.apache.beam.it.gcp.monitoring.MonitoringClient - Monitoring client successfully cleaned up.
[ERROR] Tests run: 2, Failures: 0, Errors: 2, Skipped: 0, Time elapsed: 6.632 s <<< FAILURE! - in org.apache.beam.it.gcp.spanner.SpannerIOLT
[ERROR] testSpannerWriteAndRead(org.apache.beam.it.gcp.spanner.SpannerIOLT)  Time elapsed: 6.374 s  <<< ERROR!
org.apache.beam.it.gcp.spanner.SpannerResourceManagerException: Failed to delete instance.
	at org.apache.beam.it.gcp.spanner.SpannerResourceManager.cleanupAll(SpannerResourceManager.java:435)
	at org.apache.beam.it.gcp.spanner.SpannerResourceManager.maybeCreateInstance(SpannerResourceManager.java:181)
	at org.apache.beam.it.gcp.spanner.SpannerResourceManager.executeDdlStatement(SpannerResourceManager.java:268)
	at org.apache.beam.it.gcp.spanner.SpannerIOLT.setup(SpannerIOLT.java:105)
	...
	at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:413)
Caused by: com.google.cloud.spanner.SpannerException: INVALID_ARGUMENT: com.google.api.gax.rpc.InvalidArgumentException: io.grpc.StatusRuntimeException: INVALID_ARGUMENT: Project 'project:apache-beam-testing,apache-beam-testing' not found or deleted.
	at com.google.cloud.spanner.SpannerExceptionFactory.newSpannerExceptionPreformatted(SpannerExceptionFactory.java:291)
	...
	at com.google.cloud.spanner.InstanceAdminClientImpl.deleteInstance(InstanceAdminClientImpl.java:250)
	at org.apache.beam.it.gcp.spanner.SpannerResourceManager.lambda$cleanupAll$5(SpannerResourceManager.java:428)
	...
	at org.apache.beam.it.gcp.spanner.SpannerResourceManager.cleanupAll(SpannerResourceManager.java:428)
	... 37 more
Caused by: java.util.concurrent.ExecutionException: com.google.api.gax.rpc.InvalidArgumentException: io.grpc.StatusRuntimeException: INVALID_ARGUMENT: Project 'project:apache-beam-testing,apache-beam-testing' not found or deleted.
	...
	... 47 more
Caused by: com.google.api.gax.rpc.InvalidArgumentException: io.grpc.StatusRuntimeException: INVALID_ARGUMENT: Project 'project:apache-beam-testing,apache-beam-testing' not found or deleted.
	...
Caused by: io.grpc.StatusRuntimeException: INVALID_ARGUMENT: Project 'project:apache-beam-testing,apache-beam-testing' not found or deleted.
	at io.grpc.Status.asRuntimeException(Status.java:537)
	... 32 more

Now it fails to create the instance. The problem is that the project name get passed to spanner became 'project:apache-beam-testing,apache-beam-testing'

The only change since last validation was #826, introduced breaking change to the resource manager.

Relevant log output

No response

@Abacn Abacn added bug Something isn't working p2 needs triage labels Feb 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working needs triage p2
Projects
None yet
Development

No branches or pull requests

1 participant