Uploaded image for project: 'Spark'
  1. Spark
  2. SPARK-16533

Spark application not handling preemption messages



    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 1.6.0
    • Fix Version/s: 2.0.1, 2.1.0
    • Labels:
    • Environment:


      Here is the scenario:
      I launch job 1 into Q1 and allow it to grow to 100% cluster utilization.
      I wait between 15-30 mins ( for this job to complete with 100% of the cluster available takes about 1hr so job 1 is between 25-50% complete). Note that if I wait less time then the issue sometimes does not occur, it appears to be only after the job 1 is at least 25% complete.
      I launch job 2 into Q2 and preemption occurs on the Q1 shrinking the job to allow 70% of cluster utilization.
      At this point job 1 basically halts progress while job 2 continues to execute as normal and finishes. Job 2 either:

      • Fails its attempt and restarts. By the time this attempt fails the other job is already complete meaning the second attempt has full cluster availability and finishes.
      • The job remains at its current progress and simply does not finish ( I have waited ~6 hrs until finally killing the application ).

      Looking into the error log there is this constant error message:
      WARN NettyRpcEndpointRef: Error sending message [message = RemoveExecutor(454,Container container_1468422920649_0001_01_000594 on host: ip-NUMBERS.ec2.internal was preempted.)] in X attempts

      My observations have led me to believe that the application master does not know about this container being killed and continuously asks the container to remove the executor until eventually failing the attempt or continue trying to remove the executor.

      I have done much digging online for anyone else experiencing this issue but have come up with nothing.


          Issue Links



              • Assignee:
                angolon@gmail.com Angus Gerry
                LucasW Lucas Winkelmann
              • Votes:
                2 Vote for this issue
                12 Start watching this issue


                • Created: