You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@impala.apache.org by "Tim Armstrong (Jira)" <ji...@apache.org> on 2020/12/21 19:07:00 UTC

[jira] [Resolved] (IMPALA-4952) Differentiate between resolved and unresolved IP addresses

     [ https://issues.apache.org/jira/browse/IMPALA-4952?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Tim Armstrong resolved IMPALA-4952.
-----------------------------------
    Resolution: Won't Fix

Nice cleanup idea but we don't need to keep it open.

> Differentiate between resolved and unresolved IP addresses
> ----------------------------------------------------------
>
>                 Key: IMPALA-4952
>                 URL: https://issues.apache.org/jira/browse/IMPALA-4952
>             Project: IMPALA
>          Issue Type: Improvement
>          Components: Distributed Exec
>    Affects Versions: Impala 2.9.0
>            Reporter: Henry Robinson
>            Priority: Major
>              Labels: scheduler
>
> KRPC (IMPALA-2567) requires resolved IP addresses. Since RPCs happen frequently, and IP resolution can be expensive, it makes sense to retain resolved addresses where possible. 
> The scheduler already knows the resolved address for every backend. However, the logic is very complex, and there's not really a good way to know at compile time whether or not we're using a resolved address or not.
> We can address this by adding a new type - perhaps {{ResolvedAddress : public TNetworkAddress}}, and requiring that {{RpcMgr::GetProxy()}} etc take a {{ResolvedAddress}}. That way the compiler will complain if we don't prove to it that the address is resolved. We can make it hard to construct a {{ResolvedAddress}} without actually resolving some string into an IPV4 address.



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