Repository: mesos
Updated Branches:
  refs/heads/1.5.x 5602cd2d0 -> b0ef216b4


Avoid duplicate unmount dangling mount point.

We could potentially schedule the framework dir, executor dir, and
executor run sandbox to gc at the same time, and then these
paths will be gc independently, although they are parents and
children directories. This patch makes sure we do not call unmount
anymore after a success.

Review: https://reviews.apache.org/r/67822


Project: http://git-wip-us.apache.org/repos/asf/mesos/repo
Commit: http://git-wip-us.apache.org/repos/asf/mesos/commit/3890a46f
Tree: http://git-wip-us.apache.org/repos/asf/mesos/tree/3890a46f
Diff: http://git-wip-us.apache.org/repos/asf/mesos/diff/3890a46f

Branch: refs/heads/1.5.x
Commit: 3890a46f3976d989fa037e7c8e3076573766bd6c
Parents: 5602cd2
Author: Zhitao Li <[email protected]>
Authored: Tue Jul 3 14:46:58 2018 -0700
Committer: Zhitao Li <[email protected]>
Committed: Tue Jul 3 16:12:35 2018 -0700

----------------------------------------------------------------------
 src/slave/gc.cpp | 2 ++
 1 file changed, 2 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/mesos/blob/3890a46f/src/slave/gc.cpp
----------------------------------------------------------------------
diff --git a/src/slave/gc.cpp b/src/slave/gc.cpp
index 407f6b2..450bbef 100644
--- a/src/slave/gc.cpp
+++ b/src/slave/gc.cpp
@@ -253,6 +253,8 @@ void GarbageCollectorProcess::remove(const Timeout& 
removalTime)
               ++failed;
               it = infos.erase(it);
               continue;
+            } else {
+              break;
             }
           }
 

Reply via email to