Hyunsik Choi created TAJO-981:
---------------------------------

             Summary: 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.2#6252)

Reply via email to