[
https://issues.apache.org/jira/browse/HADOOP-18694?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
dzcxzl resolved HADOOP-18694.
-----------------------------
Fix Version/s: 3.4.0
Resolution: Fixed
> Client.Connection#updateAddress needs to ensure that address is resolved
> before updating
> ----------------------------------------------------------------------------------------
>
> Key: HADOOP-18694
> URL: https://issues.apache.org/jira/browse/HADOOP-18694
> Project: Hadoop Common
> Issue Type: Improvement
> Components: common
> Affects Versions: 3.4.0, 3.3.5
> Reporter: dzcxzl
> Assignee: dzcxzl
> Priority: Major
> Labels: pull-request-available
> Fix For: 3.4.0
>
>
> When Client.Connection#setupConnection encounters an IOException, it will try
> to update the server address.
> ([HADOOP-18365|https://issues.apache.org/jira/browse/HADOOP-18365])
> When the address is re-parsed, it may be an unresolved address
> (UnknownHostException), which causes Client.Connection#setupConnection to
> fail to reconnect.
> {code:java}
> while (true) {
> try {
> if (server.isUnresolved()) { {code}
> Especially when DN is connected to NN, BPServiceActor#bpNamenode is only
> initialized once, which causes DN to never connect to NN before restarting.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]