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

ASF GitHub Bot commented on TAJO-981:
-------------------------------------

GitHub user hys9958 opened a pull request:

    https://github.com/apache/tajo/pull/174

    TAJO-981: Help command (\?) in tsql takes too long time.

    

You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/hys9958/tajo tajo-981

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/tajo/pull/174.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

    This closes #174
    
----
commit 737d2122cb54b8404a741a6979cfbc2dc11e3ea0
Author: hys9958 <[email protected]>
Date:   2014-09-30T21:19:48Z

    TAJO-981: Help command (\?) in tsql takes too long time.

----


> Help command (\?) in tsql takes too long time.
> ----------------------------------------------
>
>                 Key: TAJO-981
>                 URL: https://issues.apache.org/jira/browse/TAJO-981
>             Project: Tajo
>          Issue Type: Bug
>            Reporter: Hyunsik Choi
>            Priority: Trivial
>             Fix For: 0.9.0
>
>
> HelpCommand class firstly retrieves the documentation in tajo.apache.org. Its 
> approach looks good. But, it is likely to take too long time (usually 1-3 
> seconds) at first time. We should resolve it or remove it.
> {code}
> try {
>         URL u = new URL("http://tajo.apache.org/docs/"+ tajoVersion + "/");
>         HttpURLConnection huc =  (HttpURLConnection) u.openConnection();
>         huc.setConnectTimeout(1000);
>         huc.setReadTimeout(1000);
>         huc.setRequestMethod("HEAD");
>         if(huc.getResponseCode() == HttpURLConnection.HTTP_OK) {
>           docVersion = tajoVersion;
>         } else {
>           docVersion = docDefaultVersion;
>         }
> {code}



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

Reply via email to