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

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

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Trivial
    • Resolution: Fixed
    • None
    • 0.9.0
    • 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;
              }
      

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: