googleapis / nodejs-spanner

Node.js client for Google Cloud Spanner: the world’s first fully managed relational database service to offer both strong consistency and horizontal scalability.
https://cloud.google.com/spanner/
Apache License 2.0
136 stars 102 forks source link

Spanner: should restore database from a backup failed #1867

Closed flaky-bot[bot] closed 1 year ago

flaky-bot[bot] commented 1 year ago

Note: #1843 was also for this test, but it was closed more than 10 days ago. So, I didn't mark it flaky.


commit: fab9701f66e4320b3024801a36d7f9496113b78f buildURL: Build Status, Sponge status: failed

Test output
Command failed: node backups.js restoreBackup test-instance-1686997118 test-database-1686997118-r test-backup-1686997118 long-door-651
backups.js restoreBackup    

Restores a Cloud Spanner database from a backup.

Options:
  --version  Show version number                                                                               [boolean]
  --help     Show help                                                                                         [boolean]

Error: 6 ALREADY_EXISTS: Database already exists: projects/long-door-651/instances/test-instance-1686997118/databases/test-database-1686997118-r
    at callErrorFromStatus (/workspace/node_modules/@grpc/grpc-js/build/src/call.js:31:19)
    at Object.onReceiveStatus (/workspace/node_modules/@grpc/grpc-js/build/src/client.js:192:76)
    at /workspace/node_modules/@grpc/grpc-js/build/src/call-interface.js:78:35
    at Object.onReceiveStatus (/workspace/node_modules/grpc-gcp/build/src/index.js:73:29)
    at InterceptingListenerImpl.onReceiveStatus (/workspace/node_modules/@grpc/grpc-js/build/src/call-interface.js:73:23)
    at Object.onReceiveStatus (/workspace/node_modules/@grpc/grpc-js/build/src/client-interceptors.js:360:141)
    at Object.onReceiveStatus (/workspace/node_modules/@grpc/grpc-js/build/src/client-interceptors.js:323:181)
    at /workspace/node_modules/@grpc/grpc-js/build/src/resolving-call.js:94:78
    at processTicksAndRejections (internal/process/task_queues.js:79:11)
for call at
 {
  code: 6,
  details: 'Database already exists: projects/long-door-651/instances/test-instance-1686997118/databases/test-database-1686997118-r',
  metadata: Metadata {
    internalRepr: Map {
      'endpoint-load-metrics-bin' => [Array],
      'grpc-server-stats-bin' => [Array],
      'google.rpc.resourceinfo-bin' => [Array],
      'grpc-status-details-bin' => [Array]
    },
    options: {}
  }
}

Error: Command failed: node backups.js restoreBackup test-instance-1686997118 test-database-1686997118-r test-backup-1686997118 long-door-651
backups.js restoreBackup    

Restores a Cloud Spanner database from a backup.

Options:
  --version  Show version number                                                                               [boolean]
  --help     Show help                                                                                         [boolean]

Error: 6 ALREADY_EXISTS: Database already exists: projects/long-door-651/instances/test-instance-1686997118/databases/test-database-1686997118-r
    at callErrorFromStatus (/workspace/node_modules/@grpc/grpc-js/build/src/call.js:31:19)
    at Object.onReceiveStatus (/workspace/node_modules/@grpc/grpc-js/build/src/client.js:192:76)
    at /workspace/node_modules/@grpc/grpc-js/build/src/call-interface.js:78:35
    at Object.onReceiveStatus (/workspace/node_modules/grpc-gcp/build/src/index.js:73:29)
    at InterceptingListenerImpl.onReceiveStatus (/workspace/node_modules/@grpc/grpc-js/build/src/call-interface.js:73:23)
    at Object.onReceiveStatus (/workspace/node_modules/@grpc/grpc-js/build/src/client-interceptors.js:360:141)
    at Object.onReceiveStatus (/workspace/node_modules/@grpc/grpc-js/build/src/client-interceptors.js:323:181)
    at /workspace/node_modules/@grpc/grpc-js/build/src/resolving-call.js:94:78
    at processTicksAndRejections (internal/process/task_queues.js:79:11)
for call at
 {
  code: 6,
  details: 'Database already exists: projects/long-door-651/instances/test-instance-1686997118/databases/test-database-1686997118-r',
  metadata: Metadata {
    internalRepr: Map {
      'endpoint-load-metrics-bin' => [Array],
      'grpc-server-stats-bin' => [Array],
      'google.rpc.resourceinfo-bin' => [Array],
      'grpc-status-details-bin' => [Array]
    },
    options: {}
  }
}

    at checkExecSyncError (child_process.js:635:11)
    at Object.execSync (child_process.js:671:15)
    at execSync (system-test/spanner.test.js:24:28)
    at Context. (system-test/spanner.test.js:1263:20)
flaky-bot[bot] commented 1 year ago

Looks like this issue is flaky. :worried:

I'm going to leave this open and stop commenting.

A human should fix and close this.


When run at the same commit (fab9701f66e4320b3024801a36d7f9496113b78f), this test passed in one build (Build Status, Sponge) and failed in another build (Build Status, Sponge).