Repository: mesos
Updated Branches:
  refs/heads/1.0.x 6174d018e -> 0ab140bac


Added more detailed error message when failing in MountInfoTable::read.

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


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

Branch: refs/heads/1.0.x
Commit: ac3d9b8f3011ea4314600eee234c775f9a8252cc
Parents: 6174d01
Author: Kevin Klues <klue...@gmail.com>
Authored: Wed Oct 12 22:33:51 2016 -0700
Committer: Jie Yu <yujie....@gmail.com>
Committed: Wed Oct 12 22:46:35 2016 -0700

----------------------------------------------------------------------
 src/linux/fs.cpp | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/mesos/blob/ac3d9b8f/src/linux/fs.cpp
----------------------------------------------------------------------
diff --git a/src/linux/fs.cpp b/src/linux/fs.cpp
index 0d025d3..d4f2ac2 100644
--- a/src/linux/fs.cpp
+++ b/src/linux/fs.cpp
@@ -137,7 +137,10 @@ Try<MountInfoTable> MountInfoTable::read(
     vector<MountInfoTable::Entry> sortedEntries;
 
     std::function<void(int)> sortFrom = [&](int parentId) {
-      CHECK(!visitedParents.contains(parentId));
+      CHECK(!visitedParents.contains(parentId))
+        << "Cycle found in mount table hierarchy at entry"
+        << " '" << stringify(parentId) << "': " << std::endl << lines.get();
+
       visitedParents.insert(parentId);
 
       foreach (const MountInfoTable::Entry& entry, parentToChildren[parentId]) 
{

Reply via email to