Skip to content

(TPU) Type mismatch for DeleteNode operation #4422

@BigBlackWolf

Description

@BigBlackWolf

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

No one assigned

    Labels

    priority: p2Moderately-important priority. Fix may not be included in next release.samplesIssues that are directly related to samples.triage meI really want to be triaged.type: bugError or flaw in code with unintended results or allowing sub-optimal usage patterns.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions