Uploaded image for project: 'Hadoop Common'
  1. Hadoop Common
  2. HADOOP-13035

Add states INITING and STARTING to YARN Service model to cover in-transition states.

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • None
    • None
    • None
    • None

    Description

      As per the discussion in YARN-3971 the we should be setting the service state to STARTED only after serviceStart()
      Currently AbstractService#start() is set

       
           if (stateModel.enterState(STATE.STARTED) != STATE.STARTED) {
              try {
                startTime = System.currentTimeMillis();
                serviceStart();
      ..
       }
      

      enterState sets the service state to proposed state. So in service.getServiceState in serviceStart() will return STARTED .

      Attachments

        1. 0003-HADOOP-13035.patch
          7 kB
          Bibin Chundatt
        2. 0002-HADOOP-13035.patch
          7 kB
          Bibin Chundatt
        3. 0001-HADOOP-13035.patch
          5 kB
          Bibin Chundatt

        Issue Links

          Activity

            People

              Unassigned Unassigned
              bibinchundatt Bibin Chundatt
              Votes:
              0 Vote for this issue
              Watchers:
              8 Start watching this issue

              Dates

                Created:
                Updated: