Uploaded image for project: 'Flink'
  1. Flink
  2. FLINK-32739

restarting not work

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Not A Problem
    • 1.14.5
    • None
    • API / Core
    • None

    Description

      In my flink standalone cluster, I config 2 taskmanagers. Then I test with following steps:

      1. submit streaming job which was configed to fixed restart strategy to flink session environment
      2. this job was running on taskmanager1. Then I killed the taskmanager1.
      3. this job turned to be failed after restarting attemps.

      this job could not be transported to taskmanager2 which had enough slots as expected.

      Here's the exception trace:

      2023-08-03 15:13:56
      org.apache.flink.runtime.JobException: Recovery is suppressed by FixedDelayRestartBackoffTimeStrategy(maxNumberRestartAttempts=3, backoffTimeMS=10000)
          at org.apache.flink.runtime.executiongraph.failover.flip1.ExecutionFailureHandler.handleFailure(ExecutionFailureHandler.java:138)
          at org.apache.flink.runtime.executiongraph.failover.flip1.ExecutionFailureHandler.getFailureHandlingResult(ExecutionFailureHandler.java:82)
          at org.apache.flink.runtime.scheduler.DefaultScheduler.handleTaskFailure(DefaultScheduler.java:252)
          at org.apache.flink.runtime.scheduler.DefaultScheduler.maybeHandleTaskFailure(DefaultScheduler.java:242)
          at org.apache.flink.runtime.scheduler.DefaultScheduler.updateTaskExecutionStateInternal(DefaultScheduler.java:233)
          at org.apache.flink.runtime.scheduler.SchedulerBase.updateTaskExecutionState(SchedulerBase.java:684)
          at org.apache.flink.runtime.scheduler.UpdateSchedulerNgOnInternalFailuresListener.notifyTaskFailure(UpdateSchedulerNgOnInternalFailuresListener.java:51)
          at org.apache.flink.runtime.executiongraph.DefaultExecutionGraph.notifySchedulerNgAboutInternalTaskFailure(DefaultExecutionGraph.java:1473)
          at org.apache.flink.runtime.executiongraph.Execution.processFail(Execution.java:1133)
          at org.apache.flink.runtime.executiongraph.Execution.processFail(Execution.java:1073)
          at org.apache.flink.runtime.executiongraph.Execution.fail(Execution.java:776)
          at org.apache.flink.runtime.jobmaster.slotpool.SingleLogicalSlot.signalPayloadRelease(SingleLogicalSlot.java:195)
          at org.apache.flink.runtime.jobmaster.slotpool.SingleLogicalSlot.release(SingleLogicalSlot.java:182)
          at org.apache.flink.runtime.scheduler.SharedSlot.lambda$release$4(SharedSlot.java:271)
          at java.util.concurrent.CompletableFuture.uniAccept(CompletableFuture.java:670)
          at java.util.concurrent.CompletableFuture.uniAcceptStage(CompletableFuture.java:683)
          at java.util.concurrent.CompletableFuture.thenAccept(CompletableFuture.java:2010)
          at org.apache.flink.runtime.scheduler.SharedSlot.release(SharedSlot.java:271)
          at org.apache.flink.runtime.jobmaster.slotpool.AllocatedSlot.releasePayload(AllocatedSlot.java:152)
          at org.apache.flink.runtime.jobmaster.slotpool.DefaultDeclarativeSlotPool.releasePayload(DefaultDeclarativeSlotPool.java:419)
          at org.apache.flink.runtime.jobmaster.slotpool.DefaultDeclarativeSlotPool.freeAndReleaseSlots(DefaultDeclarativeSlotPool.java:411)
          at org.apache.flink.runtime.jobmaster.slotpool.DefaultDeclarativeSlotPool.releaseSlots(DefaultDeclarativeSlotPool.java:382)
          at org.apache.flink.runtime.jobmaster.slotpool.DeclarativeSlotPoolService.internalReleaseTaskManager(DeclarativeSlotPoolService.java:249)
          at org.apache.flink.runtime.jobmaster.slotpool.DeclarativeSlotPoolService.releaseTaskManager(DeclarativeSlotPoolService.java:230)
          at org.apache.flink.runtime.jobmaster.JobMaster.disconnectTaskManager(JobMaster.java:506)
          at org.apache.flink.runtime.jobmaster.JobMaster$TaskManagerHeartbeatListener.handleTaskManagerConnectionLoss(JobMaster.java:1348)
          at org.apache.flink.runtime.jobmaster.JobMaster$TaskManagerHeartbeatListener.notifyTargetUnreachable(JobMaster.java:1359)
          at org.apache.flink.runtime.heartbeat.HeartbeatMonitorImpl.reportHeartbeatRpcFailure(HeartbeatMonitorImpl.java:123)
          at org.apache.flink.runtime.heartbeat.HeartbeatManagerImpl.runIfHeartbeatMonitorExists(HeartbeatManagerImpl.java:275)
          at org.apache.flink.runtime.heartbeat.HeartbeatManagerImpl.reportHeartbeatTargetUnreachable(HeartbeatManagerImpl.java:267)
          at org.apache.flink.runtime.heartbeat.HeartbeatManagerImpl.handleHeartbeatRpcFailure(HeartbeatManagerImpl.java:262)
          at org.apache.flink.runtime.heartbeat.HeartbeatManagerImpl.lambda$handleHeartbeatRpc$0(HeartbeatManagerImpl.java:248)
          at java.util.concurrent.CompletableFuture.uniWhenComplete(CompletableFuture.java:774)
          at java.util.concurrent.CompletableFuture$UniWhenComplete.tryFire(CompletableFuture.java:750)
          at java.util.concurrent.CompletableFuture$Completion.run(CompletableFuture.java:456)
          at org.apache.flink.runtime.rpc.akka.AkkaRpcActor.lambda$handleRunAsync$4(AkkaRpcActor.java:455)
          at org.apache.flink.runtime.concurrent.akka.ClassLoadingUtils.runWithContextClassLoader(ClassLoadingUtils.java:68)
          at org.apache.flink.runtime.rpc.akka.AkkaRpcActor.handleRunAsync(AkkaRpcActor.java:455)
          at org.apache.flink.runtime.rpc.akka.AkkaRpcActor.handleRpcMessage(AkkaRpcActor.java:213)
          at org.apache.flink.runtime.rpc.akka.FencedAkkaRpcActor.handleRpcMessage(FencedAkkaRpcActor.java:78)
          at org.apache.flink.runtime.rpc.akka.AkkaRpcActor.handleMessage(AkkaRpcActor.java:163)
          at akka.japi.pf.UnitCaseStatement.apply(CaseStatements.scala:24)
          at akka.japi.pf.UnitCaseStatement.apply(CaseStatements.scala:20)
          at scala.PartialFunction.applyOrElse(PartialFunction.scala:123)
          at scala.PartialFunction.applyOrElse$(PartialFunction.scala:122)
          at akka.japi.pf.UnitCaseStatement.applyOrElse(CaseStatements.scala:20)
          at scala.PartialFunction$OrElse.applyOrElse(PartialFunction.scala:171)
          at scala.PartialFunction$OrElse.applyOrElse(PartialFunction.scala:172)
          at scala.PartialFunction$OrElse.applyOrElse(PartialFunction.scala:172)
          at akka.actor.Actor.aroundReceive(Actor.scala:537)
          at akka.actor.Actor.aroundReceive$(Actor.scala:535)
          at akka.actor.AbstractActor.aroundReceive(AbstractActor.scala:220)
          at akka.actor.ActorCell.receiveMessage(ActorCell.scala:580)
          at akka.actor.ActorCell.invoke(ActorCell.scala:548)
          at akka.dispatch.Mailbox.processMailbox(Mailbox.scala:270)
          at akka.dispatch.Mailbox.run(Mailbox.scala:231)
          at akka.dispatch.Mailbox.exec(Mailbox.scala:243)
          at java.util.concurrent.ForkJoinTask.doExec(ForkJoinTask.java:289)
          at java.util.concurrent.ForkJoinPool$WorkQueue.runTask(ForkJoinPool.java:1067)
          at java.util.concurrent.ForkJoinPool.runWorker(ForkJoinPool.java:1703)
          at java.util.concurrent.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:172)
      Caused by: org.apache.flink.runtime.jobmaster.JobMasterException: TaskManager with id 192.168.0.10:46626-007128 is no longer reachable.
          ... 35 more
       

      Attachments

        1. jobmanager.log
          157 kB
          Spongebob

        Activity

          People

            Unassigned Unassigned
            SpongebobZ Spongebob
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: