zhuzhurk commented on a change in pull request #11817: URL: https://github.com/apache/flink/pull/11817#discussion_r411183367
########## File path: flink-yarn/src/test/java/org/apache/flink/yarn/AbstractYarnClusterTest.java ########## @@ -82,26 +83,21 @@ private ApplicationReport createApplicationReport( ApplicationId applicationId, YarnApplicationState yarnApplicationState, FinalApplicationStatus finalApplicationStatus) { - return ApplicationReport.newInstance( - applicationId, - ApplicationAttemptId.newInstance(applicationId, 0), - "user", - "queue", - "name", - "localhost", - 42, - null, - yarnApplicationState, - null, - null, - 1L, - 2L, - finalApplicationStatus, - null, - null, - 1.0f, - null, - null); + + ApplicationReport applicationReport = Records.newRecord(ApplicationReport.class); Review comment: Seems `Records.newRecord(...)` is still private and unstable. Is there a stable approach to create `ApplicationReport`? ---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: us...@infra.apache.org