Return-Path: X-Original-To: apmail-hadoop-yarn-issues-archive@minotaur.apache.org Delivered-To: apmail-hadoop-yarn-issues-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 763891975B for ; Wed, 13 Apr 2016 08:38:26 +0000 (UTC) Received: (qmail 22996 invoked by uid 500); 13 Apr 2016 08:38:25 -0000 Delivered-To: apmail-hadoop-yarn-issues-archive@hadoop.apache.org Received: (qmail 22787 invoked by uid 500); 13 Apr 2016 08:38:25 -0000 Mailing-List: contact yarn-issues-help@hadoop.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: yarn-issues@hadoop.apache.org Delivered-To: mailing list yarn-issues@hadoop.apache.org Received: (qmail 22474 invoked by uid 99); 13 Apr 2016 08:38:25 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 13 Apr 2016 08:38:25 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id 891772C1F62 for ; Wed, 13 Apr 2016 08:38:25 +0000 (UTC) Date: Wed, 13 Apr 2016 08:38:25 +0000 (UTC) From: =?utf-8?Q?Gergely_Nov=C3=A1k_=28JIRA=29?= To: yarn-issues@hadoop.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (YARN-4954) TestYarnClient.testReservationAPIs fails on machines with less than 4 GB available memory MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/YARN-4954?page=3Dcom.atlassian= .jira.plugin.system.issuetabpanels:all-tabpanel ] Gergely Nov=C3=A1k updated YARN-4954: -------------------------------- Description:=20 TestYarnClient.testReservationAPIs sometimes fails with this error: ``` java.lang.AssertionError: org.apache.hadoop.yarn.server.resourcemanager.res= ervation.exceptions.PlanningException: The request cannot be satisfied =09at org.apache.hadoop.yarn.ipc.RPCUtil.getRemoteException(RPCUtil.java:38= ) =09at org.apache.hadoop.yarn.server.resourcemanager.ClientRMService.submitR= eservation(ClientRMService.java:1254) =09at org.apache.hadoop.yarn.api.impl.pb.service.ApplicationClientProtocolP= BServiceImpl.submitReservation(ApplicationClientProtocolPBServiceImpl.java:= 457) =09at org.apache.hadoop.yarn.proto.ApplicationClientProtocol$ApplicationCli= entProtocolService$2.callBlockingMethod(ApplicationClientProtocol.java:515) =09at org.apache.hadoop.ipc.ProtobufRpcEngine$Server$ProtoBufRpcInvoker.cal= l(ProtobufRpcEngine.java:637) =09at org.apache.hadoop.ipc.RPC$Server.call(RPC.java:989) =09at org.apache.hadoop.ipc.Server$Handler$1.run(Server.java:2422) =09at org.apache.hadoop.ipc.Server$Handler$1.run(Server.java:2418) =09at java.security.AccessController.doPrivileged(Native Method) =09at javax.security.auth.Subject.doAs(Subject.java:415) =09at org.apache.hadoop.security.UserGroupInformation.doAs(UserGroupInforma= tion.java:1742) =09at org.apache.hadoop.ipc.Server$Handler.run(Server.java:2416) Caused by: org.apache.hadoop.yarn.server.resourcemanager.reservation.except= ions.PlanningException: The request cannot be satisfied =09at org.apache.hadoop.yarn.server.resourcemanager.reservation.planning.It= erativePlanner.computeJobAllocation(IterativePlanner.java:151) =09at org.apache.hadoop.yarn.server.resourcemanager.reservation.planning.Pl= anningAlgorithm.allocateUser(PlanningAlgorithm.java:64) =09at org.apache.hadoop.yarn.server.resourcemanager.reservation.planning.Pl= anningAlgorithm.createReservation(PlanningAlgorithm.java:140) =09at org.apache.hadoop.yarn.server.resourcemanager.reservation.planning.Tr= yManyReservationAgents.createReservation(TryManyReservationAgents.java:55) =09at org.apache.hadoop.yarn.server.resourcemanager.reservation.planning.Al= ignedPlannerWithGreedy.createReservation(AlignedPlannerWithGreedy.java:84) =09at org.apache.hadoop.yarn.server.resourcemanager.ClientRMService.submitR= eservation(ClientRMService.java:1237) =09... 10 more ``` This is caused by really not having enough available memory to complete the= reservation (4 * 1024 MB). In my opinion lowering the required memory (eit= her by lowering the number of containers to 2, or the memory to 512 MB) wou= ld make the test more stable.=20 was: TestYarnClient.testReservationAPIs sometimes fails with this error: {{java.lang.AssertionError: org.apache.hadoop.yarn.server.resourcemanager.r= eservation.exceptions.PlanningException: The request cannot be satisfied =09at org.apache.hadoop.yarn.ipc.RPCUtil.getRemoteException(RPCUtil.java:38= ) =09at org.apache.hadoop.yarn.server.resourcemanager.ClientRMService.submitR= eservation(ClientRMService.java:1254) =09at org.apache.hadoop.yarn.api.impl.pb.service.ApplicationClientProtocolP= BServiceImpl.submitReservation(ApplicationClientProtocolPBServiceImpl.java:= 457) =09at org.apache.hadoop.yarn.proto.ApplicationClientProtocol$ApplicationCli= entProtocolService$2.callBlockingMethod(ApplicationClientProtocol.java:515) =09at org.apache.hadoop.ipc.ProtobufRpcEngine$Server$ProtoBufRpcInvoker.cal= l(ProtobufRpcEngine.java:637) =09at org.apache.hadoop.ipc.RPC$Server.call(RPC.java:989) =09at org.apache.hadoop.ipc.Server$Handler$1.run(Server.java:2422) =09at org.apache.hadoop.ipc.Server$Handler$1.run(Server.java:2418) =09at java.security.AccessController.doPrivileged(Native Method) =09at javax.security.auth.Subject.doAs(Subject.java:415) =09at org.apache.hadoop.security.UserGroupInformation.doAs(UserGroupInforma= tion.java:1742) =09at org.apache.hadoop.ipc.Server$Handler.run(Server.java:2416) Caused by: org.apache.hadoop.yarn.server.resourcemanager.reservation.except= ions.PlanningException: The request cannot be satisfied =09at org.apache.hadoop.yarn.server.resourcemanager.reservation.planning.It= erativePlanner.computeJobAllocation(IterativePlanner.java:151) =09at org.apache.hadoop.yarn.server.resourcemanager.reservation.planning.Pl= anningAlgorithm.allocateUser(PlanningAlgorithm.java:64) =09at org.apache.hadoop.yarn.server.resourcemanager.reservation.planning.Pl= anningAlgorithm.createReservation(PlanningAlgorithm.java:140) =09at org.apache.hadoop.yarn.server.resourcemanager.reservation.planning.Tr= yManyReservationAgents.createReservation(TryManyReservationAgents.java:55) =09at org.apache.hadoop.yarn.server.resourcemanager.reservation.planning.Al= ignedPlannerWithGreedy.createReservation(AlignedPlannerWithGreedy.java:84) =09at org.apache.hadoop.yarn.server.resourcemanager.ClientRMService.submitR= eservation(ClientRMService.java:1237) =09... 10 more =09at org.junit.Assert.fail(Assert.java:88) =09at org.apache.hadoop.yarn.client.api.impl.TestYarnClient.testReservation= APIs(TestYarnClient.java:1227) =09at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) =09at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.= java:57) =09at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces= sorImpl.java:43) =09at java.lang.reflect.Method.invoke(Method.java:606) =09at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(Framework= Method.java:47) =09at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCal= lable.java:12) =09at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMe= thod.java:44) =09at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMet= hod.java:17) =09at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:271) =09at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRun= ner.java:70) =09at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRun= ner.java:50) =09at org.junit.runners.ParentRunner$3.run(ParentRunner.java:238) =09at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:63) =09at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:236) =09at org.junit.runners.ParentRunner.access$000(ParentRunner.java:53) =09at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:229) =09at org.junit.runners.ParentRunner.run(ParentRunner.java:309) =09at org.junit.runner.JUnitCore.run(JUnitCore.java:160) =09at com.intellij.junit4.JUnit4IdeaTestRunner.startRunnerWithArgs(JUnit4Id= eaTestRunner.java:119) =09at com.intellij.junit4.JUnit4IdeaTestRunner.startRunnerWithArgs(JUnit4Id= eaTestRunner.java:42) =09at com.intellij.rt.execution.junit.JUnitStarter.prepareStreamsAndStart(J= UnitStarter.java:234) =09at com.intellij.rt.execution.junit.JUnitStarter.main(JUnitStarter.java:7= 4) =09at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) =09at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.= java:57) =09at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces= sorImpl.java:43) =09at java.lang.reflect.Method.invoke(Method.java:606) =09at com.intellij.rt.execution.application.AppMain.main(AppMain.java:144)}= } This is caused by really not having enough available memory to complete the= reservation (4 * 1024 MB). In my opinion lowering the required memory (eit= her by lowering the number of containers to 2, or the memory to 512 MB) wou= ld make the test more stable.=20 > TestYarnClient.testReservationAPIs fails on machines with less than 4 GB = available memory > -------------------------------------------------------------------------= ---------------- > > Key: YARN-4954 > URL: https://issues.apache.org/jira/browse/YARN-4954 > Project: Hadoop YARN > Issue Type: Test > Components: test > Affects Versions: 3.0.0 > Reporter: Gergely Nov=C3=A1k > Assignee: Gergely Nov=C3=A1k > Priority: Minor > > TestYarnClient.testReservationAPIs sometimes fails with this error: > ``` > java.lang.AssertionError: org.apache.hadoop.yarn.server.resourcemanager.r= eservation.exceptions.PlanningException: The request cannot be satisfied > =09at org.apache.hadoop.yarn.ipc.RPCUtil.getRemoteException(RPCUtil.java:= 38) > =09at org.apache.hadoop.yarn.server.resourcemanager.ClientRMService.submi= tReservation(ClientRMService.java:1254) > =09at org.apache.hadoop.yarn.api.impl.pb.service.ApplicationClientProtoco= lPBServiceImpl.submitReservation(ApplicationClientProtocolPBServiceImpl.jav= a:457) > =09at org.apache.hadoop.yarn.proto.ApplicationClientProtocol$ApplicationC= lientProtocolService$2.callBlockingMethod(ApplicationClientProtocol.java:51= 5) > =09at org.apache.hadoop.ipc.ProtobufRpcEngine$Server$ProtoBufRpcInvoker.c= all(ProtobufRpcEngine.java:637) > =09at org.apache.hadoop.ipc.RPC$Server.call(RPC.java:989) > =09at org.apache.hadoop.ipc.Server$Handler$1.run(Server.java:2422) > =09at org.apache.hadoop.ipc.Server$Handler$1.run(Server.java:2418) > =09at java.security.AccessController.doPrivileged(Native Method) > =09at javax.security.auth.Subject.doAs(Subject.java:415) > =09at org.apache.hadoop.security.UserGroupInformation.doAs(UserGroupInfor= mation.java:1742) > =09at org.apache.hadoop.ipc.Server$Handler.run(Server.java:2416) > Caused by: org.apache.hadoop.yarn.server.resourcemanager.reservation.exce= ptions.PlanningException: The request cannot be satisfied > =09at org.apache.hadoop.yarn.server.resourcemanager.reservation.planning.= IterativePlanner.computeJobAllocation(IterativePlanner.java:151) > =09at org.apache.hadoop.yarn.server.resourcemanager.reservation.planning.= PlanningAlgorithm.allocateUser(PlanningAlgorithm.java:64) > =09at org.apache.hadoop.yarn.server.resourcemanager.reservation.planning.= PlanningAlgorithm.createReservation(PlanningAlgorithm.java:140) > =09at org.apache.hadoop.yarn.server.resourcemanager.reservation.planning.= TryManyReservationAgents.createReservation(TryManyReservationAgents.java:55= ) > =09at org.apache.hadoop.yarn.server.resourcemanager.reservation.planning.= AlignedPlannerWithGreedy.createReservation(AlignedPlannerWithGreedy.java:84= ) > =09at org.apache.hadoop.yarn.server.resourcemanager.ClientRMService.submi= tReservation(ClientRMService.java:1237) > =09... 10 more > ``` > This is caused by really not having enough available memory to complete t= he reservation (4 * 1024 MB). In my opinion lowering the required memory (e= ither by lowering the number of containers to 2, or the memory to 512 MB) w= ould make the test more stable.=20 -- This message was sent by Atlassian JIRA (v6.3.4#6332)