-
Notifications
You must be signed in to change notification settings - Fork 3.3k
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
HBASE-23313 [hbck2] setRegionState should update Master in-memory sta… #864
Changes from 3 commits
e3fc279
303e61b
8127ba2
e540f14
47b34bc
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -517,6 +517,10 @@ message GetTableStateResponse { | |
required TableState table_state = 1; | ||
} | ||
|
||
message GetRegionStateResponse { | ||
required RegionState region_state = 1; | ||
} | ||
|
||
|
||
message GetClusterStatusRequest { | ||
repeated Option options = 1; | ||
|
@@ -1090,6 +1094,11 @@ message SetTableStateInMetaRequest { | |
required TableState table_state = 2; | ||
} | ||
|
||
message SetRegionStateInMetaRequest { | ||
required RegionInfo region_info = 1; | ||
required RegionState region_state = 2; | ||
} | ||
|
||
/** Like Admin's AssignRegionRequest except it can | ||
* take one or more Regions at a time. | ||
*/ | ||
|
@@ -1152,6 +1161,10 @@ service HbckService { | |
rpc SetTableStateInMeta(SetTableStateInMetaRequest) | ||
returns(GetTableStateResponse); | ||
|
||
/** Update state of the table in meta only*/ | ||
rpc SetRegionStateInMeta(SetRegionStateInMetaRequest) | ||
returns(GetRegionStateResponse); | ||
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. I see this pattern setting table state where there we reused a GetTableStateResponse as return from SetTableState method. Usually the reponse has same prefix as request -- i.e. the name of the method. I suppose this is ok. Maybe one day we'll have a method that just queries the method state and when that is added, we'll need this GetRegionStateResponse again. Just noting that this is breaking the general pattern. 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. Ah, yeah, I actually just used |
||
|
||
/** | ||
* Assign regions. | ||
* Like Admin's assign but works even if the | ||
|
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.
This is odd... That we didn't have this already?