You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mesos.apache.org by gi...@apache.org on 2019/01/25 00:00:57 UTC

[mesos] branch 1.4.x updated (fcfe190 -> 115eb88)

This is an automated email from the ASF dual-hosted git repository.

gilbert pushed a change to branch 1.4.x
in repository https://gitbox.apache.org/repos/asf/mesos.git.


    from fcfe190  Removed WIP from 1.4.3 release notes.
     new 48c658a  Fixed flakiness by adding per agent config dir for mesos test.
     new 115eb88  Added MESOS-9532 to 1.4.3 CHANGELOG.

The 2 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.


Summary of changes:
 CHANGELOG           |  1 +
 src/tests/mesos.cpp | 15 +++++++++------
 2 files changed, 10 insertions(+), 6 deletions(-)


[mesos] 02/02: Added MESOS-9532 to 1.4.3 CHANGELOG.

Posted by gi...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

gilbert pushed a commit to branch 1.4.x
in repository https://gitbox.apache.org/repos/asf/mesos.git

commit 115eb88b017c20aa741108fdd1678d04c5a37b7c
Author: Gilbert Song <so...@gmail.com>
AuthorDate: Thu Jan 24 15:48:47 2019 -0800

    Added MESOS-9532 to 1.4.3 CHANGELOG.
---
 CHANGELOG | 1 +
 1 file changed, 1 insertion(+)

diff --git a/CHANGELOG b/CHANGELOG
index d0d2643..bccd1eb 100644
--- a/CHANGELOG
+++ b/CHANGELOG
@@ -27,6 +27,7 @@ Release Notes - Mesos - Version 1.4.3
   * [MESOS-9501] - Mesos executor fails to terminate and gets stuck after agent host reboot.
   * [MESOS-9502] - IOswitchboard cleanup could get stuck due to FD leak from a race.
   * [MESOS-9518] - CNI_NETNS should not be set for orphan containers that do not have network namespace.
+  * [MESOS-9532] - ResourceOffersTest.ResourceOfferWithMultipleSlaves is flaky.
 
 ** Improvement:
   * [MESOS-9510] - Disallowed nan, inf and so on in `Value::Scalar`.


[mesos] 01/02: Fixed flakiness by adding per agent config dir for mesos test.

Posted by gi...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

gilbert pushed a commit to branch 1.4.x
in repository https://gitbox.apache.org/repos/asf/mesos.git

commit 48c658a21869f6fce2aaffedf7bccb3f49d56d37
Author: Gilbert Song <so...@gmail.com>
AuthorDate: Wed Jan 16 14:02:07 2019 -0800

    Fixed flakiness by adding per agent config dir for mesos test.
    
    In mesos tests, there are some cases that multiple agents are
    running simultanuously. From commit 07bccc63, we start to have
    agents share the same config dir in the test sandbox. Unit
    tests that use the same credicial file dir may fail if there
    are agents read and write to the same credential file
    simultanuously. We should set unique dir per agent.
    
    Review: https://reviews.apache.org/r/69776
    (cherry picked from commit 68ee08d1ed1bcb3130937ce503b6c9961687c53b)
---
 src/tests/mesos.cpp | 15 +++++++++------
 1 file changed, 9 insertions(+), 6 deletions(-)

diff --git a/src/tests/mesos.cpp b/src/tests/mesos.cpp
index 654fa70..43f74fe 100644
--- a/src/tests/mesos.cpp
+++ b/src/tests/mesos.cpp
@@ -170,18 +170,21 @@ slave::Flags MesosTest::CreateSlaveFlags()
   CHECK_SOME(runtimeDir) << "Failed to create temporary directory";
   flags.runtime_dir = runtimeDir.get();
 
-  flags.fetcher_cache_dir = path::join(sandbox.get(), "fetch");
+  Try<string> agentDir = os::mkdtemp(path::join(sandbox.get(), "XXXXXX"));
+  CHECK_SOME(agentDir) << "Failed to create temporary directory";
+
+  flags.fetcher_cache_dir = path::join(agentDir.get(), "fetch");
 
   flags.launcher_dir = getLauncherDir();
 
-  flags.appc_store_dir = path::join(sandbox.get(), "store", "appc");
+  flags.appc_store_dir = path::join(agentDir.get(), "store", "appc");
 
-  flags.docker_store_dir = path::join(sandbox.get(), "store", "docker");
+  flags.docker_store_dir = path::join(agentDir.get(), "store", "docker");
 
   {
 #ifdef HAS_AUTHENTICATION
     // Create a default credential file for master/agent authentication.
-    const string& path = path::join(sandbox.get(), "credential");
+    const string& path = path::join(agentDir.get(), "credential");
 
     Try<int_fd> fd = os::open(
         path,
@@ -216,7 +219,7 @@ slave::Flags MesosTest::CreateSlaveFlags()
 
   {
     // Create a secret key for executor authentication.
-    const string path = path::join(sandbox.get(), "executor_secret_key");
+    const string path = path::join(agentDir.get(), "executor_secret_key");
 
     Try<int_fd> fd = os::open(
         path,
@@ -236,7 +239,7 @@ slave::Flags MesosTest::CreateSlaveFlags()
 
   {
     // Create a default HTTP credentials file.
-    const string& path = path::join(sandbox.get(), "http_credentials");
+    const string& path = path::join(agentDir.get(), "http_credentials");
 
     Try<int_fd> fd = os::open(
         path,