[ https://issues.apache.org/jira/browse/YARN-8720?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16614699#comment-16614699 ]
Hadoop QA commented on YARN-8720: --------------------------------- | (x) *{color:red}-1 overall{color}* | \\ \\ || Vote || Subsystem || Runtime || Comment || | {color:blue}0{color} | {color:blue} reexec {color} | {color:blue} 19m 6s{color} | {color:blue} Docker mode activated. {color} | || || || || {color:brown} Prechecks {color} || | {color:blue}0{color} | {color:blue} findbugs {color} | {color:blue} 0m 0s{color} | {color:blue} Findbugs executables are not available. {color} | | {color:green}+1{color} | {color:green} @author {color} | {color:green} 0m 0s{color} | {color:green} The patch does not contain any @author tags. {color} | | {color:green}+1{color} | {color:green} test4tests {color} | {color:green} 0m 0s{color} | {color:green} The patch appears to include 2 new or modified test files. {color} | || || || || {color:brown} branch-2.8 Compile Tests {color} || | {color:green}+1{color} | {color:green} mvninstall {color} | {color:green} 11m 51s{color} | {color:green} branch-2.8 passed {color} | | {color:green}+1{color} | {color:green} compile {color} | {color:green} 0m 44s{color} | {color:green} branch-2.8 passed {color} | | {color:green}+1{color} | {color:green} checkstyle {color} | {color:green} 0m 26s{color} | {color:green} branch-2.8 passed {color} | | {color:green}+1{color} | {color:green} mvnsite {color} | {color:green} 0m 54s{color} | {color:green} branch-2.8 passed {color} | | {color:green}+1{color} | {color:green} javadoc {color} | {color:green} 0m 34s{color} | {color:green} branch-2.8 passed {color} | || || || || {color:brown} Patch Compile Tests {color} || | {color:green}+1{color} | {color:green} mvninstall {color} | {color:green} 0m 41s{color} | {color:green} the patch passed {color} | | {color:green}+1{color} | {color:green} compile {color} | {color:green} 0m 40s{color} | {color:green} the patch passed {color} | | {color:green}+1{color} | {color:green} javac {color} | {color:green} 0m 40s{color} | {color:green} the patch passed {color} | | {color:green}+1{color} | {color:green} checkstyle {color} | {color:green} 0m 22s{color} | {color:green} the patch passed {color} | | {color:green}+1{color} | {color:green} mvnsite {color} | {color:green} 0m 43s{color} | {color:green} the patch passed {color} | | {color:green}+1{color} | {color:green} whitespace {color} | {color:green} 0m 0s{color} | {color:green} The patch has no whitespace issues. {color} | | {color:green}+1{color} | {color:green} javadoc {color} | {color:green} 0m 30s{color} | {color:green} the patch passed {color} | || || || || {color:brown} Other Tests {color} || | {color:red}-1{color} | {color:red} unit {color} | {color:red} 83m 19s{color} | {color:red} hadoop-yarn-server-resourcemanager in the patch failed. {color} | | {color:red}-1{color} | {color:red} asflicense {color} | {color:red} 0m 20s{color} | {color:red} The patch generated 1 ASF License warnings. {color} | | {color:black}{color} | {color:black} {color} | {color:black}121m 19s{color} | {color:black} {color} | \\ \\ || Reason || Tests || | Failed junit tests | hadoop.yarn.server.resourcemanager.TestClientRMTokens | | | hadoop.yarn.server.resourcemanager.TestAMAuthorization | \\ \\ || Subsystem || Report/Notes || | Docker | Client=17.05.0-ce Server=17.05.0-ce Image:yetus/hadoop:ae3769f | | JIRA Issue | YARN-8720 | | JIRA Patch URL | https://issues.apache.org/jira/secure/attachment/12939688/YARN-8720-branch-2.8.001.patch | | Optional Tests | dupname asflicense compile javac javadoc mvninstall mvnsite unit shadedclient findbugs checkstyle | | uname | Linux 36662255b494 3.13.0-153-generic #203-Ubuntu SMP Thu Jun 14 08:52:28 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux | | Build tool | maven | | Personality | /testptch/patchprocess/precommit/personality/provided.sh | | git revision | branch-2.8 / 7f7a3c8 | | maven | version: Apache Maven 3.0.5 | | Default Java | 1.7.0_181 | | unit | https://builds.apache.org/job/PreCommit-YARN-Build/21838/artifact/out/patch-unit-hadoop-yarn-project_hadoop-yarn_hadoop-yarn-server_hadoop-yarn-server-resourcemanager.txt | | Test Results | https://builds.apache.org/job/PreCommit-YARN-Build/21838/testReport/ | | asflicense | https://builds.apache.org/job/PreCommit-YARN-Build/21838/artifact/out/patch-asflicense-problems.txt | | Max. process+thread count | 641 (vs. ulimit of 10000) | | modules | C: hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-resourcemanager U: hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-resourcemanager | | Console output | https://builds.apache.org/job/PreCommit-YARN-Build/21838/console | | Powered by | Apache Yetus 0.8.0 http://yetus.apache.org | This message was automatically generated. > CapacityScheduler does not enforce max resource allocation check at queue > level > ------------------------------------------------------------------------------- > > Key: YARN-8720 > URL: https://issues.apache.org/jira/browse/YARN-8720 > Project: Hadoop YARN > Issue Type: Bug > Components: capacity scheduler, capacityscheduler, resourcemanager > Affects Versions: 2.7.0 > Reporter: Tarun Parimi > Assignee: Tarun Parimi > Priority: Major > Fix For: 3.2.0, 2.9.2, 3.0.4, 3.1.2 > > Attachments: YARN-8720-branch-2.8.001.patch, YARN-8720.001.patch, > YARN-8720.002.patch > > > The value of > yarn.scheduler.capacity.<queue-path>.maximum-allocation-mb/vcores is not > strictly enforced when applications request containers. An > InvalidResourceRequestException is thrown only when the ResourceRequest is > greater than the global value of yarn.scheduler.maximum-allocation-mb/vcores > . So for an example configuration such as below, > > {code:java} > yarn.scheduler.maximum-allocation-mb=4096 > yarn.scheduler.capacity.root.test.maximum-allocation-mb=2048 > {code} > > The below DSShell command runs successfully and asks an AM container of size > 4096MB which is greater than max 2048MB configured in test queue. > {code:java} > yarn jar $YARN_HOME/hadoop-yarn-applications-distributedshell.jar > -num_containers 1 -jar > $YARN_HOME/hadoop-yarn-applications-distributedshell.jar -shell_command > "sleep 60" -container_memory=4096 -master_memory=4096 -queue=test{code} > Instead it should not launch the application and fail with > InvalidResourceRequestException . The child container however will be > requested with size 2048MB as DSShell AppMaster does the below check before > ResourceRequest ask with RM. > {code:java} > // A resource ask cannot exceed the max. > if (containerMemory > maxMem) { > LOG.info("Container memory specified above max threshold of cluster." > + " Using max value." + ", specified=" + containerMemory + ", max=" > + maxMem); > containerMemory = maxMem; > }{code} > -- This message was sent by Atlassian JIRA (v7.6.3#76005) --------------------------------------------------------------------- To unsubscribe, e-mail: yarn-issues-unsubscr...@hadoop.apache.org For additional commands, e-mail: yarn-issues-h...@hadoop.apache.org