几十G状态数据时,savepoint失败

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

几十G状态数据时,savepoint失败

廖辉轩
Hi,all

当数据到达50G左右时,savepoint总是失败。初步分析是执行savepoint时,内存溢出导致task挂掉,然后task重启。


background:
flink version:1.10.0
flink on yarn:Total Task Slots8
Task Managers8,5G memory




backend:rocksdb,Increment
checkpoint:3 min


Container Error:
container_1596184446716_365651_01_000009 because: Container [pid=104949,containerID=container_1596184446716_365651_01_000009] is running beyond physical memory limits. Current usage: 5.3 GB of 5 GB physical memory used; 7.4 GB of 10.5 GB virtual memory used. Killing container.
Dump of the process-tree for container_1596184446716_365651_01_000009 :



===================
Command:


flink savepoint 389923a0198dd74f5e1bc9e968258dba -yid application_1596184446716_365651


Error:


org.apache.flink.util.FlinkException: Triggering a savepoint for the job 389923a0198dd74f5e1bc9e968258dba failed.
        at org.apache.flink.client.cli.CliFrontend.triggerSavepoint(CliFrontend.java:633)
        at org.apache.flink.client.cli.CliFrontend.lambda$savepoint$9(CliFrontend.java:611)
        at org.apache.flink.client.cli.CliFrontend.runClusterAction(CliFrontend.java:843)
        at org.apache.flink.client.cli.CliFrontend.savepoint(CliFrontend.java:608)
        at org.apache.flink.client.cli.CliFrontend.parseParameters(CliFrontend.java:910)
        at org.apache.flink.client.cli.CliFrontend.lambda$main$10(CliFrontend.java:968)
        at java.security.AccessController.doPrivileged(Native Method)
        at javax.security.auth.Subject.doAs(Subject.java:422)
        at org.apache.hadoop.security.UserGroupInformation.doAs(UserGroupInformation.java:1692)
        at org.apache.flink.runtime.security.HadoopSecurityContext.runSecured(HadoopSecurityContext.java:41)
        at org.apache.flink.client.cli.CliFrontend.main(CliFrontend.java:968)
Caused by: java.util.concurrent.CompletionException: java.util.concurrent.CompletionException: org.apache.flink.runtime.checkpoint.CheckpointException: Checkpoint Coordinator is suspending.
        at org.apache.flink.runtime.scheduler.SchedulerBase.lambda$triggerSavepoint$3(SchedulerBase.java:744)
        at java.util.concurrent.CompletableFuture.uniHandle(CompletableFuture.java:822)
        at java.util.concurrent.CompletableFuture$UniHandle.tryFire(CompletableFuture.java:797)
        at java.util.concurrent.CompletableFuture$Completion.run(CompletableFuture.java:442)
        at org.apache.flink.runtime.rpc.akka.AkkaRpcActor.handleRunAsync(AkkaRpcActor.java:397)
        at org.apache.flink.runtime.rpc.akka.AkkaRpcActor.handleRpcMessage(AkkaRpcActor.java:190)
        at org.apache.flink.runtime.rpc.akka.FencedAkkaRpcActor.handleRpcMessage(FencedAkkaRpcActor.java:74)
        at org.apache.flink.runtime.rpc.akka.AkkaRpcActor.handleMessage(AkkaRpcActor.java:152)
        at akka.japi.pf.UnitCaseStatement.apply(CaseStatements.scala:26)
        at akka.japi.pf.UnitCaseStatement.apply(CaseStatements.scala:21)
        at scala.PartialFunction$class.applyOrElse(PartialFunction.scala:123)
        at akka.japi.pf.UnitCaseStatement.applyOrElse(CaseStatements.scala:21)
        at scala.PartialFunction$OrElse.applyOrElse(PartialFunction.scala:170)
        at scala.PartialFunction$OrElse.applyOrElse(PartialFunction.scala:171)
        at scala.PartialFunction$OrElse.applyOrElse(PartialFunction.scala:171)
        at akka.actor.Actor$class.aroundReceive(Actor.scala:517)
        at akka.actor.AbstractActor.aroundReceive(AbstractActor.scala:225)
        at akka.actor.ActorCell.receiveMessage(ActorCell.scala:592)
        at akka.actor.ActorCell.invoke(ActorCell.scala:561)
        at akka.dispatch.Mailbox.processMailbox(Mailbox.scala:258)
        at akka.dispatch.Mailbox.run(Mailbox.scala:225)
        at akka.dispatch.Mailbox.exec(Mailbox.scala:235)
        at akka.dispatch.forkjoin.ForkJoinTask.doExec(ForkJoinTask.java:260)
        at akka.dispatch.forkjoin.ForkJoinPool$WorkQueue.runTask(ForkJoinPool.java:1339)
        at akka.dispatch.forkjoin.ForkJoinPool.runWorker(ForkJoinPool.java:1979)
        at akka.dispatch.forkjoin.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:107)
