GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Fix Spanner integration tests · Issue #1702 · googleapis/google-cloud-java

Fix Spanner integration tests #1702

New issue
Copy link
New issue
Copy link
Closed
Closed
Fix Spanner integration tests#1702
Copy link
Assignees
vkedia
Labels
api: spannerIssues related to the Spanner API.

Description

@garrettjonesgoogle
garrettjonesgoogle
opened on Mar 6, 2017
Issue body actions

Spanner integration tests are failing frequently:

https://travis-ci.org/GoogleCloudPlatform/google-cloud-java/jobs/207562209


Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 2.122 sec <<< FAILURE! - in com.google.cloud.spanner.it.ITLargeReadTest
com.google.cloud.spanner.it.ITLargeReadTest  Time elapsed: 0.01 sec  <<< ERROR!
com.google.cloud.spanner.SpannerException: NOT_FOUND: io.grpc.StatusRuntimeException: NOT_FOUND: Database has been deleted
	at com.google.common.util.concurrent.AbstractFuture.getDoneValue(AbstractFuture.java:476)
	at com.google.common.util.concurrent.AbstractFuture.get(AbstractFuture.java:455)
	at com.google.cloud.spanner.spi.DefaultSpannerRpc.get(DefaultSpannerRpc.java:398)
	at com.google.cloud.spanner.spi.DefaultSpannerRpc.commit(DefaultSpannerRpc.java:376)
	at com.google.cloud.spanner.SpannerImpl$TransactionContextImpl$1.call(SpannerImpl.java:1235)
	at com.google.cloud.spanner.SpannerImpl$TransactionContextImpl$1.call(SpannerImpl.java:1232)
	at com.google.cloud.spanner.SpannerImpl.runWithRetries(SpannerImpl.java:198)
	at com.google.cloud.spanner.SpannerImpl$TransactionContextImpl.commit(SpannerImpl.java:1230)
	at com.google.cloud.spanner.SpannerImpl$TransactionRunnerImpl.run(SpannerImpl.java:1148)
	at com.google.cloud.spanner.SpannerImpl$SessionImpl.write(SpannerImpl.java:704)
	at com.google.cloud.spanner.SessionPool$PooledSession.write(SessionPool.java:201)
	at com.google.cloud.spanner.DatabaseClientImpl.write(DatabaseClientImpl.java:31)
	at com.google.cloud.spanner.it.ITLargeReadTest.setUpDatabase(ITLargeReadTest.java:111)
Caused by: io.grpc.StatusRuntimeException: NOT_FOUND: Database has been deleted
	at io.grpc.Status.asRuntimeException(Status.java:545)
	at io.grpc.stub.ClientCalls$UnaryStreamToFuture.onClose(ClientCalls.java:442)
	at io.grpc.ForwardingClientCallListener.onClose(ForwardingClientCallListener.java:56)
	at com.google.cloud.spanner.spi.SpannerErrorInterceptor$1$1.onClose(SpannerErrorInterceptor.java:100)
	at io.grpc.ForwardingClientCallListener.onClose(ForwardingClientCallListener.java:56)
	at com.google.cloud.spanner.spi.WatchdogInterceptor$MonitoredCall$1.onClose(WatchdogInterceptor.java:190)
	at io.grpc.ForwardingClientCallListener.onClose(ForwardingClientCallListener.java:56)
	at com.google.cloud.spanner.GceTestEnvConfig$GrpcErrorInjector$1$1.onClose(GceTestEnvConfig.java:119)
	at io.grpc.internal.ClientCallImpl$ClientStreamListenerImpl.close(ClientCallImpl.java:481)
	at io.grpc.internal.ClientCallImpl$ClientStreamListenerImpl.access$600(ClientCallImpl.java:398)
	at io.grpc.internal.ClientCallImpl$ClientStreamListenerImpl$1StreamClosed.runInContext(ClientCallImpl.java:513)
	at io.grpc.internal.ContextRunnable.run(ContextRunnable.java:52)
	at io.grpc.internal.SerializingExecutor$TaskRunner.run(SerializingExecutor.java:154)
	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
	at java.lang.Thread.run(Thread.java:745)

Activity

  1. garrettjonesgoogle
    added
    api: spannerIssues related to the Spanner API.
    Status: Release Blocking
    on Mar 6, 2017
  2. garrettjonesgoogle
    assigned
    vkedia
    on Mar 6, 2017
  3. tomayles commented on Mar 7, 2017

    @tomayles
    tomayles
    on Mar 7, 2017
    More actions

    It looks like there are multiple concurrent runs using the same instance, and they are tripping over each other. Could that be the case?

    If so, we either need to update the test code to make database names unique to a run, or update the test runner to use separate instances.

  4. garrettjonesgoogle commented on Mar 7, 2017

    @garrettjonesgoogle
    garrettjonesgoogle
    on Mar 7, 2017
    ContributorAuthor
    More actions

    The test code has randomization built in so that the database names are unique. It might be possible that there is at least one test where the randomization isn't working, or it might be possible that there is another type of entity that needs randomization.

  5. tomayles commented on Mar 7, 2017

    @tomayles
    tomayles
    on Mar 7, 2017
    More actions

    OK. If you look in the activity log for the project that runs these tests, you should be able to see what user/process deleted the database, which could be helpful for debugging.

  6. vkedia commented on Mar 9, 2017

    @vkedia
    vkedia
    on Mar 9, 2017
    More actions

    This was fixed by #1711

  7. vkedia
    closed this as completedon Mar 9, 2017
  8. mgoddard-pivotal commented on Jul 12, 2017

    @mgoddard-pivotal
    mgoddard-pivotal
    on Jul 12, 2017
    More actions

    I'm seeing a similar issue in that, if I delete a DB, then recreate it using the same name, operations on it fail with "io.grpc.StatusRuntimeException: NOT_FOUND: Database has been deleted". This is in a web app, and I'd been assuming that the single instance of SpannerOptions could be reused, but it appears that, each time the database is dropped, a new instance is required; e.g.

    this.spannerOptions = SpannerOptions.newBuilder().build();
    

    Is this expected?

  9. vkedia commented on Jul 12, 2017

    @vkedia
    vkedia
    on Jul 12, 2017
    More actions

    Yes a new instance of SpannerOptions would need to be created. This is because the client internally maintains a session pool and that session pool is keyed against the database name. So if you give it the same database name, it will try to use the existing pool keyed against that name. But all the sessions in that pool are now invalid since the database got deleted.

  10. mgoddard-pivotal commented on Jul 12, 2017

    @mgoddard-pivotal
    mgoddard-pivotal
    on Jul 12, 2017
    More actions

    Ok. Thanks for clarifying that for me, and so quickly!

  11. meltsufin
    added a commit that references this issue on Dec 22, 2025

    deps: update dependency com.google.cloud:sdk-platform-java-config to …

    1f7da17
  12. chingor13
    added a commit that references this issue on Jan 22, 2026

    chore(main): release 2.25.2 (#1702)

    1beb7a1
  13. chingor13
    added a commit that references this issue on Feb 24, 2026

    feat: next release from main branch is 1.34.0 (#1702)

    4507cf9
  14. suztomo
    added a commit that references this issue on Mar 11, 2026

    deps: update dependency com.google.cloud:sdk-platform-java-config to …

    7b61c0e
  15. chingor13
    added a commit that references this issue on Mar 12, 2026

    feat: next release from main branch is 1.34.0 (#1702)

    6e5dda0
  16. suztomo
    added a commit that references this issue on Mar 23, 2026

    deps: update dependency com.google.cloud:google-cloud-spanner-bom to …

    f3dce32
  17. benjaminp
    added 2 commits that reference this issue on Jul 13, 2026

    deps: upgrade maven-enforcer-plugin to 3.3.0, remove duplicate entry …

    e7c33e8

    chore(main): release 2.20.4 (googleapis#1701)

    801fc60
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

  • @vkedia
    vkedia

Labels

api: spannerIssues related to the Spanner API.

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

    You are visitor 01402775 — GeezerVison does not store the pages you look up.
    Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.