Hadoop Common
  1. Hadoop Common
  2. HADOOP-7703

WebAppContext should also be stopped and cleared

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 0.24.0
    • Fix Version/s: 2.0.2-alpha
    • Component/s: None
    • Labels:
      None
    • Hadoop Flags:
      Reviewed
    • Release Note:
      Improved excpetion handling of shutting down web server. (Devaraj K via Eric Yang)

      Description

      1. If listener stop method throws any exception then the webserver stop method will not be called

      public void stop() throws Exception {
          listener.close();
          webServer.stop();
      }
      

      2. also, WebAppContext stores all the context attributes, which does not get cleared if only webServer is stopped.
      so following calls are necessary to ensure clean and complete stop.

      webAppContext.clearAttributes();
      webAppContext.stop();
      

      3. Also the WebAppContext display name can be the name passed to HttpServer instance.

      webAppContext.setDisplayName(name);
      

      instead of

      webAppContext.setDisplayName("WepAppsContext");
      

        Activity

        No work has yet been logged on this issue.

          People

          • Assignee:
            Devaraj K
            Reporter:
            Devaraj K
          • Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development