venf2k / google-cloud-sdk

Automatically exported from code.google.com/p/google-cloud-sdk
0 stars 0 forks source link

Datastore Emulator does not support gRPC #719

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?

Write a node application using the gcloud-node api for datastore. Attempt to 
save a record in the datastore.

What is the expected output? What do you see instead?

The record should be saved but instead an error is raised with:

E0410 10:34:15.588441000 123145307131904 tcp_client_posix.c:173] failed to 
connect to 'ipv6:[::1]:8199': socket error: connection refused
E0410 10:34:15.647837000 123145307131904 parsing.c:472] Unknown frame type 50
E0410 10:34:15.651418000 123145306595328 tcp_client_posix.c:173] failed to 
connect to 'ipv6:[::1]:8199': socket error: connection refused
E0410 10:34:15.652531000 123145306595328 parsing.c:472] Unknown frame type 50

What is the output of 'gcloud info'?
Google Cloud SDK [100.0.0]

Platform: [Mac OS X, x86_64]
Python Version: [2.7.10 (default, Oct 23 2015, 19:19:21)  [GCC 4.2.1 Compatible 
Apple LLVM 7.0.0 (clang-700.0.59.5)]]
Python Location: [/usr/bin/python]
Site Packages: [Disabled]

Installation Root: [/usr/local/google-cloud-sdk]
Installed Components:
  core: [2016.03.04]
  app-engine-python: [1.9.33]
  core-nix: [2016.02.05]
  gcloud: []
  gsutil-nix: [4.15]
  beta: [2016.01.12]
  gsutil: [4.17]
  bq: [2.0.18]
  gcd-emulator: [v1beta3-1.0.0]
  bq-nix: [2.0.18]

Please provide any additional information below.

In the gcloud node release notes

"Additionally, we are now using gRPC to give a performance boost to your 
Datastore calls. As of now, the gcloud SDK does not have a gRPC emulator, 
meaning if you wish to use a localhost backend instead of the upstream API, you 
will have to use the gcd.sh tool directly."

https://github.com/GoogleCloudPlatform/gcloud-node/releases/tag/v0.30.0

It seems like gcloud api are tending toward gRPC but the gcloud emulator has 
not caught up yet.

Original issue reported on code.google.com by fajwil...@gmail.com on 10 Apr 2016 at 9:34

GoogleCodeExporter commented 8 years ago
Thanks for reporting this. This behavior is expected; I'll check with the 
emulators team to see if they have plans to support gRPC anytime soon. Note 
that in general (and especially while in beta), the emulators make no guarantee 
of full compatibility with production.

Original comment by z...@google.com on 11 Apr 2016 at 1:48

GoogleCodeExporter commented 8 years ago

Original comment by rdayal@google.com on 11 Apr 2016 at 2:11

GoogleCodeExporter commented 8 years ago
FYI: we published a gRPC version of the gcd.sh CLI at 
https://storage.googleapis.com/gcd/tools/gcd-grpc-1.0.0.zip

You can use that in the meantime.

Original comment by z...@google.com on 11 Apr 2016 at 5:42