-
Notifications
You must be signed in to change notification settings - Fork 159
return an error if the volume ID already in use #303
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
return an error if the volume ID already in use #303
Conversation
Hi @hantaowang. Thanks for your PR. I'm waiting for a kubernetes-sigs or kubernetes member to verify that this patch is reasonable to test. If it is, they should reply with Once the patch is verified, the new status will be reflected by the I understand the commands that are listed here. Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
/ok-to-test |
/assign @davidz627 |
I like this approach. The only enhancement I can think of is hung/long operation detection. We may want to track operation start time, and log a message/metric if some operation is taking too long. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the change will. I like this approach, just some small comments
@hantaowang can you create an |
|
I think specifically an issue for hung/long operation detection |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
mostly LGTM. Just some naming changes and one possible goroutine go testing quirk
pkg/gce-pd-csi-driver/node_test.go
Outdated
go runRequestInBackground(vol2PublishTargetCReq) | ||
|
||
// Check that vol2PublishTargetCReq is able to run | ||
<-opStarted |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
in the case that vol2PublishTargetCReq
is actually unable to run and fails for whatever reason won't this block forever?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I changed it so that failures should not block anymore.
pkg/gce-pd-csi-driver/node_test.go
Outdated
<-opStarted | ||
|
||
// Allow both operations to complete | ||
okToTest <- struct{}{} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
i see now this is more like runMountToComplete
or continueMountOp
would renaming it be appropriate?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
See the new names if they are better.
6b58903
to
1b6dfb8
Compare
70065c4
to
97d3465
Compare
/assign @jingxu97 |
/test pull-gcp-compute-persistent-disk-csi-driver-sanity |
97d3465
to
3540af4
Compare
/lgtm |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: davidz627, hantaowang The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
/kind feature |
An alternate approach to #302, but just returns an error if it finds that another operation with that volume ID already exists.