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

        Devaraj K created issue -
        Devaraj K made changes -
        Field Original Value New Value
        Attachment MAPREDUCE-3128.patch [ 12497150 ]
        Devaraj K made changes -
        Status Open [ 1 ] Patch Available [ 10002 ]
        Fix Version/s 0.24.0 [ 12317654 ]
        Devaraj K made changes -
        Project Hadoop Map/Reduce [ 12310941 ] Hadoop Common [ 12310240 ]
        Key MAPREDUCE-3128 HADOOP-7703
        Affects Version/s 0.24.0 [ 12317652 ]
        Affects Version/s 0.24.0 [ 12317654 ]
        Fix Version/s 0.24.0 [ 12317652 ]
        Fix Version/s 0.24.0 [ 12317654 ]
        Component/s mrv2 [ 12314301 ]
        Devaraj K made changes -
        Status Patch Available [ 10002 ] Open [ 1 ]
        Devaraj K made changes -
        Attachment HADOOP-7703.patch [ 12497166 ]
        Devaraj K made changes -
        Attachment MAPREDUCE-3128.patch [ 12497150 ]
        Devaraj K made changes -
        Status Open [ 1 ] Patch Available [ 10002 ]
        Eric Yang made changes -
        Status Patch Available [ 10002 ] Resolved [ 5 ]
        Hadoop Flags Reviewed [ 10343 ]
        Release Note Improved excpetion handling of shutting down web server. (Devaraj K via Eric Yang)
        Resolution Fixed [ 1 ]
        Arun C Murthy made changes -
        Fix Version/s 3.0.0 [ 12320357 ]
        Fix Version/s 0.24.0 [ 12317652 ]
        Alejandro Abdelnur made changes -
        Fix Version/s 2.2.0-alpha [ 12322473 ]
        Fix Version/s 3.0.0 [ 12320357 ]
        Arun C Murthy made changes -
        Status Resolved [ 5 ] Closed [ 6 ]

          People

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

            Dates

            • Created:
              Updated:
              Resolved:

              Development