Uploaded image for project: 'Hadoop YARN'
  1. Hadoop YARN
  2. YARN-4279

Mark ApplicationId and ApplicationAttemptId static methods as @Public, @Unstable

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 2.7.1
    • Fix Version/s: 2.8.0, 3.0.0-alpha1
    • Component/s: client
    • Labels:
      None

      Description

      The classes ApplicationId and ApplicationAttemptId both have newInstance() methods tagged as @Private. Yet they are useful in testing, as the alternative is to create and configure the PBImpl classes -which are significantly more private.

      The fact that mapreduce's MRBuilderUtils uses one of the methods shows that YARN apps do need access to the methods.

      Marking them as public would make it clear that other YARN apps were using them for their production or test code, rather than today, where they are used and depended on, yet without the YARN team's knowledge.

        Attachments

          Activity

            People

            • Assignee:
              stevel@apache.org Steve Loughran
              Reporter:
              stevel@apache.org Steve Loughran
            • Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Time Tracking

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