-
Notifications
You must be signed in to change notification settings - Fork 3.4k
HBASE-18095 branch-1 umbrella PR #2280
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
Conversation
36ea9e2 to
10eaec5
Compare
|
🎊 +1 overall
This message was automatically generated. |
|
🎊 +1 overall
This message was automatically generated. |
|
💔 -1 overall
This message was automatically generated. |
f81932c to
a70e088
Compare
|
💔 -1 overall
This message was automatically generated. |
a70e088 to
6d71600
Compare
|
Back ported until the commit that implements all the server side RPCs needed by the registry. The build is clean so far. Next step is to back port the registry changes. I might have to reimplement it given all the client side incompatibilities. |
|
💔 -1 overall
This message was automatically generated. |
|
💔 -1 overall
This message was automatically generated. |
cd629de to
612689a
Compare
|
💔 -1 overall
This message was automatically generated. |
5955740 to
47e361b
Compare
|
💔 -1 overall
This message was automatically generated. |
47e361b to
428e38e
Compare
|
💔 -1 overall
This message was automatically generated. |
428e38e to
4d9427e
Compare
|
💔 -1 overall
This message was automatically generated. |
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.
Test run is clean (except for check-style import order issues). Last change decoupled the TableState dependency from Zookeeper. That was critical to decoupling ZK from client. This was already done in master/branch-2 by the time HBASE-18095 was implemented. Had to to cherry-pick the relevant fix to branch-1. There were many conflicts but overall tests seem to be stable. Will now switch to implementing master registry fixes.
4d9427e to
17bb951
Compare
|
💔 -1 overall
This message was automatically generated. |
17bb951 to
98679e7
Compare
|
💔 -1 overall
This message was automatically generated. |
98679e7 to
1f6ec87
Compare
|
💔 -1 overall
This message was automatically generated. |
1f6ec87 to
37ea4c6
Compare
|
💔 -1 overall
This message was automatically generated. |
d87d716 to
d330886
Compare
|
💔 -1 overall
This message was automatically generated. |
|
💔 -1 overall
This message was automatically generated. |
d330886 to
1501a93
Compare
|
💔 -1 overall
This message was automatically generated. |
1501a93 to
583e127
Compare
|
💔 -1 overall
This message was automatically generated. |
583e127 to
55cf7ea
Compare
|
💔 -1 overall
This message was automatically generated. |
apurtell
left a comment
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.
Compact checker of this change compared to branch-1 HEAD flags only acceptable changes (method additions) and one method removed from ZkCoordinatedStateManager, but this is LimitedPrivate(CONFIG) so that's fine.
hbase-client/src/main/java/org/apache/hadoop/hbase/client/ConnectionManager.java
Outdated
Show resolved
Hide resolved
hbase-client/src/main/java/org/apache/hadoop/hbase/client/MasterRegistry.java
Outdated
Show resolved
Hide resolved
hbase-client/src/main/java/org/apache/hadoop/hbase/client/MetricsConnection.java
Show resolved
Hide resolved
hbase-client/src/main/java/org/apache/hadoop/hbase/client/MetricsConnection.java
Show resolved
Hide resolved
bharathv
left a comment
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.
Thanks for the review. Not pushing a new patch version yet, will do once I hear back on the comments.
hbase-client/src/main/java/org/apache/hadoop/hbase/client/ConnectionManager.java
Outdated
Show resolved
Hide resolved
hbase-client/src/main/java/org/apache/hadoop/hbase/client/MetricsConnection.java
Show resolved
Hide resolved
hbase-client/src/main/java/org/apache/hadoop/hbase/client/MetricsConnection.java
Show resolved
Hide resolved
hbase-client/src/main/java/org/apache/hadoop/hbase/client/MasterRegistry.java
Outdated
Show resolved
Hide resolved
8f4af6e to
d907127
Compare
|
💔 -1 overall
This message was automatically generated. |
|
💔 -1 overall
This message was automatically generated. |
This patch implements a simple cache that all the masters can lookup to serve cluster ID to clients. Active HMaster is still responsible for creating it but all the masters will read it from fs to serve clients. RPCs exposing it will come in a separate patch as a part of HBASE-18095. Signed-off-by: Andrew Purtell <[email protected]> Signed-off-by: Wellington Chevreuil <[email protected]> Signed-off-by: Guangxu Cheng <[email protected]> (cherry picked from commit c2e01f2) (cherry picked from commit 9ab6529)
…ache#812) Currently we just track whether an active master exists. It helps to also track the address of the active master in all the masters to help serve the client RPC requests to know which master is active. Signed-off-by: Nick Dimiduk <[email protected]> Signed-off-by: Andrew Purtell <[email protected]> (cherry picked from commit efebb84) (cherry picked from commit 7429491)
* HBASE-23281: Track meta region changes on masters This patch adds a simple cache that tracks the meta region replica locations. It keeps an eye on the region movements so that the cached locations are not stale. This information is used for servicing client RPCs for connections that use master based registry (HBASE-18095). The RPC end points will be added in a separate patch. Signed-off-by: Nick Dimiduk <[email protected]> (cherry picked from commit 8571d38) (cherry picked from commit 89581d9)
* HBASE-23304: RPCs needed for client meta information lookup This patch implements the RPCs needed for the meta information lookup during connection init. New tests added to cover the RPC code paths. HBASE-23305 builds on this to implement the client side logic. Fixed a bunch of checkstyle nits around the places the patch touches. Signed-off-by: Andrew Purtell <[email protected]> (cherry picked from commit 4f8fbba) (cherry picked from commit 488460e)
…Andrey Stepachev) (cherry picked from commit 3cc5d19)
This patch adds the ability to discover newly added masters dynamically on the master registry side. The trigger for the re-fetch is either periodic (5 mins) or any registry RPC failure. Master server information is cached in masters to avoid repeated ZK lookups. Updates the client side connection metrics to maintain a counter per RPC type so that clients have visibility into counts grouped by RPC method name. I didn't add the method to ZK registry interface since there is a design discussion going on in splittable meta doc. We can add it later if needed. Signed-off-by: Nick Dimiduk <[email protected]> Signed-off-by: Viraj Jasani <[email protected]> Signed-off-by: Duo Zhang <[email protected]> (cherry picked from commit 275a38e) (cherry picked from commit bb9121d)
d907127 to
de553a4
Compare
|
Rebased on the latest branch-1 tip. Will merge after the test run later today. |
|
💔 -1 overall
This message was automatically generated. |
Will keep piling on commits on to this PR in the coming days as and when I find time.