-
Notifications
You must be signed in to change notification settings - Fork 407
pkg/cli/rsync/fsnotification: fix dropped error #1214
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
Conversation
Hi @alrs. Thanks for your PR. I'm waiting for a openshift 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. |
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: alrs The full list of commands accepted by this bot can be found here.
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
@@ -26,6 +26,9 @@ func AddRecursiveWatch(watcher *fsnotify.Watcher, path string) error { | |||
} | |||
|
|||
folders, err := getSubFolders(path) | |||
if err != nil { |
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.
This changes the functionality in case only a partial list of paths gets returned. Not sure if that was the intention or whether the check was forgotten.
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.
Functionality introduced in openshift/origin#8268
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.
AFAICS, @ingvagabund is right, this function is designed to work in cases when partial list is returned. Instead changing the functionality by immediate returning error, I'd suggest add a warning message if there is any error with high verbosity level?;
klog.V(5).Infof("error occured while getting sub folders %v", err)
/ok-to-test |
/assign ardaguclu @ardaguclu would you please take a look whether handling the error changes the original intent of the functionality? To decide whether we should keep the code as it is (bug as a feature) or fix it. |
@alrs: The following tests failed, say
Full PR test history. Your PR dashboard. 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. I understand the commands that are listed here. |
Issues go stale after 90d of inactivity. Mark the issue as fresh by commenting If this issue is safe to close now please do so with /lifecycle stale |
Stale issues rot after 30d of inactivity. Mark the issue as fresh by commenting If this issue is safe to close now please do so with /lifecycle rotten |
Rotten issues close after 30d of inactivity. Reopen the issue by commenting /close |
@openshift-bot: Closed this PR. In response to this:
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. |
This fixes a dropped
err
variable inpkg/cli/rsync/fsnotification
.