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

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

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 2.7.1
    • 2.8.0, 3.0.0-alpha1
    • client
    • 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

        1. YARN-4279-001.patch
          2 kB
          Steve Loughran

        Activity

          People

            stevel@apache.org Steve Loughran
            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