Skip to content

feat: add SpdkKillInstance method and command and Increase BdevAioCreate timeout#232

Merged
derekbit merged 3 commits into
longhorn:mainfrom
derekbit:stop
Sep 15, 2025
Merged

feat: add SpdkKillInstance method and command and Increase BdevAioCreate timeout#232
derekbit merged 3 commits into
longhorn:mainfrom
derekbit:stop

Conversation

@derekbit
Copy link
Copy Markdown
Member

@derekbit derekbit commented Sep 13, 2025

Which issue(s) this PR fixes:

Issue longhorn/longhorn#11760

What this PR does / why we need it:

Special notes for your reviewer:

Additional documentation or context

@derekbit derekbit self-assigned this Sep 13, 2025
@codecov
Copy link
Copy Markdown

codecov Bot commented Sep 13, 2025

Codecov Report

❌ Patch coverage is 0% with 37 lines in your changes missing coverage. Please review.
✅ Project coverage is 0.00%. Comparing base (5d002bd) to head (f86f2fc).

Files with missing lines Patch % Lines
app/cmd/basic/instance.go 0.00% 25 Missing ⚠️
pkg/spdk/client/basic.go 0.00% 11 Missing ⚠️
pkg/jsonrpc/client.go 0.00% 1 Missing ⚠️
Additional details and impacted files
@@          Coverage Diff          @@
##            main    #232   +/-   ##
=====================================
  Coverage   0.00%   0.00%           
=====================================
  Files         37      38    +1     
  Lines       5842    5877   +35     
=====================================
- Misses      5842    5877   +35     
Flag Coverage Δ
unittests 0.00% <0.00%> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@derekbit derekbit force-pushed the stop branch 2 times, most recently from 151f754 to de16ea6 Compare September 15, 2025 03:03
@derekbit derekbit changed the title feat: add SpdkKillInstance method and command feat: add SpdkKillInstance method and command and Increase BdevAioCreate timeout Sep 15, 2025
@derekbit derekbit requested a review from Copilot September 15, 2025 03:05
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR adds a new SpdkKillInstance method and CLI command to send signals to SPDK applications, and increases the timeout for BdevAioCreate operations to handle longer-running operations.

  • Introduces SpdkKillInstance functionality for sending signals to SPDK instances
  • Updates BdevAioCreate to use a longer timeout for better reliability
  • Adds enhanced error logging with method and parameter details

Reviewed Changes

Copilot reviewed 5 out of 5 changed files in this pull request and generated 1 comment.

Show a summary per file
File Description
pkg/spdk/types/bdev.go Adds SpdkKillInstanceRequest struct for signal name parameter
pkg/spdk/client/basic.go Implements SpdkKillInstance method and updates BdevAioCreate timeout
pkg/jsonrpc/client.go Enhances error logging with method and parameter information
main.go Registers the new SpdkKillInstance CLI command
app/cmd/basic/instance.go Implements CLI command for killing SPDK instances

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

Comment thread pkg/spdk/client/basic.go
Comment thread main.go
Comment thread pkg/spdk/client/basic.go
Longhorn 11760

Signed-off-by: Derek Su <derek.su@suse.com>
Longhorn 11760

Signed-off-by: Derek Su <derek.su@suse.com>
disk bdev attachment  might need much time if blobstore recover is required.
Blobstore recover is called after a non-graceful shutdown of spdk_tgt.

Longhorn 11760

Signed-off-by: Derek Su <derek.su@suse.com>
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

Copilot reviewed 5 out of 5 changed files in this pull request and generated no new comments.


Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

@derekbit derekbit merged commit daa8a47 into longhorn:main Sep 15, 2025
5 of 6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants