-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Open
Labels
priority: p2Moderately-important priority. Fix may not be included in next release.Moderately-important priority. Fix may not be included in next release.samplesIssues that are directly related to samples.Issues that are directly related to samples.triage meI really want to be triaged.I really want to be triaged.type: bugError or flaw in code with unintended results or allowing sub-optimal usage patterns.Error or flaw in code with unintended results or allowing sub-optimal usage patterns.
Description
In which file did you encounter the issue?
https://github.com/googleapis/google-cloud-go/blob/main/tpu/apiv1/auxiliary.go#L101
Did you change the file? If so, how?
I am trying to wait result from operation of DeleteNode() in PR
Describe the issue
Delete operation return the wrong type. Expected type to response is var resp tpupb.Node
, however DeleteNodeOperation.lro.proto.Result.Operation_Response.Response.TypeUrl
has value type.googleapis.com/google.protobuf.Empty
. Therefor code the following code:
op, err := client.DeleteNode(ctx, req)
if err != nil {
return err
}
node, err := op.Wait(ctx) // raises here
if err != nil {
return err
}
Causes an error:
proto: mismatched message type: got "google.cloud.tpu.v1.Node", want "google.protobuf.Empty
Metadata
Metadata
Assignees
Labels
priority: p2Moderately-important priority. Fix may not be included in next release.Moderately-important priority. Fix may not be included in next release.samplesIssues that are directly related to samples.Issues that are directly related to samples.triage meI really want to be triaged.I really want to be triaged.type: bugError or flaw in code with unintended results or allowing sub-optimal usage patterns.Error or flaw in code with unintended results or allowing sub-optimal usage patterns.