Details
-
Bug
-
Status: Resolved
-
Trivial
-
Resolution: Fixed
-
None
-
None
-
None
Description
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.
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; }