Skip to content
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: add sp exit status check when craete gvg #433

Merged
merged 2 commits into from
Aug 23, 2023

Conversation

fynnss
Copy link
Contributor

@fynnss fynnss commented Aug 21, 2023

Description

Add sp exit status check when craete gvg

Rationale

Add sp exit status check when craete gvg

Example

NA

Changes

Notable changes:

  • NA

@fynnss fynnss changed the title chore: Add sp exit status check when craete gvg fix: add sp exit status check when craete gvg Aug 21, 2023
@fynnss fynnss requested a review from will-2012 August 21, 2023 05:18
@@ -56,6 +56,10 @@ func (k msgServer) CreateGlobalVirtualGroup(goCtx context.Context, req *types.Ms
return nil, sptypes.ErrStorageProviderNotFound.Wrapf("The address must be operator address of sp.")
}

if !sp.IsInService() {
Copy link
Collaborator

Choose a reason for hiding this comment

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

should also allow Maintenance SP otherwise it is not able to conduct self test if no GVG created yet?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Fixed. Does sp in maintenance can send swapout tx?

Copy link
Collaborator

Choose a reason for hiding this comment

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

it is not allowed.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

yes, make sense. Please review this pr again. thx.

@fynnss fynnss added this pull request to the merge queue Aug 23, 2023
Merged via the queue into develop with commit 02e9014 Aug 23, 2023
7 checks passed
fynnss added a commit that referenced this pull request Aug 24, 2023
* add sp exit status check when create gvg and swapout

* allow sp in maintenance can create gvg
KeefeL pushed a commit that referenced this pull request Aug 24, 2023
* fix: add sp exit status check when craete gvg (#433)

* add sp exit status check when create gvg and swapout

* allow sp in maintenance can create gvg

* check secondary sp in gvg
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