You are viewing a plain text version of this content. The canonical link for it is here.
Posted to common-issues@hadoop.apache.org by GitBox <gi...@apache.org> on 2022/10/05 19:56:26 UTC

[GitHub] [hadoop] riyakhdl commented on a diff in pull request #4960: YARN-6766 HelperMethod added in AppsBlock class

riyakhdl commented on code in PR #4960:
URL: https://github.com/apache/hadoop/pull/4960#discussion_r985277193


##########
hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-resourcemanager/src/main/java/org/apache/hadoop/yarn/server/resourcemanager/webapp/FairSchedulerAppsBlock.java:
##########
@@ -128,8 +128,15 @@ protected Boolean hasAccess(RMApp app, HttpServletRequest hsr) {
     }
     return true;
   }
-
-
+  private long appInfoFunc;
+  public String printData(long appInfoFunc) {
+    this.appInfoFunc=appInfoFunc;

Review Comment:
   Was doing this to resolve the error : 'appInfoFunc' hides a field. [HiddenField]



##########
hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-resourcemanager/src/main/java/org/apache/hadoop/yarn/server/resourcemanager/webapp/FairSchedulerAppsBlock.java:
##########
@@ -128,8 +128,15 @@ protected Boolean hasAccess(RMApp app, HttpServletRequest hsr) {
     }
     return true;
   }
-
-
+  private long appInfoFunc;
+  public String printData(long appInfoFunc) {
+    this.appInfoFunc=appInfoFunc;

Review Comment:
   Was doing this to resolve the error : 'appInfoFunc' hides a field. [HiddenField]



-- 
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.

To unsubscribe, e-mail: common-issues-unsubscribe@hadoop.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: common-issues-unsubscribe@hadoop.apache.org
For additional commands, e-mail: common-issues-help@hadoop.apache.org