-
Notifications
You must be signed in to change notification settings - Fork 10
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
chore: add an example for the timeouts of spdk bdev_nvme_attach_controller #172
Conversation
…oller Longhorn 9874 Signed-off-by: Derek Su <[email protected]>
WalkthroughThe pull request introduces modifications to the Changes
Assessment against linked issues
Possibly related PRs
Suggested reviewers
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
|
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #172 +/- ##
==========================================
- Coverage 22.95% 22.89% -0.07%
==========================================
Files 34 34
Lines 4813 4813
==========================================
- Hits 1105 1102 -3
- Misses 3535 3537 +2
- Partials 173 174 +1
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
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.
Actionable comments posted: 0
🧹 Outside diff range and nitpick comments (1)
pkg/types/types.go (1)
29-42
: Fix typo in reconnection delay documentationThe documentation provides excellent clarity on the timeout sequence. However, there's a typo in step 6:
- 2Reconnect_Delay_Sec seconds. + DefaultReconnectDelaySec seconds.The detailed documentation of the timeout sequence is valuable, especially for understanding the controller loss and reconnection behavior related to the instance manager deletion issue.
📜 Review details
Configuration used: .coderabbit.yaml
Review profile: CHILL
📒 Files selected for processing (1)
pkg/types/types.go
(1 hunks)
🔇 Additional comments (2)
pkg/types/types.go (2)
25-26
: Document the purpose of ExecuteTimeout constant
The newly added ExecuteTimeout
constant lacks documentation explaining its purpose and relationship to other timeout constants. Given its 60-second duration, which is longer than other timeouts, it's important to understand:
- When and where this timeout is used
- How it relates to the instance manager deletion scenario
- Why 60 seconds was chosen as the value
50-53
: Verify impact of reduced transport ACK timeout
The change reduces the transport ACK timeout from ~16.384s (2^14 ms) to ~1.024s (2^10 ms). While faster error detection is generally beneficial, please verify:
- Whether this reduction could affect the stability of NVMe connections during instance manager operations
- If this change has been tested with various network conditions
- How this interacts with
DefaultCtrlrLossTimeoutSec
(15s) andDefaultFastIOFailTimeoutSec
(10s)
Consider documenting the relationship between these different timeouts in a diagram or table, showing how they interact during various failure scenarios.
@DamiaSan Can you help review it? Thank you. |
Which issue(s) this PR fixes:
Issue longhorn/longhorn#9874
What this PR does / why we need it:
Special notes for your reviewer:
Additional documentation or context