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

          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.
          Hide
          Steve Loughran added a comment -

          Superceded by YARN-530

          Show
          Steve Loughran added a comment - Superceded by YARN-530

            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