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

Hoss Man commented on SOLR-5241:
--------------------------------

I don't think so, but maybe i don't fully understand what the FreeBSD blackhole 
does.

The test never attempts to open any sockets to these URL objects -- the problem 
so far (that i can see) is just that by nature of being java.net.URL, there is 
a DNS check when the equals/hashCode methods get used and that seems to be the 
speed problem when the urls contain "example.com" ... so i figured using a 
"safe" IP would prevent that...

http://www.eishay.com/2008/04/javas-url-little-secret.html

is there any reason the freebsd blackhole would affect dns lookups on 
"127.42.42.42" even if the URL class did decide to try to "resolve" that IP as 
a hostname (i don't think it does) ?
                
> SimplePostToolTest is slow on some systmes - likely due to hostname 
> resolution of "example.com"
> -----------------------------------------------------------------------------------------------
>
>                 Key: SOLR-5241
>                 URL: https://issues.apache.org/jira/browse/SOLR-5241
>             Project: Solr
>          Issue Type: Bug
>            Reporter: Hoss Man
>            Assignee: Hoss Man
>         Attachments: SOLR-5241.patch
>
>
> As noted by Shai on the dev @lucene list, SimplePostToolTest is ridiculously 
> slow when he ran from ant, but only takes 1 second in his IDE.
> problem seems to be relate to the URL class attempting to response 
> "example.com"

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@lucene.apache.org
For additional commands, e-mail: dev-h...@lucene.apache.org

Reply via email to