Hadoop YARN
  1. Hadoop YARN
  2. YARN-117 Enhance YARN service model
  3. YARN-121

Yarn services to throw a YarnException on invalid state changs

    Details

    • Type: Sub-task Sub-task
    • Status: Resolved
    • Priority: Minor Minor
    • Resolution: Duplicate
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: None
    • Labels:
      None

      Description

      the EnsureCurrentState() checks of services throw an IllegalStateException if the state is wrong. If this was changed to YarnException. wrapper services such as CompositeService could relay this direct, instead of wrapping it in their own.

      Time to implement mainly in changing the lifecycle test cases of MAPREDUCE-3939 subtasks.

        Issue Links

          Activity

          Transition Time In Source Status Execution Times Last Executer Last Execution Date
          Open Open Resolved Resolved
          383d 1h 28m 1 Steve Loughran 02/Apr/13 18:47
          Allen Wittenauer made changes -
          Fix Version/s 3.0.0 [ 12323268 ]
          Steve Loughran made changes -
          Status Open [ 1 ] Resolved [ 5 ]
          Fix Version/s 3.0.0 [ 12323268 ]
          Resolution Duplicate [ 3 ]
          Hide
          Steve Loughran added a comment -

          Superceded by YARN-530

          Show
          Steve Loughran added a comment - Superceded by YARN-530
          Steve Loughran made changes -
          Link This issue is superceded by YARN-530 [ YARN-530 ]
          Vinod Kumar Vavilapalli made changes -
          Field Original Value New Value
          Project Hadoop Map/Reduce [ 12310941 ] Hadoop YARN [ 12313722 ]
          Key MAPREDUCE-4015 YARN-121
          Affects Version/s 0.24.0 [ 12317654 ]
          Affects Version/s 0.23.1 [ 12318883 ]
          Component/s mrv2 [ 12314301 ]
          Hide
          Steve Loughran added a comment -

          this should be a new exception, say YarnIllegalLifecycleException that includes a ref to the service at fault and expected state. This will aid in testing -a human readable string can also be generated from this.

          Show
          Steve Loughran added a comment - this should be a new exception, say YarnIllegalLifecycleException that includes a ref to the service at fault and expected state. This will aid in testing -a human readable string can also be generated from this.
          Steve Loughran created issue -

            People

            • Assignee:
              Steve Loughran
              Reporter:
              Steve Loughran
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Time Tracking

                Estimated:
                Original Estimate - 0.5h
                0.5h
                Remaining:
                Remaining Estimate - 0.5h
                0.5h
                Logged:
                Time Spent - Not Specified
                Not Specified

                  Development