Skip to content

Commit 517ea9d

Browse files
authored
Merge pull request #953 from saikat-royc/fix-ad-backoff
Fix ControllerUnpublish backoff
2 parents b5003f2 + 020c493 commit 517ea9d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pkg/gce-pd-csi-driver/controller.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -542,11 +542,11 @@ func (gceCS *GCEControllerServer) ControllerUnpublishVolume(ctx context.Context,
542542

543543
// Node is marked so queue up the request
544544
gceCS.queue.AddRateLimited(&workItem{
545-
ctx: ctx,
545+
ctx: context.Background(),
546546
unpublishReq: req,
547547
})
548548

549-
return &csi.ControllerUnpublishVolumeResponse{}, nil
549+
return nil, status.Error(codes.Unavailable, "Request queued due to error condition on node")
550550
}
551551

552552
func (gceCS *GCEControllerServer) validateControllerUnpublishVolumeRequest(ctx context.Context, req *csi.ControllerUnpublishVolumeRequest) (string, *meta.Key, error) {

0 commit comments

Comments
 (0)