Details
-
Improvement
-
Status: Resolved
-
Minor
-
Resolution: Fixed
-
2.7.1
-
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.