You are viewing a plain text version of this content. The canonical link for it is here.
Posted to common-issues@hadoop.apache.org by "Steve Loughran (Jira)" <ji...@apache.org> on 2022/01/04 19:32:00 UTC

[jira] [Commented] (HADOOP-18064) replace URL.toString() with URL.toURI().toString()

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

Steve Loughran commented on HADOOP-18064:
-----------------------------------------

The good news is I am in fact mistaken. toString() does not evaluates the host name; only hashCode(); I only need to look at uses of that

> replace URL.toString() with URL.toURI().toString()
> --------------------------------------------------
>
>                 Key: HADOOP-18064
>                 URL: https://issues.apache.org/jira/browse/HADOOP-18064
>             Project: Hadoop Common
>          Issue Type: Improvement
>          Components: common, fs/azure
>    Affects Versions: 3.3.1
>            Reporter: Steve Loughran
>            Priority: Trivial
>
> Some parts of the code, mostly logging and exception messages, call URL.toString().
> They should use URL.toURI().toString() to avoid network IO.
> This is straightforward to do in the explicit and implicit invocations in our code. It will not detect/fix the case where a URL instance is passed as an argument to logger methods. That will have to be out of scope



--
This message was sent by Atlassian Jira
(v8.20.1#820001)

---------------------------------------------------------------------
To unsubscribe, e-mail: common-issues-unsubscribe@hadoop.apache.org
For additional commands, e-mail: common-issues-help@hadoop.apache.org