google-cloud-cpp icon indicating copy to clipboard operation
google-cloud-cpp copied to clipboard

Spanner integration tests cannot connect to emulator

Open coryan opened this issue 2 years ago • 2 comments

The more interesting bit is this:

 UNAVAILABLE: Error in non-idempotent operation: failed to connect to all addresses; last error: UNKNOWN: ipv4:127.0.0.1:8787: Invalid argument error_info={reason=, domain=, metadata={gcloud-cpp.retry.function=CreateDatabase, gcloud-cpp.retry.reason=non-idempotent, gcloud-cpp.retry.original-message=failed to connect to all addresses; last error: UNKNOWN: ipv4:127.0.0.1:8787: Invalid argument}}
  • GCB: https://console.cloud.google.com/cloud-build/builds;region=us-east1/33844218-74b4-43b8-b4f1-2d9796c80d10;tab=detail?project=cloud-cpp-testing-resources
  • Raw: https://storage.googleapis.com/cloud-cpp-community-publiclogs/logs/google-cloud-cpp/main/bf2e28a70ea3b2c8f7d0f72071208f2a4d513dfd/fedora-37-bazel-coverage/log-33844218-74b4-43b8-b4f1-2d9796c80d10.txt

[ RUN      ] DatabaseAdminClientTest.DatabasePostgreSQLBasics
google/cloud/spanner/admin/integration_tests/database_admin_integration_test.cc:552: Failure
Value of: database
Expected: code is equal to INVALID_ARGUMENT and message has substring "Error parsing Spanner DDL statement"
  Actual: 136-byte object <20-63 00-58 1C-7F 00-00 00-00 00-00 00-00 00-00 00-00 00-00 00-00 00-00 00-00 00-00 00-00 00-00 00-00 00-00 00-00 00-00 00-00 00-00 00-00 00-00 00-00 00-00 00-00 00-00 00-00 00-00 00-00 00-00 ... 00-00 00-00 00-00 00-00 00-00 00-00 00-00 00-00 00-00 00-00 00-00 00-00 00-00 00-00 00-00 00-00 00-00 00-00 00-00 00-00 00-00 00-00 00-00 00-00 00-00 00-00 00-00 00-00 00-00 00-00 00-00 00-00>, whose status is UNAVAILABLE: Error in non-idempotent operation: failed to connect to all addresses; last error: UNKNOWN: ipv4:127.0.0.1:8787: Invalid argument error_info={reason=, domain=, metadata={gcloud-cpp.retry.function=CreateDatabase, gcloud-cpp.retry.reason=non-idempotent, gcloud-cpp.retry.original-message=failed to connect to all addresses; last error: UNKNOWN: ipv4:127.0.0.1:8787: Invalid argument}}, with a code that isn't equal to INVALID_ARGUMENT, and a message that has no substring "Error parsing Spanner DDL statement"

google/cloud/spanner/admin/integration_tests/database_admin_integration_test.cc:555: Skipped
emulator does not support PostgreSQL

coryan avatar Sep 10 '23 17:09 coryan

Given that there were previous, successful RPCs, my first guess would be that the emulator crashed.

devbww avatar Sep 10 '23 18:09 devbww

#12769 adds the emulator log to our log. Perhaps we'll learn something.

devbww avatar Feb 14 '24 19:02 devbww

Closing, no repeats in 90d.

scotthart avatar Aug 21 '24 19:08 scotthart