-
Notifications
You must be signed in to change notification settings - Fork 153
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
fix: fix the false alarm while stopping syncing backup status #3586
Conversation
WalkthroughThis change updates the error handling in the Changes
Sequence Diagram(s)sequenceDiagram
participant BM as BackupMonitor.linerTimer
participant WC as wait.PollUntilContextCancel
participant L as Logger
BM->>WC: Call PollUntilContextCancel(context)
WC-->>BM: Return error (or nil)
alt Error is due to context cancellation
BM->>L: Log warning message
else Other error encountered
BM->>L: Log error message
end
Possibly Related PRs
Suggested Reviewers
📜 Recent review detailsConfiguration used: .coderabbit.yaml 📒 Files selected for processing (1)
🚧 Files skipped from review as they are similar to previous changes (1)
⏰ Context from checks skipped due to timeout of 90000ms (2)
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media? 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
Documentation and Community
|
Use warning-level messages for context canceled. Longhorn 10301 Signed-off-by: Derek Su <derek.su@suse.com>
5d5b188
to
d83ad9d
Compare
Which issue(s) this PR fixes:
Issue longhorn/longhorn#10301
What this PR does / why we need it:
Use warning-level messages for context cancellation.
Special notes for your reviewer:
Additional documentation or context