Uploaded image for project: 'Tajo'
  1. Tajo
  2. TAJO-981

Help command (\?) in tsql takes too long time.

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Trivial
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 0.9.0
    • Component/s: None
    • Labels:
      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;
              }
      

        Attachments

          Activity

            People

            • Assignee:
              hys9958 YeonSu Han
              Reporter:
              hyunsik Hyunsik Choi
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: