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

bigtable: Client.Close() returns error with emulator as of v0.53.0 #1780

Closed
erock2112 opened this issue Feb 14, 2020 · 2 comments
Closed

bigtable: Client.Close() returns error with emulator as of v0.53.0 #1780

erock2112 opened this issue Feb 14, 2020 · 2 comments
Assignees
Labels
api: bigtable Issues related to the Bigtable API. priority: p1 Important issue which blocks shipping the next release. Will be fixed prior to next release. type: bug Error or flaw in code with unintended results or allowing sub-optimal usage patterns.

Comments

@erock2112
Copy link

Client

bigtable

Environment

Debian Linux

Code

package main

import (
	"context"
	"cloud.google.com/go/bigtable"
)

func main() {
	client, err := bigtable.NewClient(context.Background(), "test-project", "test-instance")
	if err != nil {
		panic(err)
	}
	if err := client.Close(); err != nil {
		panic(err)
	}
}

Expected behavior

No error

Actual behavior

panic: rpc error: code = Canceled desc = grpc: the client connection is closing (and 2 other errors)

goroutine 1 [running]:
main.main()
/path/to/repro.go:15 +0xd7
exit status 2

Additional context

The above program runs with no errors with these versions in go.mod:
cloud.google.com/go v0.52.0
cloud.google.com/go/bigtable v1.2.0
cloud.google.com/go/datastore v1.0.0
google.golang.org/grpc v1.27.0

It fails with these versions:
cloud.google.com/go v0.53.0
cloud.google.com/go/bigtable v1.3.0
cloud.google.com/go/datastore v1.1.0
google.golang.org/grpc v1.27.1

This is blocking our automated process which updates go.mod, since our tests use the BigTable emulator.

@erock2112 erock2112 added the triage me I really want to be triaged. label Feb 14, 2020
@tbpg tbpg added api: bigtable Issues related to the Bigtable API. priority: p1 Important issue which blocks shipping the next release. Will be fixed prior to next release. type: bug Error or flaw in code with unintended results or allowing sub-optimal usage patterns. and removed triage me I really want to be triaged. labels Feb 14, 2020
@broady broady assigned broady and unassigned tritone Feb 18, 2020
@broady
Copy link
Contributor

broady commented Feb 18, 2020

it'll be fixed on the next tag of google.golang.org/api/transport/grpc. should be this week sometime.

for now, you should be able to upgrade by using a pseudoversion

go get google.golang.org/api@v0.17.1-0.20200218232537-5561cbd8da1f

@broady
Copy link
Contributor

broady commented Feb 25, 2020

go get google.golang.org/api@latest

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
api: bigtable Issues related to the Bigtable API. priority: p1 Important issue which blocks shipping the next release. Will be fixed prior to next release. type: bug Error or flaw in code with unintended results or allowing sub-optimal usage patterns.
Projects
None yet
Development

No branches or pull requests

4 participants