[1/2] mesos git commit: Made `UriDiskProfileAdaptor` be able to update profile selectors.

2018-05-11 Thread chhsiao
Repository: mesos
Updated Branches:
  refs/heads/1.5.x 1b27db1c4 -> 0f426a7a2


Made `UriDiskProfileAdaptor` be able to update profile selectors.

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


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

Branch: refs/heads/1.5.x
Commit: 7393803902d3aff12801d93136a3e802f8d86834
Parents: 1b27db1
Author: Chun-Hung Hsiao 
Authored: Thu May 10 20:27:24 2018 -0700
Committer: Chun-Hung Hsiao 
Committed: Fri May 11 15:36:46 2018 -0700

--
 src/resource_provider/storage/uri_disk_profile.cpp | 7 ++-
 1 file changed, 2 insertions(+), 5 deletions(-)
--


http://git-wip-us.apache.org/repos/asf/mesos/blob/73938039/src/resource_provider/storage/uri_disk_profile.cpp
--
diff --git a/src/resource_provider/storage/uri_disk_profile.cpp 
b/src/resource_provider/storage/uri_disk_profile.cpp
index 665798f..459ee6c 100644
--- a/src/resource_provider/storage/uri_disk_profile.cpp
+++ b/src/resource_provider/storage/uri_disk_profile.cpp
@@ -279,11 +279,8 @@ void UriDiskProfileAdaptorProcess::notify(
 return;
   }
 
-  // Profiles can only be added, so if the parsed data is the same size,
-  // nothing has changed and no notifications need to be sent.
-  if (parsed.profile_matrix().size() <= profileMatrix.size()) {
-return;
-  }
+  // TODO(chhsiao): No need to update the profile matrix and send notifications
+  // if the parsed mapping has the same size and profile selectors.
 
   // The fetched mapping satisfies our invariants.
 



mesos git commit: Made `UriDiskProfileAdaptor` be able to update profile selectors.

2018-05-11 Thread chhsiao
Repository: mesos
Updated Branches:
  refs/heads/1.6.x 71d466396 -> 89ee7df74


Made `UriDiskProfileAdaptor` be able to update profile selectors.

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


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

Branch: refs/heads/1.6.x
Commit: 89ee7df7415694ee56ec93b6c7bd3a579c005641
Parents: 71d4663
Author: Chun-Hung Hsiao 
Authored: Thu May 10 20:27:24 2018 -0700
Committer: Chun-Hung Hsiao 
Committed: Fri May 11 15:26:54 2018 -0700

--
 src/resource_provider/storage/uri_disk_profile_adaptor.cpp | 7 ++-
 1 file changed, 2 insertions(+), 5 deletions(-)
--


http://git-wip-us.apache.org/repos/asf/mesos/blob/89ee7df7/src/resource_provider/storage/uri_disk_profile_adaptor.cpp
--
diff --git a/src/resource_provider/storage/uri_disk_profile_adaptor.cpp 
b/src/resource_provider/storage/uri_disk_profile_adaptor.cpp
index 300ea12..614590e 100644
--- a/src/resource_provider/storage/uri_disk_profile_adaptor.cpp
+++ b/src/resource_provider/storage/uri_disk_profile_adaptor.cpp
@@ -278,11 +278,8 @@ void UriDiskProfileAdaptorProcess::notify(
 return;
   }
 
-  // Profiles can only be added, so if the parsed data is the same size,
-  // nothing has changed and no notifications need to be sent.
-  if (parsed.profile_matrix().size() <= profileMatrix.size()) {
-return;
-  }
+  // TODO(chhsiao): No need to update the profile matrix and send notifications
+  // if the parsed mapping has the same size and profile selectors.
 
   // The fetched mapping satisfies our invariants.
 



mesos git commit: Made `UriDiskProfileAdaptor` be able to update profile selectors.

2018-05-11 Thread chhsiao
Repository: mesos
Updated Branches:
  refs/heads/master d0de83382 -> 5e740063d


Made `UriDiskProfileAdaptor` be able to update profile selectors.

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


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

Branch: refs/heads/master
Commit: 5e740063d433b8f2b89ca43a4d3e93dfbdeb6d8f
Parents: d0de833
Author: Chun-Hung Hsiao 
Authored: Thu May 10 20:27:24 2018 -0700
Committer: Chun-Hung Hsiao 
Committed: Fri May 11 14:34:26 2018 -0700

--
 src/resource_provider/storage/uri_disk_profile_adaptor.cpp | 7 ++-
 1 file changed, 2 insertions(+), 5 deletions(-)
--


http://git-wip-us.apache.org/repos/asf/mesos/blob/5e740063/src/resource_provider/storage/uri_disk_profile_adaptor.cpp
--
diff --git a/src/resource_provider/storage/uri_disk_profile_adaptor.cpp 
b/src/resource_provider/storage/uri_disk_profile_adaptor.cpp
index 300ea12..614590e 100644
--- a/src/resource_provider/storage/uri_disk_profile_adaptor.cpp
+++ b/src/resource_provider/storage/uri_disk_profile_adaptor.cpp
@@ -278,11 +278,8 @@ void UriDiskProfileAdaptorProcess::notify(
 return;
   }
 
-  // Profiles can only be added, so if the parsed data is the same size,
-  // nothing has changed and no notifications need to be sent.
-  if (parsed.profile_matrix().size() <= profileMatrix.size()) {
-return;
-  }
+  // TODO(chhsiao): No need to update the profile matrix and send notifications
+  // if the parsed mapping has the same size and profile selectors.
 
   // The fetched mapping satisfies our invariants.