mesos-reviews mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Benjamin Mahler <>
Subject Review Request 61445: Fixed a bug in the agent where a kill task is dropped.
Date Sat, 05 Aug 2017 02:55:06 GMT

This is an automatically generated e-mail. To reply, visit:

Review request for mesos, Anand Mazumdar and Vinod Kone.

Bugs: MESOS-7863

Repository: mesos


Currently there is an assumption that when a pending task is killed,
the framework will still be stored in the agent. However, this
assumption can be violated in two cases:

  (1) Another pending task was killed and we removed the framework
      in 'Slave::run' thinking it was idle, because pending tasks
      were empty (we remove from pending tasks when processing the

  (2) The last executor terminated without tasks to send terminal
      updates for, or the last terminated executor received its
      last acknowledgement. At this point, we remove the framework
      thinking there were no pending tasks if the task was killed
      (removed from pending).

The fix is to leave tasks as pending but mark that they have been
killed. This fixes both cases.


  src/slave/slave.hpp 1fe93dab1b2bef24721cc1bcffebe1b259e96d79 
  src/slave/slave.cpp 7381530515f86faf4c3e8f82bcd9483f6cf0498b 



make check, added a test in the subsequent patch


Benjamin Mahler

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message