Caused by: java.util.concurrent.CompletionException: org.apache.flink.runtime.checkpoint.CheckpointException: Checkpoint Coordinator is suspending.
        at java.util.concurrent.CompletableFuture.encodeThrowable(CompletableFuture.java:292)
        at java.util.concurrent.CompletableFuture.completeThrowable(CompletableFuture.java:308)
        at java.util.concurrent.CompletableFuture.uniApply(CompletableFuture.java:593)
        at java.util.concurrent.CompletableFuture$UniApply.tryFire(CompletableFuture.java:577)
        at java.util.concurrent.CompletableFuture.postComplete(CompletableFuture.java:474)
        at java.util.concurrent.CompletableFuture.completeExceptionally(CompletableFuture.java:1977)
        at org.apache.flink.runtime.checkpoint.CheckpointCoordinator.lambda$null$1(CheckpointCoordinator.java:457)
        at java.util.concurrent.CompletableFuture.uniWhenComplete(CompletableFuture.java:760)
        at java.util.concurrent.CompletableFuture$UniWhenComplete.tryFire(CompletableFuture.java:736)
        at java.util.concurrent.CompletableFuture.postComplete(CompletableFuture.java:474)
        at java.util.concurrent.CompletableFuture.completeExceptionally(CompletableFuture.java:1977)
        at org.apache.flink.runtime.checkpoint.PendingCheckpoint.abort(PendingCheckpoint.java:429)
        at org.apache.flink.runtime.checkpoint.CheckpointCoordinator.failPendingCheckpoint(CheckpointCoordinator.java:1445)
        at org.apache.flink.runtime.checkpoint.CheckpointCoordinator.failPendingCheckpoint(CheckpointCoordinator.java:1436)
        at org.apache.flink.runtime.checkpoint.CheckpointCoordinator.abortPendingCheckpoints(CheckpointCoordinator.java:1266)
        at org.apache.flink.runtime.checkpoint.CheckpointCoordinator.stopCheckpointScheduler(CheckpointCoordinator.java:1253)
        at org.apache.flink.runtime.checkpoint.CheckpointCoordinatorDeActivator.jobStatusChanges(CheckpointCoordinatorDeActivator.java:46)
        at org.apache.flink.runtime.executiongraph.ExecutionGraph.notifyJobStatusChange(ExecutionGraph.java:1654)
        at org.apache.flink.runtime.executiongraph.ExecutionGraph.transitionState(ExecutionGraph.java:1236)
        at org.apache.flink.runtime.executiongraph.ExecutionGraph.transitionState(ExecutionGraph.java:1214)
        at org.apache.flink.runtime.scheduler.SchedulerBase.transitionExecutionGraphState(SchedulerBase.java:421)
        at org.apache.flink.runtime.scheduler.DefaultScheduler.addVerticesToRestartPending(DefaultScheduler.java:232)
        at org.apache.flink.runtime.scheduler.DefaultScheduler.restartTasksWithDelay(DefaultScheduler.java:219)
        at org.apache.flink.runtime.scheduler.DefaultScheduler.maybeRestartTasks(DefaultScheduler.java:207)
        at org.apache.flink.runtime.scheduler.DefaultScheduler.handleTaskFailure(DefaultScheduler.java:193)
        at org.apache.flink.runtime.scheduler.DefaultScheduler.maybeHandleTaskFailure(DefaultScheduler.java:186)
        at org.apache.flink.runtime.scheduler.DefaultScheduler.updateTaskExecutionStateInternal(DefaultScheduler.java:180)
        at org.apache.flink.runtime.scheduler.SchedulerBase.updateTaskExecutionState(SchedulerBase.java:484)
        at org.apache.flink.runtime.scheduler.UpdateSchedulerNgOnInternalFailuresListener.notifyTaskFailure(UpdateSchedulerNgOnInternalFailuresListener.java:49)
        at org.apache.flink.runtime.executiongraph.ExecutionGraph.notifySchedulerNgAboutInternalTaskFailure(ExecutionGraph.java:1703)
        at org.apache.flink.runtime.executiongraph.Execution.processFail(Execution.java:1252)
        at org.apache.flink.runtime.executiongraph.Execution.processFail(Execution.java:1220)
        at org.apache.flink.runtime.executiongraph.Execution.fail(Execution.java:955)
        at org.apache.flink.runtime.jobmaster.slotpool.SingleLogicalSlot.signalPayloadRelease(SingleLogicalSlot.java:173)
        at org.apache.flink.runtime.jobmaster.slotpool.SingleLogicalSlot.release(SingleLogicalSlot.java:165)
        at org.apache.flink.runtime.jobmaster.slotpool.SlotSharingManager$SingleTaskSlot.release(SlotSharingManager.java:732)
        at org.apache.flink.runtime.jobmaster.slotpool.SlotSharingManager$MultiTaskSlot.release(SlotSharingManager.java:537)
        at org.apache.flink.runtime.jobmaster.slotpool.AllocatedSlot.releasePayload(AllocatedSlot.java:149)
        at org.apache.flink.runtime.jobmaster.slotpool.SlotPoolImpl.tryFailingAllocatedSlot(SlotPoolImpl.java:730)
        at org.apache.flink.runtime.jobmaster.slotpool.SlotPoolImpl.failAllocation(SlotPoolImpl.java:710)
        at org.apache.flink.runtime.jobmaster.JobMaster.internalFailAllocation(JobMaster.java:541)
        at org.apache.flink.runtime.jobmaster.JobMaster.notifyAllocationFailure(JobMaster.java:667)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:498)
        at org.apache.flink.runtime.rpc.akka.AkkaRpcActor.handleRpcInvocation(AkkaRpcActor.java:274)
        at org.apache.flink.runtime.rpc.akka.AkkaRpcActor.handleRpcMessage(AkkaRpcActor.java:194)
        ... 20 more
Caused by: org.apache.flink.runtime.checkpoint.CheckpointException: Checkpoint Coordinator is suspending.
        at org.apache.flink.runtime.checkpoint.PendingCheckpoint.abort(PendingCheckpoint.java:428)
        ... 56 more



Best,
Taylor
Reply | Threaded
Open this post in threaded view
|

Re: 几十G状态数据时,savepoint失败

sysuke lee
Hi Taylor,
几十G的状态应该不算大,可以看一下出发savepoint的时候,job本身是否已经进入了反压等不健康状态

廖辉轩 <[hidden email]> 于2020年10月21日周三 下午2:10写道:

> Hi,all
>
> 当数据到达50G左右时,savepoint总是失败。初步分析是执行savepoint时,内存溢出导致task挂掉,然后task重启。
>
>
> background:
> flink version:1.10.0
> flink on yarn:Total Task Slots8
> Task Managers8,5G memory
>
>
>
>
> backend:rocksdb,Increment
> checkpoint:3 min
>
>
> Container Error:
> container_1596184446716_365651_01_000009 because: Container
> [pid=104949,containerID=container_1596184446716_365651_01_000009] is
> running beyond physical memory limits. Current usage: 5.3 GB of 5 GB
> physical memory used; 7.4 GB of 10.5 GB virtual memory used. Killing
> container.
> Dump of the process-tree for container_1596184446716_365651_01_000009 :
>
>
>
> ===================
> Command:
>
>
> flink savepoint 389923a0198dd74f5e1bc9e968258dba -yid
> application_1596184446716_365651
>
>
> Error:
>
>
> org.apache.flink.util.FlinkException: Triggering a savepoint for the job
> 389923a0198dd74f5e1bc9e968258dba failed.
> &nbsp; &nbsp; &nbsp; &nbsp; at
> org.apache.flink.client.cli.CliFrontend.triggerSavepoint(CliFrontend.java:633)
> &nbsp; &nbsp; &nbsp; &nbsp; at
> org.apache.flink.client.cli.CliFrontend.lambda$savepoint$9(CliFrontend.java:611)
> &nbsp; &nbsp; &nbsp; &nbsp; at
> org.apache.flink.client.cli.CliFrontend.runClusterAction(CliFrontend.java:843)
> &nbsp; &nbsp; &nbsp; &nbsp; at
> org.apache.flink.client.cli.CliFrontend.savepoint(CliFrontend.java:608)
> &nbsp; &nbsp; &nbsp; &nbsp; at
> org.apache.flink.client.cli.CliFrontend.parseParameters(CliFrontend.java:910)
> &nbsp; &nbsp; &nbsp; &nbsp; at
> org.apache.flink.client.cli.CliFrontend.lambda$main$10(CliFrontend.java:968)
> &nbsp; &nbsp; &nbsp; &nbsp; at
> java.security.AccessController.doPrivileged(Native Method)
> &nbsp; &nbsp; &nbsp; &nbsp; at
> javax.security.auth.Subject.doAs(Subject.java:422)
> &nbsp; &nbsp; &nbsp; &nbsp; at
> org.apache.hadoop.security.UserGroupInformation.doAs(UserGroupInformation.java:1692)
> &nbsp; &nbsp; &nbsp; &nbsp; at
> org.apache.flink.runtime.security.HadoopSecurityContext.runSecured(HadoopSecurityContext.java:41)
> &nbsp; &nbsp; &nbsp; &nbsp; at
> org.apache.flink.client.cli.CliFrontend.main(CliFrontend.java:968)
> Caused by: java.util.concurrent.CompletionException:
> java.util.concurrent.CompletionException:
> org.apache.flink.runtime.checkpoint.CheckpointException: Checkpoint
> Coordinator is suspending.
> &nbsp; &nbsp; &nbsp; &nbsp; at
> org.apache.flink.runtime.scheduler.SchedulerBase.lambda$triggerSavepoint$3(SchedulerBase.java:744)
> &nbsp; &nbsp; &nbsp; &nbsp; at
> java.util.concurrent.CompletableFuture.uniHandle(CompletableFuture.java:822)
> &nbsp; &nbsp; &nbsp; &nbsp; at
> java.util.concurrent.CompletableFuture$UniHandle.tryFire(CompletableFuture.java:797)
> &nbsp; &nbsp; &nbsp; &nbsp; at
> java.util.concurrent.CompletableFuture$Completion.run(CompletableFuture.java:442)
> &nbsp; &nbsp; &nbsp; &nbsp; at
> org.apache.flink.runtime.rpc.akka.AkkaRpcActor.handleRunAsync(AkkaRpcActor.java:397)
> &nbsp; &nbsp; &nbsp; &nbsp; at
> org.apache.flink.runtime.rpc.akka.AkkaRpcActor.handleRpcMessage(AkkaRpcActor.java:190)
> &nbsp; &nbsp; &nbsp; &nbsp; at
> org.apache.flink.runtime.rpc.akka.FencedAkkaRpcActor.handleRpcMessage(FencedAkkaRpcActor.java:74)
> &nbsp; &nbsp; &nbsp; &nbsp; at
> org.apache.flink.runtime.rpc.akka.AkkaRpcActor.handleMessage(AkkaRpcActor.java:152)
> &nbsp; &nbsp; &nbsp; &nbsp; at akka.japi.pf
> .UnitCaseStatement.apply(CaseStatements.scala:26)
> &nbsp; &nbsp; &nbsp; &nbsp; at akka.japi.pf
> .UnitCaseStatement.apply(CaseStatements.scala:21)
> &nbsp; &nbsp; &nbsp; &nbsp; at
> scala.PartialFunction$class.applyOrElse(PartialFunction.scala:123)
> &nbsp; &nbsp; &nbsp; &nbsp; at akka.japi.pf
> .UnitCaseStatement.applyOrElse(CaseStatements.scala:21)
> &nbsp; &nbsp; &nbsp; &nbsp; at
> scala.PartialFunction$OrElse.applyOrElse(PartialFunction.scala:170)
> &nbsp; &nbsp; &nbsp; &nbsp; at
> scala.PartialFunction$OrElse.applyOrElse(PartialFunction.scala:171)
> &nbsp; &nbsp; &nbsp; &nbsp; at
> scala.PartialFunction$OrElse.applyOrElse(PartialFunction.scala:171)
> &nbsp; &nbsp; &nbsp; &nbsp; at
> akka.actor.Actor$class.aroundReceive(Actor.scala:517)
> &nbsp; &nbsp; &nbsp; &nbsp; at
> akka.actor.AbstractActor.aroundReceive(AbstractActor.scala:225)
> &nbsp; &nbsp; &nbsp; &nbsp; at
> akka.actor.ActorCell.receiveMessage(ActorCell.scala:592)
> &nbsp; &nbsp; &nbsp; &nbsp; at
> akka.actor.ActorCell.invoke(ActorCell.scala:561)
> &nbsp; &nbsp; &nbsp; &nbsp; at
> akka.dispatch.Mailbox.processMailbox(Mailbox.scala:258)
> &nbsp; &nbsp; &nbsp; &nbsp; at akka.dispatch.Mailbox.run(Mailbox.scala:225)
> &nbsp; &nbsp; &nbsp; &nbsp; at
> akka.dispatch.Mailbox.exec(Mailbox.scala:235)
> &nbsp; &nbsp; &nbsp; &nbsp; at
> akka.dispatch.forkjoin.ForkJoinTask.doExec(ForkJoinTask.java:260)
> &nbsp; &nbsp; &nbsp; &nbsp; at
> akka.dispatch.forkjoin.ForkJoinPool$WorkQueue.runTask(ForkJoinPool.java:1339)
> &nbsp; &nbsp; &nbsp; &nbsp; at
> akka.dispatch.forkjoin.ForkJoinPool.runWorker(ForkJoinPool.java:1979)
> &nbsp; &nbsp; &nbsp; &nbsp; at
> akka.dispatch.forkjoin.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:107)
> Caused by: java.util.concurrent.CompletionException:
> org.apache.flink.runtime.checkpoint.CheckpointException: Checkpoint
> Coordinator is suspending.
> &nbsp; &nbsp; &nbsp; &nbsp; at
> java.util.concurrent.CompletableFuture.encodeThrowable(CompletableFuture.java:292)
> &nbsp; &nbsp; &nbsp; &nbsp; at
> java.util.concurrent.CompletableFuture.completeThrowable(CompletableFuture.java:308)
> &nbsp; &nbsp; &nbsp; &nbsp; at
> java.util.concurrent.CompletableFuture.uniApply(CompletableFuture.java:593)
> &nbsp; &nbsp; &nbsp; &nbsp; at
> java.util.concurrent.CompletableFuture$UniApply.tryFire(CompletableFuture.java:577)
> &nbsp; &nbsp; &nbsp; &nbsp; at
> java.util.concurrent.CompletableFuture.postComplete(CompletableFuture.java:474)
> &nbsp; &nbsp; &nbsp; &nbsp; at
> java.util.concurrent.CompletableFuture.completeExceptionally(CompletableFuture.java:1977)
> &nbsp; &nbsp; &nbsp; &nbsp; at
> org.apache.flink.runtime.checkpoint.CheckpointCoordinator.lambda$null$1(CheckpointCoordinator.java:457)
> &nbsp; &nbsp; &nbsp; &nbsp; at
> java.util.concurrent.CompletableFuture.uniWhenComplete(CompletableFuture.java:760)
> &nbsp; &nbsp; &nbsp; &nbsp; at
> java.util.concurrent.CompletableFuture$UniWhenComplete.tryFire(CompletableFuture.java:736)
> &nbsp; &nbsp; &nbsp; &nbsp; at
> java.util.concurrent.CompletableFuture.postComplete(CompletableFuture.java:474)
> &nbsp; &nbsp; &nbsp; &nbsp; at
> java.util.concurrent.CompletableFuture.completeExceptionally(CompletableFuture.java:1977)
> &nbsp; &nbsp; &nbsp; &nbsp; at
> org.apache.flink.runtime.checkpoint.PendingCheckpoint.abort(PendingCheckpoint.java:429)
> &nbsp; &nbsp; &nbsp; &nbsp; at
> org.apache.flink.runtime.checkpoint.CheckpointCoordinator.failPendingCheckpoint(CheckpointCoordinator.java:1445)
> &nbsp; &nbsp; &nbsp; &nbsp; at
> org.apache.flink.runtime.checkpoint.CheckpointCoordinator.failPendingCheckpoint(CheckpointCoordinator.java:1436)
> &nbsp; &nbsp; &nbsp; &nbsp; at
> org.apache.flink.runtime.checkpoint.CheckpointCoordinator.abortPendingCheckpoints(CheckpointCoordinator.java:1266)
> &nbsp; &nbsp; &nbsp; &nbsp; at
> org.apache.flink.runtime.checkpoint.CheckpointCoordinator.stopCheckpointScheduler(CheckpointCoordinator.java:1253)
> &nbsp; &nbsp; &nbsp; &nbsp; at
> org.apache.flink.runtime.checkpoint.CheckpointCoordinatorDeActivator.jobStatusChanges(CheckpointCoordinatorDeActivator.java:46)
> &nbsp; &nbsp; &nbsp; &nbsp; at
> org.apache.flink.runtime.executiongraph.ExecutionGraph.notifyJobStatusChange(ExecutionGraph.java:1654)
> &nbsp; &nbsp; &nbsp; &nbsp; at
> org.apache.flink.runtime.executiongraph.ExecutionGraph.transitionState(ExecutionGraph.java:1236)
> &nbsp; &nbsp; &nbsp; &nbsp; at
> org.apache.flink.runtime.executiongraph.ExecutionGraph.transitionState(ExecutionGraph.java:1214)
> &nbsp; &nbsp; &nbsp; &nbsp; at
> org.apache.flink.runtime.scheduler.SchedulerBase.transitionExecutionGraphState(SchedulerBase.java:421)
> &nbsp; &nbsp; &nbsp; &nbsp; at
> org.apache.flink.runtime.scheduler.DefaultScheduler.addVerticesToRestartPending(DefaultScheduler.java:232)
> &nbsp; &nbsp; &nbsp; &nbsp; at
> org.apache.flink.runtime.scheduler.DefaultScheduler.restartTasksWithDelay(DefaultScheduler.java:219)
> &nbsp; &nbsp; &nbsp; &nbsp; at
> org.apache.flink.runtime.scheduler.DefaultScheduler.maybeRestartTasks(DefaultScheduler.java:207)
> &nbsp; &nbsp; &nbsp; &nbsp; at
> org.apache.flink.runtime.scheduler.DefaultScheduler.handleTaskFailure(DefaultScheduler.java:193)
> &nbsp; &nbsp; &nbsp; &nbsp; at
> org.apache.flink.runtime.scheduler.DefaultScheduler.maybeHandleTaskFailure(DefaultScheduler.java:186)
> &nbsp; &nbsp; &nbsp; &nbsp; at
> org.apache.flink.runtime.scheduler.DefaultScheduler.updateTaskExecutionStateInternal(DefaultScheduler.java:180)
> &nbsp; &nbsp; &nbsp; &nbsp; at
> org.apache.flink.runtime.scheduler.SchedulerBase.updateTaskExecutionState(SchedulerBase.java:484)
> &nbsp; &nbsp; &nbsp; &nbsp; at
> org.apache.flink.runtime.scheduler.UpdateSchedulerNgOnInternalFailuresListener.notifyTaskFailure(UpdateSchedulerNgOnInternalFailuresListener.java:49)
> &nbsp; &nbsp; &nbsp; &nbsp; at
> org.apache.flink.runtime.executiongraph.ExecutionGraph.notifySchedulerNgAboutInternalTaskFailure(ExecutionGraph.java:1703)
> &nbsp; &nbsp; &nbsp; &nbsp; at
> org.apache.flink.runtime.executiongraph.Execution.processFail(Execution.java:1252)
> &nbsp; &nbsp; &nbsp; &nbsp; at
> org.apache.flink.runtime.executiongraph.Execution.processFail(Execution.java:1220)
> &nbsp; &nbsp; &nbsp; &nbsp; at
> org.apache.flink.runtime.executiongraph.Execution.fail(Execution.java:955)
> &nbsp; &nbsp; &nbsp; &nbsp; at
> org.apache.flink.runtime.jobmaster.slotpool.SingleLogicalSlot.signalPayloadRelease(SingleLogicalSlot.java:173)
> &nbsp; &nbsp; &nbsp; &nbsp; at
> org.apache.flink.runtime.jobmaster.slotpool.SingleLogicalSlot.release(SingleLogicalSlot.java:165)
> &nbsp; &nbsp; &nbsp; &nbsp; at
> org.apache.flink.runtime.jobmaster.slotpool.SlotSharingManager$SingleTaskSlot.release(SlotSharingManager.java:732)
> &nbsp; &nbsp; &nbsp; &nbsp; at
> org.apache.flink.runtime.jobmaster.slotpool.SlotSharingManager$MultiTaskSlot.release(SlotSharingManager.java:537)
> &nbsp; &nbsp; &nbsp; &nbsp; at
> org.apache.flink.runtime.jobmaster.slotpool.AllocatedSlot.releasePayload(AllocatedSlot.java:149)
> &nbsp; &nbsp; &nbsp; &nbsp; at
> org.apache.flink.runtime.jobmaster.slotpool.SlotPoolImpl.tryFailingAllocatedSlot(SlotPoolImpl.java:730)
> &nbsp; &nbsp; &nbsp; &nbsp; at
> org.apache.flink.runtime.jobmaster.slotpool.SlotPoolImpl.failAllocation(SlotPoolImpl.java:710)
> &nbsp; &nbsp; &nbsp; &nbsp; at
> org.apache.flink.runtime.jobmaster.JobMaster.internalFailAllocation(JobMaster.java:541)
> &nbsp; &nbsp; &nbsp; &nbsp; at
> org.apache.flink.runtime.jobmaster.JobMaster.notifyAllocationFailure(JobMaster.java:667)
> &nbsp; &nbsp; &nbsp; &nbsp; at
> sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> &nbsp; &nbsp; &nbsp; &nbsp; at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
> &nbsp; &nbsp; &nbsp; &nbsp; at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
> &nbsp; &nbsp; &nbsp; &nbsp; at
> java.lang.reflect.Method.invoke(Method.java:498)
> &nbsp; &nbsp; &nbsp; &nbsp; at
> org.apache.flink.runtime.rpc.akka.AkkaRpcActor.handleRpcInvocation(AkkaRpcActor.java:274)
> &nbsp; &nbsp; &nbsp; &nbsp; at
> org.apache.flink.runtime.rpc.akka.AkkaRpcActor.handleRpcMessage(AkkaRpcActor.java:194)
> &nbsp; &nbsp; &nbsp; &nbsp; ... 20 more
> Caused by: org.apache.flink.runtime.checkpoint.CheckpointException:
> Checkpoint Coordinator is suspending.
> &nbsp; &nbsp; &nbsp; &nbsp; at
> org.apache.flink.runtime.checkpoint.PendingCheckpoint.abort(PendingCheckpoint.java:428)
> &nbsp; &nbsp; &nbsp; &nbsp; ... 56 more
>
>
>
> Best,
> Taylor
Reply | Threaded
Open this post in threaded view
|

