You are viewing a plain text version of this content. The canonical link for it is here.
Posted to common-dev@hadoop.apache.org by "dzcxzl (Jira)" <ji...@apache.org> on 2023/04/10 13:48:00 UTC
[jira] [Created] (HADOOP-18694) Client.Connection#updateAddress needs to ensure that address is resolved before updating
dzcxzl created HADOOP-18694:
-------------------------------
Summary: 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.3.5, 3.4.0
Reporter: dzcxzl
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: common-dev-unsubscribe@hadoop.apache.org
For additional commands, e-mail: common-dev-help@hadoop.apache.org