-
Notifications
You must be signed in to change notification settings - Fork 614
HDDS-15639. Adjust Upgrade status command to call OM intead of SCM #10579
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
Merged
Merged
Changes from 6 commits
Commits
Show all changes
9 commits
Select commit
Hold shift + click to select a range
13a79f8
Initial changes
7c8d1ca
Add new command to the request processing
76240d5
Add more tests
c17f3bd
Add server version check
87c5298
Add deprecated labels to legacy query command protobuf
d225723
Fix pmd
f9cc6c0
Address review comments
b82a303
Remove test class
b9f1f2c
Fix tests
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -158,6 +158,7 @@ enum Type { | |
| DeleteObjectTagging = 142; | ||
| SubmitSnapshotDiff = 143; | ||
| StartFinalizeUpgrade = 144; | ||
| QueryUpgradeStatus = 145; | ||
| } | ||
|
|
||
| enum SafeMode { | ||
|
|
@@ -217,7 +218,7 @@ message OMRequest { | |
| optional ServiceListRequest serviceListRequest = 51; | ||
| optional DBUpdatesRequest dbUpdatesRequest = 53; | ||
| optional FinalizeUpgradeRequest finalizeUpgradeRequest = 54 [deprecated = true]; | ||
| optional FinalizeUpgradeProgressRequest finalizeUpgradeProgressRequest = 55; | ||
| optional FinalizeUpgradeProgressRequest finalizeUpgradeProgressRequest = 55 [deprecated = true]; | ||
| optional PrepareRequest prepareRequest = 56; | ||
| optional PrepareStatusRequest prepareStatusRequest = 57; | ||
| optional CancelPrepareRequest cancelPrepareRequest = 58; | ||
|
|
@@ -311,6 +312,7 @@ message OMRequest { | |
|
|
||
| optional SubmitSnapshotDiffRequest submitSnapshotDiffRequest = 144; | ||
| optional StartFinalizeUpgradeRequest startFinalizeUpgradeRequest = 145; | ||
| optional QueryUpgradeStatusRequest queryUpgradeStatusRequest = 146; | ||
| } | ||
|
|
||
| message OMResponse { | ||
|
|
@@ -361,7 +363,7 @@ message OMResponse { | |
| optional ServiceListResponse ServiceListResponse = 51; | ||
| optional DBUpdatesResponse dbUpdatesResponse = 52; | ||
| optional FinalizeUpgradeResponse finalizeUpgradeResponse = 54 [deprecated = true]; | ||
| optional FinalizeUpgradeProgressResponse finalizeUpgradeProgressResponse = 55; | ||
| optional FinalizeUpgradeProgressResponse finalizeUpgradeProgressResponse = 55 [deprecated = true]; | ||
| optional PrepareResponse prepareResponse = 56; | ||
| optional PrepareStatusResponse prepareStatusResponse = 57; | ||
| optional CancelPrepareResponse cancelPrepareResponse = 58; | ||
|
|
@@ -447,6 +449,7 @@ message OMResponse { | |
|
|
||
| optional SubmitSnapshotDiffResponse submitSnapshotDiffResponse = 143; | ||
| optional StartFinalizeUpgradeResponse startFinalizeUpgradeResponse = 144; | ||
| optional QueryUpgradeStatusResponse queryUpgradeStatusResponse = 145; | ||
| } | ||
|
|
||
| enum Status { | ||
|
|
@@ -1640,6 +1643,15 @@ message StartFinalizeUpgradeRequest { | |
| message StartFinalizeUpgradeResponse { | ||
| } | ||
|
|
||
| message QueryUpgradeStatusRequest { | ||
| } | ||
|
|
||
| message QueryUpgradeStatusResponse { | ||
| required bool omFinalized = 1; | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This and its SCM equivalent will need the software and apparent versions as well for two use cases:
|
||
| required hadoop.hdds.UpgradeStatus hddsStatus = 2; | ||
|
errose28 marked this conversation as resolved.
Outdated
|
||
| } | ||
|
|
||
| // deprecated, use QueryUpgradeStatusRequest/Response instead. Retained for wire compatibility. | ||
| message FinalizeUpgradeProgressRequest { | ||
| // Ignored by OM; retained for wire compatibility. | ||
| required string upgradeClientId = 1; | ||
|
|
||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.