[
https://issues.apache.org/jira/browse/TAJO-981?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14154958#comment-14154958
]
Hudson commented on TAJO-981:
-----------------------------
FAILURE: Integrated in Tajo-block_iteration-branch-build #12 (See
[https://builds.apache.org/job/Tajo-block_iteration-branch-build/12/])
TAJO-981: Help command (\?) in tsql takes too long time. (YeonSu Han via
jaehwa) (blrunner: rev 0356a5257cd2426d783642e27478eaae95ddfe7d)
* tajo-client/src/main/java/org/apache/tajo/cli/HelpCommand.java
* CHANGES
> 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
> Assignee: YeonSu Han
> 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)