You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@oodt.apache.org by "Tom Barber (JIRA)" <ji...@apache.org> on 2015/10/10 09:08:05 UTC

[jira] [Commented] (OODT-887) Prevent DNS resolution on URL Lookup

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

Tom Barber commented on OODT-887:
---------------------------------

I've made a few commits on this:

https://git-wip-us.apache.org/repos/asf?p=oodt.git;a=commit;h=77cfebf7fd8d1f09f40d4894d0de22b70b8c220c
https://git-wip-us.apache.org/repos/asf?p=oodt.git;a=commit;h=1b8d1f701782ee16f76303f9aa6a8fffeee76ff1
https://git-wip-us.apache.org/repos/asf?p=oodt.git;a=commit;h=d653cb05d0a2c7ebd9f74c26b11b1b2bc45c4a33
https://git-wip-us.apache.org/repos/asf?p=oodt.git;a=commit;h=6683df7ea88a19640a76c17446b853bff3aa6b3f
https://git-wip-us.apache.org/repos/asf?p=oodt.git;a=commit;h=700694bdea86deea7bb9e713b0ddf2a23f041d4f

Like it says in my final commit apart from the profile server I've not changed the API just converted to URI internally, but Sonar flags the issue as a blocker which I think is good because having to do a DNS lookup over the internet for example when looking at a hashmap of URLS is nuts, especially if your DNS is slow as a dog.

> Prevent DNS resolution on URL Lookup
> ------------------------------------
>
>                 Key: OODT-887
>                 URL: https://issues.apache.org/jira/browse/OODT-887
>             Project: OODT
>          Issue Type: Bug
>            Reporter: Tom Barber
>            Assignee: Tom Barber
>
> Sonar flagged up an issue because URL.equals() dials up the network connection to check name resolution which is a bit weird and slow. Comparing URI's doesn't.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)