You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@kudu.apache.org by "ASF subversion and git services (Jira)" <ji...@apache.org> on 2021/09/21 23:11:00 UTC

[jira] [Commented] (KUDU-75) Allow RPC proxies to take HostPort and do DNS resolution inline with calls

    [ https://issues.apache.org/jira/browse/KUDU-75?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17418348#comment-17418348 ] 

ASF subversion and git services commented on KUDU-75:
-----------------------------------------------------

Commit 41ebabf2eb618b33fd30ad1821ccbda9d6390010 in kudu's branch refs/heads/master from Andrew Wong
[ https://gitbox.apache.org/repos/asf?p=kudu.git;h=41ebabf ]

[rpc] KUDU-75: refresh DNS entries if proxies hit a network error

This patch aims to tackle the following issues that revolve around
changes in addresses at runtime.
- KUDU-1885: master long-lived tserver proxies need to be re-resolved in
  case nodes are assigned different addresses; today we just retry at
  the same location forever.
- KUDU-1620: tablet consensus long-lived proxies need to be re-resolved
  on failure.
- C++ clients' usages of RemoteTabletServer also have long-lived proxies
  and are likely to run into similar problems if tservers are restarted
  and assigned new physical addresses.

It addresses this by plumbing a DnsResolver into the rpc::Proxy class,
and chaining the asynchronous callback to an asynchronous refresh of the
address with the newly introduced refreshing capabilities of the
DnsResolver.

The new style of proxy isn't currently used, but a test is added
exercising the new functionality.

Change-Id: I777d169bd3a461294e5721f05071b726ced70f7e
Reviewed-on: http://gerrit.cloudera.org:8080/17839
Tested-by: Kudu Jenkins
Reviewed-by: Alexey Serbin <as...@cloudera.com>


> Allow RPC proxies to take HostPort and do DNS resolution inline with calls
> --------------------------------------------------------------------------
>
>                 Key: KUDU-75
>                 URL: https://issues.apache.org/jira/browse/KUDU-75
>             Project: Kudu
>          Issue Type: Improvement
>          Components: rpc
>    Affects Versions: M4
>            Reporter: Todd Lipcon
>            Priority: Major
>
> A lot of RPC calls will be done against host/ports rather than ip/ports. We should make the Proxy itself do the resolution inline in the async path (and perhaps have some method to refresh DNS)



--
This message was sent by Atlassian Jira
(v8.3.4#803005)