-
Notifications
You must be signed in to change notification settings - Fork 589
HDDS-4191 Add failover proxy for SCM container location. #1514
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
Codecov Report
@@ Coverage Diff @@
## HDDS-2823 #1514 +/- ##
===============================================
- Coverage 73.76% 73.74% -0.03%
- Complexity 10466 10489 +23
===============================================
Files 1002 1003 +1
Lines 51756 51857 +101
Branches 5008 5019 +11
===============================================
+ Hits 38180 38241 +61
- Misses 11170 11205 +35
- Partials 2406 2411 +5 Continue to review full report at Codecov.
|
...rc/main/java/org/apache/hadoop/hdds/scm/proxy/SCMContainerLocationFailoverProxyProvider.java
Outdated
Show resolved
Hide resolved
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.
Can we move line 82 into loadConfigs()?
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.
Wanted to keep it as final variable so that value is only set in constructor. What do you think?
31ce4f6 to
1e4d4f9
Compare
1e4d4f9 to
4666892
Compare
|
Is this change compatible with the hadoop2.x client? With OM we created OMTransport with two implementation:
I don't have the full context, but we may need a similar method here, too. |
4666892 to
0a77b32
Compare
@elek Hey Marton. I think the failover proxy here is a little different from OM's. Here we are retrying with IP addresses specified in SCM HA configurations to see who should be the current leader SCM to handle requests. It doesn't seem to involve hadoop version. |
|
Thanks for the answer @timmylicheng As far as I remember the But thinking it again it shouldn't be a problem at all. I assume the client will use only OM calls as before, and we can use any hadoop3.x classes on server side. So my question doesn't have any sense ;-) |
0a77b32 to
1c65bfd
Compare
|
LGTM + 1. |
What changes were proposed in this pull request?
Add failover proxy for SCM container client
(Please fill in changes proposed in this fix)
What is the link to the Apache JIRA
https://issues.apache.org/jira/browse/HDDS-4191
(Please create an issue in ASF JIRA before opening a pull request,
and you need to set the title of the pull request which starts with
the corresponding JIRA issue number. (e.g. HDDS-XXXX. Fix a typo in YYY.)
Please replace this section with the link to the Apache JIRA)
How was this patch tested?
UT
(Please explain how this patch was tested. Ex: unit tests, manual tests)
(If this patch involves UI changes, please attach a screen-shot; otherwise, remove this)