Sadanand Shenoy created HDDS-8041:
-------------------------------------
Summary: Ozone FS Client should fail to connect if wrong
hostname/serviceID in URI.
Key: HDDS-8041
URL: https://issues.apache.org/jira/browse/HDDS-8041
Project: Apache Ozone
Issue Type: Bug
Reporter: Sadanand Shenoy
Assignee: Sadanand Shenoy
On providing an incorrect hostname/service ID in ofs URI , the filesystem
client instead of failing , retries till exhaustion. Also the default retry
config for client retries is too high currently (500). Considering linear
retry policy , it would take the client ((1 + 500) * 500 * 2)/2 = 250500
seconds ~= 70 hours to stop retrying.
The code checks if the authority in the URI is one of the serviceID's defined
in the client config and if not it considers the authority as hostname. Any
wrong/incorrect name is considered as hostname and almost endless retries are
triggered.
{code:java}
if (OmUtils.isOmHAServiceId(conf, omHost)) {
this.ozoneClient =
OzoneClientFactory.getRpcClient(omHost, conf);
} else if (StringUtils.isNotEmpty(omHost) && omPort != -1) {
this.ozoneClient =
OzoneClientFactory.getRpcClient(omHost, omPort, conf);
} else {
this.ozoneClient =
OzoneClientFactory.getRpcClient(conf);
} {code}
--
This message was sent by Atlassian Jira
(v8.20.10#820010)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]