Re:几十G状态数据时,savepoint失败

hailongwang
In reply to this post by 廖辉轩



Hi,
  可以观察下 savepoint 失败之前最近的 checkpoint 是否也是失败的,如果也是失败的,应该就是任务本身目前处于亚健康情况。


Best,
Hailong Wang




At 2020-10-21 13:09:45, "廖辉轩" <[hidden email]> wrote:

>Hi,all
>
>当数据到达50G左右时,savepoint总是失败。初步分析是执行savepoint时,内存溢出导致task挂掉,然后task重启。
>
>
>background:
>flink version:1.10.0
>flink on yarn:Total Task Slots8
>Task Managers8,5G memory
>
>
>
>
>backend:rocksdb,Increment
>checkpoint:3 min
>
>
>Container Error:
>container_1596184446716_365651_01_000009 because: Container [pid=104949,containerID=container_1596184446716_365651_01_000009] is running beyond physical memory limits. Current usage: 5.3 GB of 5 GB physical memory used; 7.4 GB of 10.5 GB virtual memory used. Killing container.
>Dump of the process-tree for container_1596184446716_365651_01_000009 :
>
>
>
>===================
>Command:
>
>
>flink savepoint 389923a0198dd74f5e1bc9e968258dba -yid application_1596184446716_365651
>
>
>Error:
>
>
>org.apache.flink.util.FlinkException: Triggering a savepoint for the job 389923a0198dd74f5e1bc9e968258dba failed.
>&nbsp; &nbsp; &nbsp; &nbsp; at org.apache.flink.client.cli.CliFrontend.triggerSavepoint(CliFrontend.java:633)
>&nbsp; &nbsp; &nbsp; &nbsp; at org.apache.flink.client.cli.CliFrontend.lambda$savepoint$9(CliFrontend.java:611)
>&nbsp; &nbsp; &nbsp; &nbsp; at org.apache.flink.client.cli.CliFrontend.runClusterAction(CliFrontend.java:843)
>&nbsp; &nbsp; &nbsp; &nbsp; at org.apache.flink.client.cli.CliFrontend.savepoint(CliFrontend.java:608)
>&nbsp; &nbsp; &nbsp; &nbsp; at org.apache.flink.client.cli.CliFrontend.parseParameters(CliFrontend.java:910)
>&nbsp; &nbsp; &nbsp; &nbsp; at org.apache.flink.client.cli.CliFrontend.lambda$main$10(CliFrontend.java:968)
>&nbsp; &nbsp; &nbsp; &nbsp; at java.security.AccessController.doPrivileged(Native Method)
>&nbsp; &nbsp; &nbsp; &nbsp; at javax.security.auth.Subject.doAs(Subject.java:422)
>&nbsp; &nbsp; &nbsp; &nbsp; at org.apache.hadoop.security.UserGroupInformation.doAs(UserGroupInformation.java:1692)
>&nbsp; &nbsp; &nbsp; &nbsp; at org.apache.flink.runtime.security.HadoopSecurityContext.runSecured(HadoopSecurityContext.java:41)
>&nbsp; &nbsp; &nbsp; &nbsp; at org.apache.flink.client.cli.CliFrontend.main(CliFrontend.java:968)
>Caused by: java.util.concurrent.CompletionException: java.util.concurrent.CompletionException: org.apache.flink.runtime.checkpoint.CheckpointException: Checkpoint Coordinator is suspending.
>&nbsp; &nbsp; &nbsp; &nbsp; at org.apache.flink.runtime.scheduler.SchedulerBase.lambda$triggerSavepoint$3(SchedulerBase.java:744)
>&nbsp; &nbsp; &nbsp; &nbsp; at java.util.concurrent.CompletableFuture.uniHandle(CompletableFuture.java:822)
>&nbsp; &nbsp; &nbsp; &nbsp; at java.util.concurrent.CompletableFuture$UniHandle.tryFire(CompletableFuture.java:797)
>&nbsp; &nbsp; &nbsp; &nbsp; at java.util.concurrent.CompletableFuture$Completion.run(CompletableFuture.java:442)
>&nbsp; &nbsp; &nbsp; &nbsp; at org.apache.flink.runtime.rpc.akka.AkkaRpcActor.handleRunAsync(AkkaRpcActor.java:397)
>&nbsp; &nbsp; &nbsp; &nbsp; at org.apache.flink.runtime.rpc.akka.AkkaRpcActor.handleRpcMessage(AkkaRpcActor.java:190)
>&nbsp; &nbsp; &nbsp; &nbsp; at org.apache.flink.runtime.rpc.akka.FencedAkkaRpcActor.handleRpcMessage(FencedAkkaRpcActor.java:74)
>&nbsp; &nbsp; &nbsp; &nbsp; at org.apache.flink.runtime.rpc.akka.AkkaRpcActor.handleMessage(AkkaRpcActor.java:152)
>&nbsp; &nbsp; &nbsp; &nbsp; at akka.japi.pf.UnitCaseStatement.apply(CaseStatements.scala:26)
>&nbsp; &nbsp; &nbsp; &nbsp; at akka.japi.pf.UnitCaseStatement.apply(CaseStatements.scala:21)
>&nbsp; &nbsp; &nbsp; &nbsp; at scala.PartialFunction$class.applyOrElse(PartialFunction.scala:123)
>&nbsp; &nbsp; &nbsp; &nbsp; at akka.japi.pf.UnitCaseStatement.applyOrElse(CaseStatements.scala:21)
>&nbsp; &nbsp; &nbsp; &nbsp; at scala.PartialFunction$OrElse.applyOrElse(PartialFunction.scala:170)
>&nbsp; &nbsp; &nbsp; &nbsp; at scala.PartialFunction$OrElse.applyOrElse(PartialFunction.scala:171)
>&nbsp; &nbsp; &nbsp; &nbsp; at scala.PartialFunction$OrElse.applyOrElse(PartialFunction.scala:171)
>&nbsp; &nbsp; &nbsp; &nbsp; at akka.actor.Actor$class.aroundReceive(Actor.scala:517)
>&nbsp; &nbsp; &nbsp; &nbsp; at akka.actor.AbstractActor.aroundReceive(AbstractActor.scala:225)
>&nbsp; &nbsp; &nbsp; &nbsp; at akka.actor.ActorCell.receiveMessage(ActorCell.scala:592)
>&nbsp; &nbsp; &nbsp; &nbsp; at akka.actor.ActorCell.invoke(ActorCell.scala:561)
>&nbsp; &nbsp; &nbsp; &nbsp; at akka.dispatch.Mailbox.processMailbox(Mailbox.scala:258)
>&nbsp; &nbsp; &nbsp; &nbsp; at akka.dispatch.Mailbox.run(Mailbox.scala:225)
>&nbsp; &nbsp; &nbsp; &nbsp; at akka.dispatch.Mailbox.exec(Mailbox.scala:235)
>&nbsp; &nbsp; &nbsp; &nbsp; at akka.dispatch.forkjoin.ForkJoinTask.doExec(ForkJoinTask.java:260)
>&nbsp; &nbsp; &nbsp; &nbsp; at akka.dispatch.forkjoin.ForkJoinPool$WorkQueue.runTask(ForkJoinPool.java:1339)
>&nbsp; &nbsp; &nbsp; &nbsp; at akka.dispatch.forkjoin.ForkJoinPool.runWorker(ForkJoinPool.java:1979)
>&nbsp; &nbsp; &nbsp; &nbsp; at akka.dispatch.forkjoin.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:107)
>Caused by: java.util.concurrent.CompletionException: org.apache.flink.runtime.checkpoint.CheckpointException: Checkpoint Coordinator is suspending.
>&nbsp; &nbsp; &nbsp; &nbsp; at java.util.concurrent.CompletableFuture.encodeThrowable(CompletableFuture.java:292)
>&nbsp; &nbsp; &nbsp; &nbsp; at java.util.concurrent.CompletableFuture.completeThrowable(CompletableFuture.java:308)
>&nbsp; &nbsp; &nbsp; &nbsp; at java.util.concurrent.CompletableFuture.uniApply(CompletableFuture.java:593)
>&nbsp; &nbsp; &nbsp; &nbsp; at java.util.concurrent.CompletableFuture$UniApply.tryFire(CompletableFuture.java:577)
>&nbsp; &nbsp; &nbsp; &nbsp; at java.util.concurrent.CompletableFuture.postComplete(CompletableFuture.java:474)
>&nbsp; &nbsp; &nbsp; &nbsp; at java.util.concurrent.CompletableFuture.completeExceptionally(CompletableFuture.java:1977)
>&nbsp; &nbsp; &nbsp; &nbsp; at org.apache.flink.runtime.checkpoint.CheckpointCoordinator.lambda$null$1(CheckpointCoordinator.java:457)
>&nbsp; &nbsp; &nbsp; &nbsp; at java.util.concurrent.CompletableFuture.uniWhenComplete(CompletableFuture.java:760)
>&nbsp; &nbsp; &nbsp; &nbsp; at java.util.concurrent.CompletableFuture$UniWhenComplete.tryFire(CompletableFuture.java:736)
>&nbsp; &nbsp; &nbsp; &nbsp; at java.util.concurrent.CompletableFuture.postComplete(CompletableFuture.java:474)
>&nbsp; &nbsp; &nbsp; &nbsp; at java.util.concurrent.CompletableFuture.completeExceptionally(CompletableFuture.java:1977)
>&nbsp; &nbsp; &nbsp; &nbsp; at org.apache.flink.runtime.checkpoint.PendingCheckpoint.abort(PendingCheckpoint.java:429)
>&nbsp; &nbsp; &nbsp; &nbsp; at org.apache.flink.runtime.checkpoint.CheckpointCoordinator.failPendingCheckpoint(CheckpointCoordinator.java:1445)
>&nbsp; &nbsp; &nbsp; &nbsp; at org.apache.flink.runtime.checkpoint.CheckpointCoordinator.failPendingCheckpoint(CheckpointCoordinator.java:1436)
>&nbsp; &nbsp; &nbsp; &nbsp; at org.apache.flink.runtime.checkpoint.CheckpointCoordinator.abortPendingCheckpoints(CheckpointCoordinator.java:1266)
>&nbsp; &nbsp; &nbsp; &nbsp; at org.apache.flink.runtime.checkpoint.CheckpointCoordinator.stopCheckpointScheduler(CheckpointCoordinator.java:1253)
>&nbsp; &nbsp; &nbsp; &nbsp; at org.apache.flink.runtime.checkpoint.CheckpointCoordinatorDeActivator.jobStatusChanges(CheckpointCoordinatorDeActivator.java:46)
>&nbsp; &nbsp; &nbsp; &nbsp; at org.apache.flink.runtime.executiongraph.ExecutionGraph.notifyJobStatusChange(ExecutionGraph.java:1654)
>&nbsp; &nbsp; &nbsp; &nbsp; at org.apache.flink.runtime.executiongraph.ExecutionGraph.transitionState(ExecutionGraph.java:1236)
>&nbsp; &nbsp; &nbsp; &nbsp; at org.apache.flink.runtime.executiongraph.ExecutionGraph.transitionState(ExecutionGraph.java:1214)
>&nbsp; &nbsp; &nbsp; &nbsp; at org.apache.flink.runtime.scheduler.SchedulerBase.transitionExecutionGraphState(SchedulerBase.java:421)
>&nbsp; &nbsp; &nbsp; &nbsp; at org.apache.flink.runtime.scheduler.DefaultScheduler.addVerticesToRestartPending(DefaultScheduler.java:232)
>&nbsp; &nbsp; &nbsp; &nbsp; at org.apache.flink.runtime.scheduler.DefaultScheduler.restartTasksWithDelay(DefaultScheduler.java:219)
>&nbsp; &nbsp; &nbsp; &nbsp; at org.apache.flink.runtime.scheduler.DefaultScheduler.maybeRestartTasks(DefaultScheduler.java:207)
>&nbsp; &nbsp; &nbsp; &nbsp; at org.apache.flink.runtime.scheduler.DefaultScheduler.handleTaskFailure(DefaultScheduler.java:193)
>&nbsp; &nbsp; &nbsp; &nbsp; at org.apache.flink.runtime.scheduler.DefaultScheduler.maybeHandleTaskFailure(DefaultScheduler.java:186)
>&nbsp; &nbsp; &nbsp; &nbsp; at org.apache.flink.runtime.scheduler.DefaultScheduler.updateTaskExecutionStateInternal(DefaultScheduler.java:180)
>&nbsp; &nbsp; &nbsp; &nbsp; at org.apache.flink.runtime.scheduler.SchedulerBase.updateTaskExecutionState(SchedulerBase.java:484)
>&nbsp; &nbsp; &nbsp; &nbsp; at org.apache.flink.runtime.scheduler.UpdateSchedulerNgOnInternalFailuresListener.notifyTaskFailure(UpdateSchedulerNgOnInternalFailuresListener.java:49)
>&nbsp; &nbsp; &nbsp; &nbsp; at org.apache.flink.runtime.executiongraph.ExecutionGraph.notifySchedulerNgAboutInternalTaskFailure(ExecutionGraph.java:1703)
>&nbsp; &nbsp; &nbsp; &nbsp; at org.apache.flink.runtime.executiongraph.Execution.processFail(Execution.java:1252)
>&nbsp; &nbsp; &nbsp; &nbsp; at org.apache.flink.runtime.executiongraph.Execution.processFail(Execution.java:1220)
>&nbsp; &nbsp; &nbsp; &nbsp; at org.apache.flink.runtime.executiongraph.Execution.fail(Execution.java:955)
>&nbsp; &nbsp; &nbsp; &nbsp; at org.apache.flink.runtime.jobmaster.slotpool.SingleLogicalSlot.signalPayloadRelease(SingleLogicalSlot.java:173)
>&nbsp; &nbsp; &nbsp; &nbsp; at org.apache.flink.runtime.jobmaster.slotpool.SingleLogicalSlot.release(SingleLogicalSlot.java:165)
>&nbsp; &nbsp; &nbsp; &nbsp; at org.apache.flink.runtime.jobmaster.slotpool.SlotSharingManager$SingleTaskSlot.release(SlotSharingManager.java:732)
>&nbsp; &nbsp; &nbsp; &nbsp; at org.apache.flink.runtime.jobmaster.slotpool.SlotSharingManager$MultiTaskSlot.release(SlotSharingManager.java:537)
>&nbsp; &nbsp; &nbsp; &nbsp; at org.apache.flink.runtime.jobmaster.slotpool.AllocatedSlot.releasePayload(AllocatedSlot.java:149)
>&nbsp; &nbsp; &nbsp; &nbsp; at org.apache.flink.runtime.jobmaster.slotpool.SlotPoolImpl.tryFailingAllocatedSlot(SlotPoolImpl.java:730)
>&nbsp; &nbsp; &nbsp; &nbsp; at org.apache.flink.runtime.jobmaster.slotpool.SlotPoolImpl.failAllocation(SlotPoolImpl.java:710)
>&nbsp; &nbsp; &nbsp; &nbsp; at org.apache.flink.runtime.jobmaster.JobMaster.internalFailAllocation(JobMaster.java:541)
>&nbsp; &nbsp; &nbsp; &nbsp; at org.apache.flink.runtime.jobmaster.JobMaster.notifyAllocationFailure(JobMaster.java:667)
>&nbsp; &nbsp; &nbsp; &nbsp; at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>&nbsp; &nbsp; &nbsp; &nbsp; at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
>&nbsp; &nbsp; &nbsp; &nbsp; at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>&nbsp; &nbsp; &nbsp; &nbsp; at java.lang.reflect.Method.invoke(Method.java:498)
>&nbsp; &nbsp; &nbsp; &nbsp; at org.apache.flink.runtime.rpc.akka.AkkaRpcActor.handleRpcInvocation(AkkaRpcActor.java:274)
>&nbsp; &nbsp; &nbsp; &nbsp; at org.apache.flink.runtime.rpc.akka.AkkaRpcActor.handleRpcMessage(AkkaRpcActor.java:194)
>&nbsp; &nbsp; &nbsp; &nbsp; ... 20 more
>Caused by: org.apache.flink.runtime.checkpoint.CheckpointException: Checkpoint Coordinator is suspending.
>&nbsp; &nbsp; &nbsp; &nbsp; at org.apache.flink.runtime.checkpoint.PendingCheckpoint.abort(PendingCheckpoint.java:428)
>&nbsp; &nbsp; &nbsp; &nbsp; ... 56 more
>
>
>
>Best,
>Taylor