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 "Steve Loughran (Jira)" <ji...@apache.org> on 2022/01/04 18:27:00 UTC

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

Steve Loughran created HADOOP-18064:
---------------------------------------

             Summary: 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


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-dev-unsubscribe@hadoop.apache.org
For additional commands, e-mail: common-dev-help@hadoop.apache.org