[ https://issues.apache.org/jira/browse/YARN-9355?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17082109#comment-17082109 ]
Umesh Mittal edited comment on YARN-9355 at 4/13/20, 7:06 AM: -------------------------------------------------------------- Hi [Szilard|https://issues.apache.org/jira/secure/ViewProfile.jspa?name=snemeth] I have finished writing up a patch for this improvement request. There in no JUNIT updated as this is a very cosmetic change. Thanks was (Author: umittal): Hi [Szilard|https://issues.apache.org/jira/secure/ViewProfile.jspa?name=snemeth] I have finished writing up a patch for this improvement request. Thanks > RMContainerRequestor#makeRemoteRequest has confusing log message > ---------------------------------------------------------------- > > Key: YARN-9355 > URL: https://issues.apache.org/jira/browse/YARN-9355 > Project: Hadoop YARN > Issue Type: Improvement > Reporter: Szilard Nemeth > Assignee: Umesh Mittal > Priority: Trivial > Labels: newbie, newbie++ > Attachments: YARN-9355.001.patch > > > org.apache.hadoop.mapreduce.v2.app.rm.RMContainerRequestor#makeRemoteRequest > has this log: > {code:java} > if (ask.size() > 0 || release.size() > 0) { > LOG.info("getResources() for " + applicationId + ":" + " ask=" > + ask.size() + " release= " + release.size() + " newContainers=" > + allocateResponse.getAllocatedContainers().size() > + " finishedContainers=" + numCompletedContainers > + " resourcelimit=" + availableResources + " knownNMs=" > + clusterNmCount); > } > {code} > The reason why "getResources()" is printed because > org.apache.hadoop.mapreduce.v2.app.rm.RMContainerAllocator#getResources > invokes makeRemoteRequest. This is not too informative and error-prone as > name of getResources could change over time and the log will be outdated. > Moreover, it's not a good idea to print a method name from a method below the > current one in the stack. -- This message was sent by Atlassian Jira (v8.3.4#803005) --------------------------------------------------------------------- To unsubscribe, e-mail: yarn-issues-unsubscr...@hadoop.apache.org For additional commands, e-mail: yarn-issues-h...@hadoop.apache.org