author
int64
658
755k
date
stringlengths
19
19
timezone
int64
-46,800
43.2k
hash
stringlengths
40
40
message
stringlengths
5
490
mods
list
language
stringclasses
20 values
license
stringclasses
3 values
repo
stringlengths
5
68
original_message
stringlengths
12
491
46,148
21.05.2019 17:06:30
-7,200
1f35f1ab56d59acf8024746fe52ac5f74535b17d
Added more comments regarding `message QuotaConfig`. Review:
[ { "change_type": "MODIFY", "old_path": "include/mesos/v1/quota/quota.proto", "new_path": "include/mesos/v1/quota/quota.proto", "diff": "@@ -76,7 +76,16 @@ message QuotaRequest {\n}\n/**\n- * Describes a role's quota configuration.\n+ * Describes a role's quota configuration. This replaces the legacy...
C++
Apache License 2.0
apache/mesos
Added more comments regarding `message QuotaConfig`. Review: https://reviews.apache.org/r/70691
46,072
07.06.2019 14:37:54
-7,200
e08dc03cbe97ced82d8d32e4a2f17f13d33abdae
Fixed non-deferred callback calling Master::send() in UpdateFramework. This fixes code introduced in `3f49e5543df`. Review:
[ { "change_type": "MODIFY", "old_path": "src/master/master.cpp", "new_path": "src/master/master.cpp", "diff": "@@ -3159,7 +3159,7 @@ void Master::updateFramework(\nFrameworkID frameworkId = call.framework_info().id();\nupdateFramework(std::move(call))\n- .onAny([this, from, frameworkId](\n+ .onAny(de...
C++
Apache License 2.0
apache/mesos
Fixed non-deferred callback calling Master::send() in UpdateFramework. This fixes code introduced in `3f49e5543df`. Review: https://reviews.apache.org/r/70809/
46,072
09.06.2019 22:21:12
14,400
0f2502883925f36775d1bf6913c80ea1b1bc9656
Added a mock master API subscriber for testing. This patch introduces a class with mock methods for subscribing to the events of master's V1 streaming API and setting expectations for them. Review:
[ { "change_type": "MODIFY", "old_path": "src/Makefile.am", "new_path": "src/Makefile.am", "diff": "@@ -2602,6 +2602,8 @@ mesos_tests_SOURCES = \\\ntests/master_quota_tests.cpp \\\ntests/master_slave_reconciliation_tests.cpp \\\ntests/master_tests.cpp \\\n+ tests/master/mock_master_api_subscriber.cpp ...
C++
Apache License 2.0
apache/mesos
Added a mock master API subscriber for testing. This patch introduces a class with mock methods for subscribing to the events of master's V1 streaming API and setting expectations for them. Review: https://reviews.apache.org/r/70671/
46,072
09.06.2019 23:11:52
14,400
7301287210e19b309f6ddd472bd51897f5cb7c8d
Refactored some of `MasterAPITest`s using MockMasterAPISubscriber. This patch replaces reading out all Master API events (both interesting and uninteresting ones) in the code of the tests with setting expectations on `MOCK_METHOD`s of the dedicated class. Review:
[ { "change_type": "MODIFY", "old_path": "src/tests/api_tests.cpp", "new_path": "src/tests/api_tests.cpp", "diff": "#include \"tests/resources_utils.hpp\"\n#include \"tests/containerizer/mock_containerizer.hpp\"\n+#include \"tests/master/mock_master_api_subscriber.hpp\"\nnamespace http = process::http...
C++
Apache License 2.0
apache/mesos
Refactored some of `MasterAPITest`s using MockMasterAPISubscriber. This patch replaces reading out all Master API events (both interesting and uninteresting ones) in the code of the tests with setting expectations on `MOCK_METHOD`s of the dedicated class. Review: https://reviews.apache.org/r/70756/
46,072
09.06.2019 23:46:18
14,400
0c431dd60ae39138cc7e8b099d41ad794c02c9a9
Added tests for the V1 UPDATE_FRAMEWORK call. Review:
[ { "change_type": "MODIFY", "old_path": "src/Makefile.am", "new_path": "src/Makefile.am", "diff": "@@ -2604,6 +2604,7 @@ mesos_tests_SOURCES = \\\ntests/master_tests.cpp \\\ntests/master/mock_master_api_subscriber.cpp \\\ntests/master/mock_master_api_subscriber.hpp \\\n+ tests/master/update_framework...
C++
Apache License 2.0
apache/mesos
Added tests for the V1 UPDATE_FRAMEWORK call. Review: https://reviews.apache.org/r/70534/
46,210
11.06.2019 14:36:21
-7,200
47cd9be3187a73a62f3ff659699facb92a6e7123
Added logrotate option to force Jenkins into removing older artefacts. Review:
[ { "change_type": "MODIFY", "old_path": "support/jenkins/Jenkinsfile-packaging-centos", "new_path": "support/jenkins/Jenkinsfile-packaging-centos", "diff": "#!groovy\n+options {\n+ buildDiscarder(logRotator(daysToKeepStr: '30'))\n+}\n+\nif (env.NODE_LABELS == null) {\nenv.NODE_LABELS = \"(ubuntu)&&(!...
C++
Apache License 2.0
apache/mesos
Added logrotate option to force Jenkins into removing older artefacts. Review: https://reviews.apache.org/r/70829/
46,210
11.06.2019 15:34:53
-7,200
9ee6bddc8b28eeef3d4cedda959aa1cedf9fbd47
Updated Jenkinsfile for packaging again to activate logrotate.
[ { "change_type": "MODIFY", "old_path": "support/jenkins/Jenkinsfile-packaging-centos", "new_path": "support/jenkins/Jenkinsfile-packaging-centos", "diff": "#!groovy\n-options {\n- buildDiscarder(logRotator(daysToKeepStr: '30'))\n-}\n+properties [[$class: 'BuildDiscarderProperty', strategy: [$class: ...
C++
Apache License 2.0
apache/mesos
Updated Jenkinsfile for packaging again to activate logrotate.
46,053
07.06.2019 18:02:01
-7,200
f2beddaf04b82c7bf89b4abc6a8f76ab7e41705b
Fixed compilation error on Mac OS. This patch adds missing switch case to fix compilation error introduced in `bc5a57122635`. Review:
[ { "change_type": "MODIFY", "old_path": "src/slave/containerizer/mesos/launch.cpp", "new_path": "src/slave/containerizer/mesos/launch.cpp", "diff": "@@ -496,8 +496,8 @@ static Try<Nothing> executeFileOperation(const ContainerFileOperation& op)\nreturn Nothing();\n}\n-#ifdef __linux__\ncase ContainerF...
C++
Apache License 2.0
apache/mesos
Fixed compilation error on Mac OS. This patch adds missing switch case to fix compilation error introduced in `bc5a57122635`. Review: https://reviews.apache.org/r/70811
46,072
11.06.2019 13:31:09
14,400
4036da6638427aa05f66f6780ce5d11049f95bb3
Supported updating framework info in the scheduler driver. This patch adds a method to the MesosSchedulerDriver which updates the FrameworkInfo (by making an UPDATE_FRAMEWORK call to the master and also updating the FrameworkInfo stored in the driver for the purposes of (re-)subscribing). Review:
[ { "change_type": "MODIFY", "old_path": "include/mesos/scheduler.hpp", "new_path": "include/mesos/scheduler.hpp", "diff": "@@ -317,6 +317,17 @@ public:\n// currently known.\nvirtual Status reconcileTasks(\nconst std::vector<TaskStatus>& statuses) = 0;\n+\n+ // Updates the FrameworkInfo with the provi...
C++
Apache License 2.0
apache/mesos
Supported updating framework info in the scheduler driver. This patch adds a method to the MesosSchedulerDriver which updates the FrameworkInfo (by making an UPDATE_FRAMEWORK call to the master and also updating the FrameworkInfo stored in the driver for the purposes of (re-)subscribing). Review: https://reviews.apac...
46,055
11.06.2019 15:50:47
25,200
1961e41a61def2b7baca7563c0b7e1855880b55c
Improved container-specific cgroups test by checking `cpu.shares`. This is to ensure the symbolic links (see below as an example) we create for the container exist. ln -s /sys/fs/cgroup/cpu,cpuacct /sys/fs/cgroup/cpu Review:
[ { "change_type": "MODIFY", "old_path": "src/tests/containerizer/cgroups_isolator_tests.cpp", "new_path": "src/tests/containerizer/cgroups_isolator_tests.cpp", "diff": "@@ -2185,7 +2185,7 @@ TEST_F(CgroupsIsolatorTest, ROOT_CGROUPS_NestedContainerSpecificCgroupsMount)\n{\n// Disable AuthN on the agen...
C++
Apache License 2.0
apache/mesos
Improved container-specific cgroups test by checking `cpu.shares`. This is to ensure the symbolic links (see below as an example) we create for the container exist. ln -s /sys/fs/cgroup/cpu,cpuacct /sys/fs/cgroup/cpu Review: https://reviews.apache.org/r/70827/
46,072
12.06.2019 15:34:24
14,400
fb0e7db8b63e81fb8fb2629faaeb5aa3848b78d8
Replaced a pointer to managed MockMasterAPISubscriberProcess with a pid. Review:
[ { "change_type": "MODIFY", "old_path": "src/tests/master/mock_master_api_subscriber.cpp", "new_path": "src/tests/master/mock_master_api_subscriber.cpp", "diff": "@@ -47,7 +47,7 @@ public:\n: subscriber(subscriber_) {};\nFuture<Nothing> subscribe(\n- const process::PID<Master>& pid, ContentType conte...
C++
Apache License 2.0
apache/mesos
Replaced a pointer to managed MockMasterAPISubscriberProcess with a pid. Review: https://reviews.apache.org/r/70843/
46,072
12.06.2019 15:46:55
14,400
58ec6ca79d02eeaf0dc595d3f7c6dc008890fe74
Templatized UPDATE_FRAMEWORK test helpers over type of FrameworkInfo. This patch makes possible to use the same helper functions in tests of both V1 and V0 UPDATE_FRAMEWORK calls by templatizing them over type of FrameworkInfo. Review:
[ { "change_type": "MODIFY", "old_path": "src/tests/master/update_framework_tests.cpp", "new_path": "src/tests/master/update_framework_tests.cpp", "diff": "@@ -101,6 +101,7 @@ static Future<APIResult> callUpdateFramework(\n}\n+// TODO(asekretenko): Move this function out of 'scheduler' namespace.\nsta...
C++
Apache License 2.0
apache/mesos
Templatized UPDATE_FRAMEWORK test helpers over type of FrameworkInfo. This patch makes possible to use the same helper functions in tests of both V1 and V0 UPDATE_FRAMEWORK calls by templatizing them over type of FrameworkInfo. Review: https://reviews.apache.org/r/70753/
46,072
12.06.2019 15:47:02
14,400
79c32082b820ef28447d5f9509936a7992144484
Moved UPDATE_FRAMEWORK test helpers to appropriate namespaces. Review:
[ { "change_type": "MODIFY", "old_path": "src/tests/master/update_framework_tests.cpp", "new_path": "src/tests/master/update_framework_tests.cpp", "diff": "@@ -80,28 +80,65 @@ using testing::Return;\nnamespace mesos {\nnamespace internal {\nnamespace tests {\n-namespace v1 {\n-namespace scheduler {\n-...
C++
Apache License 2.0
apache/mesos
Moved UPDATE_FRAMEWORK test helpers to appropriate namespaces. Review: https://reviews.apache.org/r/70754/
46,072
12.06.2019 15:47:08
14,400
5a3f047a1085f6614be01b057fc1cdbc2c913f48
Added tests for the V0 UPDATE_FRAMEWORK scheduler call. Review:
[ { "change_type": "MODIFY", "old_path": "src/tests/master/update_framework_tests.cpp", "new_path": "src/tests/master/update_framework_tests.cpp", "diff": "#include <stout/lambda.hpp>\n#include <stout/try.hpp>\n+#include \"internal/devolve.hpp\"\n#include \"internal/evolve.hpp\"\n#include \"master/all...
C++
Apache License 2.0
apache/mesos
Added tests for the V0 UPDATE_FRAMEWORK scheduler call. Review: https://reviews.apache.org/r/70755/
46,072
13.06.2019 14:47:25
14,400
203096466435dac62b89f3d16822160fab2dee78
Replaced a set of single '*' role in SCRIPT_TEST ACL with ANY. This patch changes the roles set in the ACL used by SCRIPT_TESTs for the `register_frameworks` action from the '*' role to `ANY`. This is needed for adding and removing roles via the UPDATE_FRAMEWORK call in `ExamplesTest`s. Review:
[ { "change_type": "MODIFY", "old_path": "src/tests/script.cpp", "new_path": "src/tests/script.cpp", "diff": "@@ -157,7 +157,7 @@ void execute(const string& script)\nmesos::ACL::RegisterFramework* register_ = acls.add_register_frameworks();\nregister_->mutable_principals()->add_values(DEFAULT_CREDENTI...
C++
Apache License 2.0
apache/mesos
Replaced a set of single '*' role in SCRIPT_TEST ACL with ANY. This patch changes the roles set in the ACL used by SCRIPT_TESTs for the `register_frameworks` action from the '*' role to `ANY`. This is needed for adding and removing roles via the UPDATE_FRAMEWORK call in `ExamplesTest`s. Review: https://reviews.apache...
46,148
04.06.2019 17:34:52
25,200
f05f0616841bd539a8b6abfc591f3c287ad998d9
Added a wrapper struct for quota guarantees and limits. This struct is temporarily named to `Quota2` to differentiate with the existing `Quota` struct. It will replace all `Quota` and rename to `Quota`. Review:
[ { "change_type": "MODIFY", "old_path": "include/mesos/quota/quota.hpp", "new_path": "include/mesos/quota/quota.hpp", "diff": "#ifndef __MESOS_QUOTA_PROTO_HPP__\n#define __MESOS_QUOTA_PROTO_HPP__\n+#include <mesos/resource_quantities.hpp>\n+\n// ONLY USEFUL AFTER RUNNING PROTOC.\n#include <mesos/quot...
C++
Apache License 2.0
apache/mesos
Added a wrapper struct for quota guarantees and limits. This struct is temporarily named to `Quota2` to differentiate with the existing `Quota` struct. It will replace all `Quota` and rename to `Quota`. Review: https://reviews.apache.org/r/70799
46,148
04.06.2019 10:48:51
25,200
75798445f932f1f163a502e2325e76cf33450836
Refactored quota overcommit check. This refactor makes the `QuotaTree` to use the new quota wrapper struct. Also refactor the check to reflect that it is currently only checking guarantees. Review:
[ { "change_type": "MODIFY", "old_path": "src/master/quota_handler.cpp", "new_path": "src/master/quota_handler.cpp", "diff": "#include <mesos/quota/quota.hpp>\n+#include <mesos/resource_quantities.hpp>\n+\n#include <process/collect.hpp>\n#include <process/defer.hpp>\n#include <process/future.hpp>\n@@ ...
C++
Apache License 2.0
apache/mesos
Refactored quota overcommit check. This refactor makes the `QuotaTree` to use the new quota wrapper struct. Also refactor the check to reflect that it is currently only checking guarantees. Review: https://reviews.apache.org/r/70800
46,148
05.06.2019 14:04:53
25,200
495162eefa12900b3a74bfbb269851473df4cce9
Refactored allocator with the new quota wrapper struct. This patch also introduces a constant `DEFAULT_QUOTA`. By default, a role has no guarantees and no limits. Review:
[ { "change_type": "MODIFY", "old_path": "src/master/allocator/mesos/hierarchical.cpp", "new_path": "src/master/allocator/mesos/hierarchical.cpp", "diff": "@@ -1410,21 +1410,12 @@ void HierarchicalAllocatorProcess::setQuota(\n// the role is not set. Setting quota differs from updating it because\n// t...
C++
Apache License 2.0
apache/mesos
Refactored allocator with the new quota wrapper struct. This patch also introduces a constant `DEFAULT_QUOTA`. By default, a role has no guarantees and no limits. Review: https://reviews.apache.org/r/70801
46,148
06.06.2019 15:58:05
25,200
4bdbd8e7da5063d55726b628b5e0d31c79650d3f
Added `Metrics::updateQuota` for quota metrics. This intends to replace the existing ``Metrics::setQuota` and `Metrics::remove` calls. Currently, it only tracks guarantees. Need to add limits metrics. Review:
[ { "change_type": "MODIFY", "old_path": "src/master/allocator/mesos/metrics.cpp", "new_path": "src/master/allocator/mesos/metrics.cpp", "diff": "@@ -139,6 +139,7 @@ void Metrics::setQuota(const string& role, const Quota& quota)\nCHECK_EQ(Value::SCALAR, resource.type());\ndouble value = resource.scala...
C++
Apache License 2.0
apache/mesos
Added `Metrics::updateQuota` for quota metrics. This intends to replace the existing ``Metrics::setQuota` and `Metrics::remove` calls. Currently, it only tracks guarantees. Need to add limits metrics. Review: https://reviews.apache.org/r/70802
46,148
06.06.2019 16:18:45
25,200
ceb1120e8c53771219363e0bf579a770b914a592
Used the new quota struct for the allocator recover call. Review:
[ { "change_type": "MODIFY", "old_path": "include/mesos/allocator/allocator.hpp", "new_path": "include/mesos/allocator/allocator.hpp", "diff": "@@ -141,7 +141,7 @@ public:\n*/\nvirtual void recover(\nconst int expectedAgentCount,\n- const hashmap<std::string, Quota>& quotas) = 0;\n+ const hashmap<std:...
C++
Apache License 2.0
apache/mesos
Used the new quota struct for the allocator recover call. Review: https://reviews.apache.org/r/70804
46,072
15.06.2019 12:23:12
14,400
244c27b61a63948905225c34d2cc833c3e2a55de
Made scheduler driver's updateFramework() require FrameworkInfo with ID. This patch makes it mandatory for the caller to fill the 'id' field of the FrameworkInfo passed into MesosSchedulerDriver::updateFramework(). Review:
[ { "change_type": "MODIFY", "old_path": "include/mesos/scheduler.hpp", "new_path": "include/mesos/scheduler.hpp", "diff": "@@ -318,15 +318,21 @@ public:\nvirtual Status reconcileTasks(\nconst std::vector<TaskStatus>& statuses) = 0;\n- // Updates the FrameworkInfo with the provided value (except for t...
C++
Apache License 2.0
apache/mesos
Made scheduler driver's updateFramework() require FrameworkInfo with ID. This patch makes it mandatory for the caller to fill the 'id' field of the FrameworkInfo passed into MesosSchedulerDriver::updateFramework(). Review: https://reviews.apache.org/r/70854/
46,072
15.06.2019 12:52:28
14,400
37891fe86cd1c9b1500ddd326dbfcf6edddc639e
Adapted UpdateFrameworkV0Test now that FrameworkID needs to be set. This patch makes the exitsing UpdateFramewornV0 tests fill the `FrameworkInfo.id` field and adds tests that invalid values of this field are handled properly. Review:
[ { "change_type": "MODIFY", "old_path": "src/tests/master/update_framework_tests.cpp", "new_path": "src/tests/master/update_framework_tests.cpp", "diff": "#include \"internal/evolve.hpp\"\n#include \"master/allocator/mesos/allocator.hpp\"\n+#include \"master/detector/standalone.hpp\"\n#include \"mast...
C++
Apache License 2.0
apache/mesos
Adapted UpdateFrameworkV0Test now that FrameworkID needs to be set. This patch makes the exitsing UpdateFramewornV0 tests fill the `FrameworkInfo.id` field and adds tests that invalid values of this field are handled properly. Review: https://reviews.apache.org/r/70855/
46,072
15.06.2019 13:26:09
14,400
2f3899e30544102e94e5fdbb91e7cf99066f2552
Added updateFramework() method to java V0 scheduler driver bindings. Review:
[ { "change_type": "MODIFY", "old_path": "src/java/jni/org_apache_mesos_MesosSchedulerDriver.cpp", "new_path": "src/java/jni/org_apache_mesos_MesosSchedulerDriver.cpp", "diff": "@@ -1136,4 +1136,26 @@ Java_org_apache_mesos_MesosSchedulerDriver_reconcileTasks(\nreturn convert<Status>(env, status);\n}\n...
C++
Apache License 2.0
apache/mesos
Added updateFramework() method to java V0 scheduler driver bindings. Review: https://reviews.apache.org/r/70813/
46,111
16.06.2019 15:35:17
25,200
a4df2605753269f5c04bd30686729b5fd80eb66f
Updated `docs/monitoring.md` for new agent event queue metrics. Review:
[ { "change_type": "MODIFY", "old_path": "docs/monitoring.md", "new_path": "docs/monitoring.md", "diff": "@@ -2262,3 +2262,35 @@ completed CSI calls made to the plugin.\n<td>Counter</td>\n</tr>\n</table>\n+\n+#### Event queue\n+\n+The following metrics provide information about different types of even...
C++
Apache License 2.0
apache/mesos
Updated `docs/monitoring.md` for new agent event queue metrics. Review: https://reviews.apache.org/r/54987/
46,165
17.06.2019 18:46:22
14,400
0a08e1bd2e57fdab1c4565d8bb5aa49ea621705a
Clarified ERROR event as first event in the scheduler HTTP API docs. The ERROR event is also possible as the first event in the streaming response from the master, but this is not clear in the documentation as pointed out by James DeFelice Review:
[ { "change_type": "MODIFY", "old_path": "docs/scheduler-http-api.md", "new_path": "docs/scheduler-http-api.md", "diff": "@@ -55,7 +55,7 @@ The response returned from the `SUBSCRIBE` call (see [below](#subscribe)) is enc\nThis is the first step in the communication process between the scheduler and th...
C++
Apache License 2.0
apache/mesos
Clarified ERROR event as first event in the scheduler HTTP API docs. The ERROR event is also possible as the first event in the streaming response from the master, but this is not clear in the documentation as pointed out by James DeFelice (james.defelice@gmail.com). Review: https://reviews.apache.org/r/70868
46,055
19.06.2019 10:54:31
25,200
dfcb830a115cd64c6727884363f5b6562e8f0bb8
Added `--disallow_sharing_agent_ipc_namespace` agent flag. Review:
[ { "change_type": "MODIFY", "old_path": "docs/configuration/agent.md", "new_path": "docs/configuration/agent.md", "diff": "@@ -577,6 +577,36 @@ this role. (default: *)\n</td>\n</tr>\n+<tr id=\"disallow_sharing_agent_ipc_namespace\">\n+ <td>\n+ --[no-]disallow_sharing_agent_ipc_namespace\n+ </td>\n+ <...
C++
Apache License 2.0
apache/mesos
Added `--disallow_sharing_agent_ipc_namespace` agent flag. Review: https://reviews.apache.org/r/70773/
46,055
19.06.2019 10:55:01
25,200
1e647b95010edffe95376df83f8555e0d9a9beb2
Added `--default_shm_size` agent flag. Review:
[ { "change_type": "MODIFY", "old_path": "docs/configuration/agent.md", "new_path": "docs/configuration/agent.md", "diff": "@@ -577,6 +577,20 @@ this role. (default: *)\n</td>\n</tr>\n+<tr id=\"default_shm_size\">\n+ <td>\n+ --default_shm_size\n+ </td>\n+ <td>\n+The default size of the /dev/shm for th...
C++
Apache License 2.0
apache/mesos
Added `--default_shm_size` agent flag. Review: https://reviews.apache.org/r/70774/
46,072
19.06.2019 18:36:28
14,400
45570f13f51f69446b0f56eac24eb44a08f4dd25
Fixed flaky UpdateFrameworkV0Test.DriverErrorOnFrameworkIDMismatch. This patch removes a spurious call of driver.start() before setting expectations on the scheduler's mock methods. Review:
[ { "change_type": "MODIFY", "old_path": "src/tests/master/update_framework_tests.cpp", "new_path": "src/tests/master/update_framework_tests.cpp", "diff": "@@ -645,7 +645,6 @@ TEST_F(UpdateFrameworkV0Test, DriverErrorOnFrameworkIDMismatch)\nMockScheduler sched;\nTestingMesosSchedulerDriver driver(\n&s...
C++
Apache License 2.0
apache/mesos
Fixed flaky UpdateFrameworkV0Test.DriverErrorOnFrameworkIDMismatch. This patch removes a spurious call of driver.start() before setting expectations on the scheduler's mock methods. Review: https://reviews.apache.org/r/70898/
46,072
20.06.2019 13:20:18
14,400
c9ff134d10f5fb7875fdc99a36a97e6c233758b3
Consolidated creating std::vector from Collection in V0 Java bindings. This patch replaces several pieces of code which build std::vector<T> from a Java collection with a single function template. This is a prerequisite for adding one more collection argument to the bindings. Review:
[ { "change_type": "MODIFY", "old_path": "src/java/jni/construct.hpp", "new_path": "src/java/jni/construct.hpp", "diff": "#ifndef __CONSTRUCT_HPP__\n#define __CONSTRUCT_HPP__\n+#include <vector>\n+\n#include <jni.h>\nbool construct(JNIEnv* env, jboolean jbool);\n@@ -24,4 +26,33 @@ bool construct(JNIEn...
C++
Apache License 2.0
apache/mesos
Consolidated creating std::vector from Collection in V0 Java bindings. This patch replaces several pieces of code which build std::vector<T> from a Java collection with a single function template. This is a prerequisite for adding one more collection argument to the bindings. Review: https://reviews.apache.org/r/7089...
46,148
19.06.2019 15:22:22
25,200
b336ae3f09f1020d3d8a6e3ed1bc2b390b6947d5
Avoided a double map lookup in the allocator. Review:
[ { "change_type": "MODIFY", "old_path": "src/master/allocator/mesos/hierarchical.cpp", "new_path": "src/master/allocator/mesos/hierarchical.cpp", "diff": "@@ -2565,7 +2565,9 @@ bool HierarchicalAllocatorProcess::isFrameworkTrackedUnderRole(\nconst Quota2& HierarchicalAllocatorProcess::getQuota(const ...
C++
Apache License 2.0
apache/mesos
Avoided a double map lookup in the allocator. Review: https://reviews.apache.org/r/70905
46,165
18.06.2019 15:04:26
14,400
a8a0573e1e53237b9eb13f1e288b358d707b9e89
Updated master's /roles endpoint to use jsonify. Review:
[ { "change_type": "MODIFY", "old_path": "src/common/http.cpp", "new_path": "src/common/http.cpp", "diff": "@@ -493,22 +493,9 @@ JSON::Object model(const FileInfo& fileInfo)\nreturn file;\n}\n-\n-JSON::Object model(const quota::QuotaInfo& quotaInfo)\n-{\n- JSON::Object object;\n-\n- object.values[\"gu...
C++
Apache License 2.0
apache/mesos
Updated master's /roles endpoint to use jsonify. Review: https://reviews.apache.org/r/70877
46,072
21.06.2019 14:50:32
14,400
2c27bccda87de1f63913a76ee9db18fb4e797cc6
Fixed REVIVE to clear filters for only the specified roles. This is a fix for bug wich was causing all the offer filters to be cleared by reviveOffers() called for a specific subset of roles. Review:
[ { "change_type": "MODIFY", "old_path": "src/master/allocator/mesos/hierarchical.cpp", "new_path": "src/master/allocator/mesos/hierarchical.cpp", "diff": "@@ -1370,7 +1370,6 @@ void HierarchicalAllocatorProcess::reviveOffers(\nCHECK_CONTAINS(frameworks, frameworkId);\nFramework& framework = framework...
C++
Apache License 2.0
apache/mesos
Fixed REVIVE to clear filters for only the specified roles. This is a fix for MESOS-9856 bug wich was causing all the offer filters to be cleared by reviveOffers() called for a specific subset of roles. Review: https://reviews.apache.org/r/70926/
46,072
21.06.2019 14:52:59
14,400
92f465c00b700e20df7d9ece423dffe57551983c
Enhanced a test to ensure that the REVIVE bug is fixed. This patch exposes a bug, due to which reviveOffers() called for a specific role clears offer filters for all the roles of a framework. Review:
[ { "change_type": "MODIFY", "old_path": "src/tests/hierarchical_allocator_tests.cpp", "new_path": "src/tests/hierarchical_allocator_tests.cpp", "diff": "@@ -5850,8 +5850,7 @@ TEST_F(HierarchicalAllocatorTest, SuppressAndReviveOffersWithMultiRole)\nFuture<Allocation> allocation = allocations.get();\nE...
C++
Apache License 2.0
apache/mesos
Enhanced a test to ensure that the MESOS-9856 REVIVE bug is fixed. This patch exposes a bug, due to which reviveOffers() called for a specific role clears offer filters for all the roles of a framework. Review: https://reviews.apache.org/r/70925/
46,057
29.05.2019 14:02:05
-7,200
540d9da5abc52f1e02d360478d2781ddf80d1599
Updated some flag description for libprocess SSL flags. Changed `SSL` to `TLS` in some flag descriptions where the flag was referring to versions of the TLS protocol. Review:
[ { "change_type": "MODIFY", "old_path": "3rdparty/libprocess/src/openssl.cpp", "new_path": "3rdparty/libprocess/src/openssl.cpp", "diff": "@@ -147,22 +147,22 @@ Flags::Flags()\nadd(&Flags::enable_tls_v1_0,\n\"enable_tls_v1_0\",\n- \"Enable SSLV1.0.\",\n+ \"Enable TLSv1.0.\",\nfalse);\nadd(&Flags::ena...
C++
Apache License 2.0
apache/mesos
Updated some flag description for libprocess SSL flags. Changed `SSL` to `TLS` in some flag descriptions where the flag was referring to versions of the TLS protocol. Review: https://reviews.apache.org/r/70747
46,057
19.06.2019 15:44:47
-7,200
c3db27280b29251c0b2ef29e6f9fca3efe43d5f4
Renamed 'libprocess::network::Address::hostname()'. Renamed member function `hostname()` to `lookup_hostname()`, since the former name hides the fact that a call to this function involves a synchronous network access in order to make a reverse DNS lookup. Review:
[ { "change_type": "MODIFY", "old_path": "3rdparty/libprocess/include/process/address.hpp", "new_path": "3rdparty/libprocess/include/process/address.hpp", "diff": "@@ -55,13 +55,19 @@ public:\n: ip(_ip), port(_port) {}\n/**\n- * Returns the hostname of this address's IP.\n+ * Returns the hostname of t...
C++
Apache License 2.0
apache/mesos
Renamed 'libprocess::network::Address::hostname()'. Renamed member function `hostname()` to `lookup_hostname()`, since the former name hides the fact that a call to this function involves a synchronous network access in order to make a reverse DNS lookup. Review: https://reviews.apache.org/r/70885
46,057
04.06.2019 19:42:07
-7,200
ebcd3feee03f3a6666d7f4015ed15f71701b8252
Fixed Mesos unit tests after Address API change. Adjusted some Mesos unit tests after the renaming of `Address::hostname()` -> `Address::lookup_hostname()`. Review:
[ { "change_type": "MODIFY", "old_path": "src/tests/master_tests.cpp", "new_path": "src/tests/master_tests.cpp", "diff": "@@ -169,14 +169,14 @@ TEST_F(MasterTest, TaskRunning)\n// Ensure the hostname and url are set correctly.\nEXPECT_EQ(\n- slave.get()->pid.address.hostname().get(),\n+ slave.get()->p...
C++
Apache License 2.0
apache/mesos
Fixed Mesos unit tests after Address API change. Adjusted some Mesos unit tests after the renaming of `Address::hostname()` -> `Address::lookup_hostname()`. Review: https://reviews.apache.org/r/70796
46,057
23.06.2019 13:48:43
-7,200
e667d051ba7ab24ca63b2fbff6f65091a47c02d2
Renamed another instance of 'hostname()'. Renamed one final instance of `Address::hostname()` to `Address::lookup_hostname()` that was missed in the previous commit.
[ { "change_type": "MODIFY", "old_path": "3rdparty/libprocess/src/posix/libevent/libevent_ssl_socket.cpp", "new_path": "3rdparty/libprocess/src/posix/libevent/libevent_ssl_socket.cpp", "diff": "@@ -546,7 +546,7 @@ Future<Nothing> LibeventSSLSocketImpl::connect(const Address& address)\n// connecting to...
C++
Apache License 2.0
apache/mesos
Renamed another instance of 'hostname()'. Renamed one final instance of `Address::hostname()` to `Address::lookup_hostname()` that was missed in the previous commit.
46,177
21.06.2019 07:11:49
25,200
fa087b2024e9c20558353fd16cb540d3485f7090
Added master minimum capability for agent draining. This adds a new enum for the agent draining feature in the master. When an agent is marked for draining or deactivation, an associated entry will be added to the master's registry. This will prevent any master downgrades until all agents are reactivated. Review:
[ { "change_type": "MODIFY", "old_path": "docs/downgrades.md", "new_path": "docs/downgrades.md", "diff": "@@ -20,4 +20,37 @@ these minimum capabilities and remediation for downgrade errors.\n## List of Master Minimum Capabilities\n-Currently, no minimum capabilities will block downgrades.\n+<table cla...
C++
Apache License 2.0
apache/mesos
Added master minimum capability for agent draining. This adds a new enum for the agent draining feature in the master. When an agent is marked for draining or deactivation, an associated entry will be added to the master's registry. This will prevent any master downgrades until all agents are reactivated. Review: ht...
46,142
24.06.2019 12:23:19
-7,200
0aeb947217325f93905e87b6e7728fff9113a691
Fixed JSON of container image GC example. The documentation used an incorrect field name ('nano_seconds' instead of 'nanoseconds'), and an incorrect value ('3600' instead of '3600*10**9'). This closes
[ { "change_type": "MODIFY", "old_path": "docs/container-image.md", "new_path": "docs/container-image.md", "diff": "@@ -430,7 +430,7 @@ or as a JSON object,\n--image_gc_config=\"{ \\\n\\\"image_disk_headroom\\\": 0.1, \\\n\\\"image_disk_watch_interval\\\": { \\\n- \\\"nano_seconds\\\": 3600 \\\n+ \\\"...
C++
Apache License 2.0
apache/mesos
Fixed JSON of container image GC example. The documentation used an incorrect field name ('nano_seconds' instead of 'nanoseconds'), and an incorrect value ('3600' instead of '3600*10**9'). This closes #338.
46,165
25.06.2019 13:31:46
14,400
dee60433f6d25a4f072fec8a8a3b81bf43bb17ba
Replaced virtual with override for filter destructors in allocator. This silences the tidy warnings about using virtual.
[ { "change_type": "MODIFY", "old_path": "src/master/allocator/mesos/hierarchical.cpp", "new_path": "src/master/allocator/mesos/hierarchical.cpp", "diff": "@@ -91,7 +91,7 @@ public:\n: _resources(_resources),\n_expired(after(timeout)) {}\n- virtual ~RefusedOfferFilter()\n+ ~RefusedOfferFilter() overri...
C++
Apache License 2.0
apache/mesos
Replaced virtual with override for filter destructors in allocator. This silences the tidy warnings about using virtual.
46,148
20.06.2019 17:29:28
25,200
8eba78cbddc8b70f78c07a501ee0dc1d6204f280
Replaced `Quota` with `Quota2` in the master state. This paves way to remove `struct Quota`. Review:
[ { "change_type": "MODIFY", "old_path": "src/master/master.cpp", "new_path": "src/master/master.cpp", "diff": "@@ -1730,7 +1730,7 @@ Future<Nothing> Master::_recover(const Registry& registry)\n// Save the quotas for each role.\nforeach (const Registry::Quota& quota, registry.quotas()) {\n- quotas[quo...
C++
Apache License 2.0
apache/mesos
Replaced `Quota` with `Quota2` in the master state. This paves way to remove `struct Quota`. Review: https://reviews.apache.org/r/70916
46,148
20.06.2019 18:09:36
25,200
86affdd0b5c2208627eb194e5d02794fa264c383
Refactored the allocator test to use the `updateQuota` method. This paves the way to remove `setQuota` and `removeQuota` methods. Review:
[ { "change_type": "MODIFY", "old_path": "src/tests/allocator.cpp", "new_path": "src/tests/allocator.cpp", "diff": "@@ -24,13 +24,15 @@ namespace mesos {\nnamespace internal {\nnamespace tests {\n-Quota createQuota(const string& role, const string& resources)\n+// This is a legacy helper where we take...
C++
Apache License 2.0
apache/mesos
Refactored the allocator test to use the `updateQuota` method. This paves the way to remove `setQuota` and `removeQuota` methods. Review: https://reviews.apache.org/r/70917
46,148
20.06.2019 18:48:28
25,200
373393bbaaeadf992c2e8d5399462ffe128eaec4
Removed `setQuota` and `removeQuota` methods in the allocator. These are replaced by the `updateQuota` method. Review:
[ { "change_type": "MODIFY", "old_path": "include/mesos/allocator/allocator.hpp", "new_path": "include/mesos/allocator/allocator.hpp", "diff": "@@ -413,50 +413,6 @@ public:\nconst FrameworkID& frameworkId,\nconst std::set<std::string>& roles) = 0;\n- /**\n- * Informs the allocator to set quota for the...
C++
Apache License 2.0
apache/mesos
Removed `setQuota` and `removeQuota` methods in the allocator. These are replaced by the `updateQuota` method. Review: https://reviews.apache.org/r/70918
46,148
24.06.2019 15:43:00
25,200
b172deabec5890aa1c4650be5a41c3bfaf811e1a
Updated the UI to show quota limits differently from guarantees. Previously, guarantees also acts as limits. But now limits are decoupled from guarantees. This patch updates the UI to display them separated based on the `/roles` response. Review:
[ { "change_type": "MODIFY", "old_path": "src/webui/app/roles/roles.html", "new_path": "src/webui/app/roles/roles.html", "diff": "{{((role.quota.guarantee.disk * (1024 * 1024) || NaN) | dataSize) || \"-\"}}\n</td>\n- <!-- TODO(ArmandGrillet): Replace by\n- (role.quota.limit.<> | decimalFloat) || (role...
C++
Apache License 2.0
apache/mesos
Updated the UI to show quota limits differently from guarantees. Previously, guarantees also acts as limits. But now limits are decoupled from guarantees. This patch updates the UI to display them separated based on the `/roles` response. Review: https://reviews.apache.org/r/70939
46,210
26.06.2019 02:24:40
-7,200
e5f48794f0354f8179f4302b308fb89a9f7caf7c
Attempting to get Jenkins pipeline build expiry fixed. Review:
[ { "change_type": "MODIFY", "old_path": "support/jenkins/Jenkinsfile-packaging-centos", "new_path": "support/jenkins/Jenkinsfile-packaging-centos", "diff": "#!groovy\n-properties [[$class: 'BuildDiscarderProperty', strategy: [$class: 'LogRotator', daysToKeepStr: '30']], [$class: 'ScannerJobProperty',...
C++
Apache License 2.0
apache/mesos
Attempting to get Jenkins pipeline build expiry fixed. Review: https://reviews.apache.org/r/70948/
46,055
26.06.2019 17:50:04
-28,800
9d2fcc75874d9c29ec44986200239a038c265ab0
Added `ipc_mode` and `shm_size` fields into `LinuxInfo`. Review:
[ { "change_type": "MODIFY", "old_path": "include/mesos/mesos.proto", "new_path": "include/mesos/mesos.proto", "diff": "@@ -3267,6 +3267,52 @@ message LinuxInfo {\n// Represents Seccomp configuration, which is used for syscall filtering.\n// This field is used to override the agent's default Seccomp c...
C++
Apache License 2.0
apache/mesos
Added `ipc_mode` and `shm_size` fields into `LinuxInfo`. Review: https://reviews.apache.org/r/70775
46,103
26.06.2019 11:54:08
-7,200
f04655979cc8cd3fc3b263f42ef2df850ec8a933
Removed const ref lifetime extension use in `slave::state::recover`. Review:
[ { "change_type": "MODIFY", "old_path": "src/slave/state.cpp", "new_path": "src/slave/state.cpp", "diff": "@@ -85,7 +85,7 @@ Try<State> recover(const string& rootDir, bool strict)\n// resources checkpoint file.\nstate.resources = resources.get();\n- const string& bootIdPath = paths::getBootIdPath(roo...
C++
Apache License 2.0
apache/mesos
Removed const ref lifetime extension use in `slave::state::recover`. Review: https://reviews.apache.org/r/70912/
46,103
26.06.2019 11:54:20
-7,200
fe7be9701e92d863734621ae1a3d339bb8598044
Sped up `SlaveTest.KillQueuedTaskDuringExecutorRegistration`. This patch switches `SlaveTest.KillQueuedTaskDuringExecutorRegistration` to manual clock management with paused clock and manual clock advance. This speeds up the test by >25x from >5s to <200ms on my machine in a not-optimized build. Review:
[ { "change_type": "MODIFY", "old_path": "src/tests/slave_tests.cpp", "new_path": "src/tests/slave_tests.cpp", "diff": "@@ -4300,6 +4300,8 @@ TEST_F(SlaveTest, KillMultiplePendingTasks)\n// the executor.\nTEST_F(SlaveTest, KillQueuedTaskDuringExecutorRegistration)\n{\n+ Clock::pause();\n+\n// Start a ...
C++
Apache License 2.0
apache/mesos
Sped up `SlaveTest.KillQueuedTaskDuringExecutorRegistration`. This patch switches `SlaveTest.KillQueuedTaskDuringExecutorRegistration` to manual clock management with paused clock and manual clock advance. This speeds up the test by >25x from >5s to <200ms on my machine in a not-optimized build. Review: https://revie...
46,103
06.06.2019 10:53:10
-7,200
880eb63d42adcd36a97240b2751b8d1183e11f38
Bumped mesos-tidy to 8.0.0. Review:
[ { "change_type": "MODIFY", "old_path": "support/mesos-tidy/Dockerfile", "new_path": "support/mesos-tidy/Dockerfile", "diff": "@@ -39,9 +39,9 @@ RUN curl -sSL https://cmake.org/files/v3.8/cmake-3.8.2-Linux-x86_64.sh \\\nsh /tmp/install-cmake.sh --skip-license --prefix=/usr/local\nRUN \\\n- git clone ...
C++
Apache License 2.0
apache/mesos
Bumped mesos-tidy to 8.0.0. Review: https://reviews.apache.org/r/70971
46,128
28.06.2019 12:56:08
25,200
cbb5694f00717f8d8a1b760622e9fe41b066be83
Added common protobufs for agent draining. This patch makes protobuf message updates which will be used by both the master and the agent to facilitate automatic draining of agents. Review:
[ { "change_type": "MODIFY", "old_path": "include/mesos/mesos.proto", "new_path": "include/mesos/mesos.proto", "diff": "@@ -2626,6 +2626,7 @@ message TaskStatus {\nREASON_RECONCILIATION = 9;\nREASON_RESOURCES_UNKNOWN = 18;\nREASON_SLAVE_DISCONNECTED = 10;\n+ REASON_SLAVE_DRAINING = 34;\nREASON_SLAVE_R...
C++
Apache License 2.0
apache/mesos
Added common protobufs for agent draining. This patch makes protobuf message updates which will be used by both the master and the agent to facilitate automatic draining of agents. Review: https://reviews.apache.org/r/70822/
46,128
28.06.2019 13:13:58
25,200
b2cfcecb34e76b9a5380bf27f8a2b650510ed158
Added agent capability for agent draining. This patch adds a new required agent capability, AGENT_DRAINING, which indicates to the master that the agent is capable of handling automatic task draining via the `DrainSlaveMessage`. Review:
[ { "change_type": "MODIFY", "old_path": "include/mesos/mesos.proto", "new_path": "include/mesos/mesos.proto", "diff": "@@ -1042,6 +1042,10 @@ message SlaveInfo {\n// handle feedback for operations on agent default resources, the\n// RESOURCE_PROVIDER capability should be set as well.\nAGENT_OPERATION...
C++
Apache License 2.0
apache/mesos
Added agent capability for agent draining. This patch adds a new required agent capability, AGENT_DRAINING, which indicates to the master that the agent is capable of handling automatic task draining via the `DrainSlaveMessage`. Review: https://reviews.apache.org/r/70839/
46,072
01.07.2019 15:18:50
14,400
9827fcfff69d65ca32852fa6de1b98e1e1a5ba5d
Added 'operator-()' for set difference to stout. Review:
[ { "change_type": "MODIFY", "old_path": "3rdparty/stout/include/stout/set.hpp", "new_path": "3rdparty/stout/include/stout/set.hpp", "diff": "#ifndef __STOUT_SET_HPP__\n#define __STOUT_SET_HPP__\n-#include <algorithm> // For std::set_intersection.\n+#include <algorithm> // For std::set_intersection an...
C++
Apache License 2.0
apache/mesos
Added 'operator-()' for set difference to stout. Review: https://reviews.apache.org/r/70974/
46,148
28.06.2019 14:15:02
25,200
c82847ad1b8d3760d34ee1e8869c2b7286ccfaa1
Added helpers to add and remove master minimum capabilities. Also added a TODO about refactoring the helpers. Review:
[ { "change_type": "MODIFY", "old_path": "src/common/protobuf_utils.cpp", "new_path": "src/common/protobuf_utils.cpp", "diff": "@@ -1359,6 +1359,47 @@ mesos::maintenance::Schedule createSchedule(\n} // namespace maintenance {\nnamespace master {\n+\n+void addMinimumCapability(\n+ google::protobuf::Rep...
C++
Apache License 2.0
apache/mesos
Added helpers to add and remove master minimum capabilities. Also added a TODO about refactoring the helpers. Review: https://reviews.apache.org/r/70972
46,072
01.07.2019 23:21:25
14,400
f2deec5e57a84cef0033bda45ee87ee4259ab4c7
Supported suppressedRoles in updateFramework() in V0 Java bindings. Review:
[ { "change_type": "MODIFY", "old_path": "src/java/jni/org_apache_mesos_MesosSchedulerDriver.cpp", "new_path": "src/java/jni/org_apache_mesos_MesosSchedulerDriver.cpp", "diff": "@@ -1001,22 +1001,25 @@ Java_org_apache_mesos_MesosSchedulerDriver_reconcileTasks(\n/* Class: org_apache_mesos_MesosSchedule...
C++
Apache License 2.0
apache/mesos
Supported suppressedRoles in updateFramework() in V0 Java bindings. Review: https://reviews.apache.org/r/70897/
46,072
01.07.2019 23:40:11
14,400
3b3ee085582b0a1d116627178cb898c4b6d5c64d
Added a test for suppressing roles via V0 updateFramework(). Review:
[ { "change_type": "MODIFY", "old_path": "src/tests/master/update_framework_tests.cpp", "new_path": "src/tests/master/update_framework_tests.cpp", "diff": "@@ -73,6 +73,7 @@ using process::Promise;\nusing recordio::Decoder;\nusing std::string;\n+using std::vector;\nusing testing::_;\nusing testing::At...
C++
Apache License 2.0
apache/mesos
Added a test for suppressing roles via V0 updateFramework(). Review: https://reviews.apache.org/r/70895/
46,072
01.07.2019 23:40:24
14,400
285a1b1896a9feb3095b266ab9bbda300103e6eb
Added a test that driver re-registration does not unsuppress offers. Review:
[ { "change_type": "MODIFY", "old_path": "src/tests/scheduler_driver_tests.cpp", "new_path": "src/tests/scheduler_driver_tests.cpp", "diff": "#include <stout/uuid.hpp>\n#include \"master/allocator/mesos/allocator.hpp\"\n-\n+#include \"master/detector/standalone.hpp\"\n#include \"master/master.hpp\"\n#...
C++
Apache License 2.0
apache/mesos
Added a test that driver re-registration does not unsuppress offers. Review: https://reviews.apache.org/r/70982/
46,072
02.07.2019 00:25:22
14,400
57b98ab790a8b2ed3e91cca825e1a38ebd51150a
Added scheduler driver constructors which set initial suppressed roles. Review:
[ { "change_type": "MODIFY", "old_path": "include/mesos/scheduler.hpp", "new_path": "include/mesos/scheduler.hpp", "diff": "@@ -431,6 +431,24 @@ public:\nbool implicitAcknowlegements,\nconst Credential& credential);\n+ // These constructors are the same as the above two, but allow\n+ // the framework ...
C++
Apache License 2.0
apache/mesos
Added scheduler driver constructors which set initial suppressed roles. Review: https://reviews.apache.org/r/70943/
46,072
02.07.2019 00:27:55
14,400
7b2811217257d49818eebf2e519f92d0354c6e20
Added a test for scheduler driver registering with a suppressed role. Review:
[ { "change_type": "MODIFY", "old_path": "src/tests/scheduler_driver_tests.cpp", "new_path": "src/tests/scheduler_driver_tests.cpp", "diff": "@@ -499,6 +499,61 @@ TEST_F(MesosSchedulerDriverTest, ExplicitAcknowledgementsUnsetSlaveID)\ndriver.join();\n}\n+\n+// This test ensures that the driver can reg...
C++
Apache License 2.0
apache/mesos
Added a test for scheduler driver registering with a suppressed role. Review: https://reviews.apache.org/r/70944/
46,072
02.07.2019 00:26:37
14,400
5d2732692541ec9aecba20c501fb5e35a19ab49f
Added constructors with a list of suppressed roles to Java V0 bindings. Review:
[ { "change_type": "MODIFY", "old_path": "src/java/jni/org_apache_mesos_MesosSchedulerDriver.cpp", "new_path": "src/java/jni/org_apache_mesos_MesosSchedulerDriver.cpp", "diff": "@@ -548,12 +548,34 @@ JNIEXPORT void JNICALL Java_org_apache_mesos_MesosSchedulerDriver_initialize\njcredential = env->GetOb...
C++
Apache License 2.0
apache/mesos
Added constructors with a list of suppressed roles to Java V0 bindings. Review: https://reviews.apache.org/r/70945/
46,055
02.07.2019 16:53:48
25,200
1e42b01ff73f539f111bb8635f59bf1378271cdf
Set the `MESOS_ALLOCATION_ROLE` environment variable for task. Review:
[ { "change_type": "MODIFY", "old_path": "src/docker/docker.cpp", "new_path": "src/docker/docker.cpp", "diff": "@@ -681,6 +681,14 @@ Try<Docker::RunOptions> Docker::RunOptions::create(\noptions.env[\"MESOS_SANDBOX\"] = mappedDirectory;\noptions.env[\"MESOS_CONTAINER_NAME\"] = name;\n+ if (resources.is...
C++
Apache License 2.0
apache/mesos
Set the `MESOS_ALLOCATION_ROLE` environment variable for task. Review: https://reviews.apache.org/r/70989/
46,148
02.07.2019 15:01:05
25,200
38438baf7be0a4aaef2986531931934e144f6f6a
Fixed an compilation issue due to macro expansion. Review:
[ { "change_type": "MODIFY", "old_path": "src/tests/registrar_tests.cpp", "new_path": "src/tests/registrar_tests.cpp", "diff": "@@ -985,7 +985,7 @@ TEST_F(RegistrarTest, UpdateQuota)\nEXPECT_EQ(1, registry->quota_configs().size());\n- JSON::Array expected = CHECK_NOTERROR(JSON::parse<JSON::Array>(\n+ ...
C++
Apache License 2.0
apache/mesos
Fixed an compilation issue due to macro expansion. Review: https://reviews.apache.org/r/71009
46,072
03.07.2019 17:00:45
14,400
3d8fcaba6428d7865f5de230ab7ab59377c585cf
Added a test for adding a role in a suppressed state. Review:
[ { "change_type": "MODIFY", "old_path": "src/tests/master/update_framework_tests.cpp", "new_path": "src/tests/master/update_framework_tests.cpp", "diff": "@@ -72,6 +72,8 @@ using process::Promise;\nusing recordio::Decoder;\n+using google::protobuf::RepeatedPtrField;\n+\nusing std::string;\nusing std:...
C++
Apache License 2.0
apache/mesos
Added a test for adding a role in a suppressed state. Review: https://reviews.apache.org/r/70965/
46,072
03.07.2019 17:01:04
14,400
8394526126646fe7590e3462491973256216d2ef
Added a test for removing a role from both roles and suppressed roles. Review:
[ { "change_type": "MODIFY", "old_path": "src/tests/master/update_framework_tests.cpp", "new_path": "src/tests/master/update_framework_tests.cpp", "diff": "@@ -662,6 +662,69 @@ TEST_F(UpdateFrameworkTest, AddSuppressedRole)\n}\n+// Helper action for RemoveAndUnsuppress.\n+ACTION_P(SendSubscribeWithAll...
C++
Apache License 2.0
apache/mesos
Added a test for removing a role from both roles and suppressed roles. Review: https://reviews.apache.org/r/70966/
46,072
03.07.2019 18:46:30
14,400
f0285ecbfd38a60e17937834aec58d0a9235d1d7
Added ability to revive a subset of roles in the scheduler driver. This patch adds to the scheduler driver a 'reviveOffers(roles)' method, which sends the REVIVE call for these roles and removes them from the suppressed roles set. Review:
[ { "change_type": "MODIFY", "old_path": "include/mesos/scheduler.hpp", "new_path": "include/mesos/scheduler.hpp", "diff": "@@ -293,6 +293,14 @@ public:\n// during re-registration.\nvirtual Status reviveOffers() = 0;\n+ // Removes filters for the specified roles and removes these roles from\n+ // the ...
C++
Apache License 2.0
apache/mesos
Added ability to revive a subset of roles in the scheduler driver. This patch adds to the scheduler driver a 'reviveOffers(roles)' method, which sends the REVIVE call for these roles and removes them from the suppressed roles set. Review: https://reviews.apache.org/r/70941/
46,072
03.07.2019 18:47:26
14,400
f674ce74ba1629627f4119d6f50528ad1d600812
Added a scheduler driver test for 'reviveOffers(roles)'. Review:
[ { "change_type": "MODIFY", "old_path": "src/tests/scheduler_driver_tests.cpp", "new_path": "src/tests/scheduler_driver_tests.cpp", "diff": "@@ -62,6 +62,8 @@ using process::PID;\nusing process::http::OK;\n+using std::set;\n+using std::string;\nusing std::vector;\nusing testing::_;\n@@ -554,6 +556,10...
C++
Apache License 2.0
apache/mesos
Added a scheduler driver test for 'reviveOffers(roles)'. Review: https://reviews.apache.org/r/70942/
46,072
03.07.2019 18:47:53
14,400
57c2b7098ee523f3f0f647c6b334cce37266fe2a
Added ability to suppress a subset of roles in the scheduler driver. This patch adds to the scheduler driver a 'suppressOffers(roles)' method, which sends the SUPPRESS call for these roles and adds them to the suppressed roles set. Review:
[ { "change_type": "MODIFY", "old_path": "include/mesos/scheduler.hpp", "new_path": "include/mesos/scheduler.hpp", "diff": "@@ -312,6 +312,13 @@ public:\n// re-registration.\nvirtual Status suppressOffers() = 0;\n+ // Adds the roles to the suppressed set. If the framework is not connected\n+ // to the...
C++
Apache License 2.0
apache/mesos
Added ability to suppress a subset of roles in the scheduler driver. This patch adds to the scheduler driver a 'suppressOffers(roles)' method, which sends the SUPPRESS call for these roles and adds them to the suppressed roles set. Review: https://reviews.apache.org/r/70983/
46,072
03.07.2019 18:48:25
14,400
6b7dd466cac37d891562fb0d1c92bfe0615e02cc
Added a scheduler driver test for 'suppressOffers(roles)'. Review:
[ { "change_type": "MODIFY", "old_path": "src/tests/scheduler_driver_tests.cpp", "new_path": "src/tests/scheduler_driver_tests.cpp", "diff": "@@ -557,6 +557,78 @@ TEST_F(MesosSchedulerDriverTest, RegisterWithSuppressedRole)\n}\n+// This test ensures that suppressOffers() can suppress\n+// one role of ...
C++
Apache License 2.0
apache/mesos
Added a scheduler driver test for 'suppressOffers(roles)'. Review: https://reviews.apache.org/r/70984/
46,072
04.07.2019 18:01:26
14,400
f6423687f6fa99d54167da66cf3e72324c3a58a3
Fixed flaky test `UpdateFrameworkV0Test.SuppressedRoles`. Previously, the test has been failing in cases when the first AGENT_ADDED message arrived after setting an expectation for the "second" one. After this patch, expectations for both messages are set, and this is performed before any of them can arrive. Review:
[ { "change_type": "MODIFY", "old_path": "src/tests/master/update_framework_tests.cpp", "new_path": "src/tests/master/update_framework_tests.cpp", "diff": "@@ -1076,6 +1076,11 @@ TEST_F(UpdateFrameworkV0Test, SuppressedRoles)\nEXPECT_CALL(masterAPISubscriber, frameworkUpdated(_))\n.WillOnce(FutureArg<...
C++
Apache License 2.0
apache/mesos
Fixed flaky test `UpdateFrameworkV0Test.SuppressedRoles`. Previously, the test has been failing in cases when the first AGENT_ADDED message arrived after setting an expectation for the "second" one. After this patch, expectations for both messages are set, and this is performed before any of them can arrive. Review: ...
46,072
04.07.2019 18:05:53
14,400
286d7bd1cd3a62d244c0ac3216d4a130d1408a99
Added reviveOffers(roles) to V0 Java bindings. Review:
[ { "change_type": "MODIFY", "old_path": "src/java/jni/org_apache_mesos_MesosSchedulerDriver.cpp", "new_path": "src/java/jni/org_apache_mesos_MesosSchedulerDriver.cpp", "diff": "@@ -938,7 +938,7 @@ Java_org_apache_mesos_MesosSchedulerDriver_declineOffer(\n* Signature: ()Lorg/apache/mesos/Protos/Status...
C++
Apache License 2.0
apache/mesos
Added reviveOffers(roles) to V0 Java bindings. Review: https://reviews.apache.org/r/70947/
46,072
04.07.2019 18:07:21
14,400
fa122214fdabbb140971059b5ea21d8542850df7
Added suppressOffers(roles) to V0 Java bindings. Review:
[ { "change_type": "MODIFY", "old_path": "src/java/jni/org_apache_mesos_MesosSchedulerDriver.cpp", "new_path": "src/java/jni/org_apache_mesos_MesosSchedulerDriver.cpp", "diff": "@@ -981,7 +981,7 @@ Java_org_apache_mesos_MesosSchedulerDriver_reviveOffers__Ljava_util_Collection_2\n* Signature: ()Lorg/ap...
C++
Apache License 2.0
apache/mesos
Added suppressOffers(roles) to V0 Java bindings. Review: https://reviews.apache.org/r/70985/
46,057
07.06.2019 16:52:32
-7,200
be110d45bedc6d145db55568aeb9d477989963dc
Updated SSL docs with suggested runtime configuration. Review:
[ { "change_type": "MODIFY", "old_path": "docs/ssl.md", "new_path": "docs/ssl.md", "diff": "@@ -9,7 +9,7 @@ By default, all the messages that flow through the Mesos cluster are unencrypted\nSSL/TLS support was added to libprocess in Mesos 0.23.0, which encypts the low-level communication that Mesos us...
C++
Apache License 2.0
apache/mesos
Updated SSL docs with suggested runtime configuration. Review: https://reviews.apache.org/r/70810
46,057
19.06.2019 16:37:41
-7,200
ba2bac706753fe1da68227c8ec15acd293f1154a
Added optional 'host' string member to UPID. This allows client code to access the original hostname that was used to specify a libprocess address. Review:
[ { "change_type": "MODIFY", "old_path": "3rdparty/libprocess/include/process/pid.hpp", "new_path": "3rdparty/libprocess/include/process/pid.hpp", "diff": "@@ -193,6 +193,16 @@ struct UPID\nOption<network::inet6::Address> v6;\n} addresses = {None()};\n+ // The hostname that was used to create this UPI...
C++
Apache License 2.0
apache/mesos
Added optional 'host' string member to UPID. This allows client code to access the original hostname that was used to specify a libprocess address. Review: https://reviews.apache.org/r/70884
46,057
06.06.2019 20:08:44
-7,200
6320b69f26c185fd611efc11dec36509cdf4fd28
Updated SSL docs to include new libprocess flag. Added a description of the new `--hostname_validation_scheme` flag and corresponding `LIBPROCESS_SSL_HOSTNAME_VALIDATION_SCHEME` environment variable. Review:
[ { "change_type": "MODIFY", "old_path": "docs/ssl.md", "new_path": "docs/ssl.md", "diff": "@@ -53,8 +53,9 @@ providing additional security guarantees but also increasing the deployment comp\nFor secure usage, it is recommended to set `LIBPROCESS_SSL_ENABLED=true`,\n-`LIBPROCESS_SSL_VERIFY_CERT=true` ...
C++
Apache License 2.0
apache/mesos
Updated SSL docs to include new libprocess flag. Added a description of the new `--hostname_validation_scheme` flag and corresponding `LIBPROCESS_SSL_HOSTNAME_VALIDATION_SCHEME` environment variable. Review: https://reviews.apache.org/r/70795
46,057
21.06.2019 16:38:51
-7,200
f1c60dd1de13ab5d0863eb2515e813a86976ac5c
Added OpenSSL-related changes to CHANGELOG. Review:
[ { "change_type": "MODIFY", "old_path": "CHANGELOG", "new_path": "CHANGELOG", "diff": "@@ -2,6 +2,16 @@ Release Notes - Mesos - Version 1.9.0 (WIP)\n-------------------------------------------\nThis release contains the following highlights:\n+ * Security\n+\n+ * A new libprocess flag `--hostname_val...
C++
Apache License 2.0
apache/mesos
Added OpenSSL-related changes to CHANGELOG. Review: https://reviews.apache.org/r/70921
46,057
01.07.2019 15:02:18
-7,200
b19ac5d89616e0366fd90d8b856ef3adba008402
Recorded Socket API change in CHANGELOG. Review:
[ { "change_type": "MODIFY", "old_path": "CHANGELOG", "new_path": "CHANGELOG", "diff": "@@ -27,6 +27,13 @@ Additional API Changes:\n* Mesos components will now forego TLS certificate validation for incoming\nconnections, unless `LIBPROCESS_SSL_REQUIRE_CERT` is set to true.\n+ * The `Socket::connect(co...
C++
Apache License 2.0
apache/mesos
Recorded Socket API change in CHANGELOG. Review: https://reviews.apache.org/r/70992
46,057
24.06.2019 14:06:28
-7,200
f02dca61aae3771638627409435122820590a5e1
Moved an inline duration for slow DNS logging into a const variable. Moved the 100ms threshold that was used for printing warning messages about slow reverse DNS lookups into a named variable. Review:
[ { "change_type": "MODIFY", "old_path": "3rdparty/libprocess/src/openssl.cpp", "new_path": "3rdparty/libprocess/src/openssl.cpp", "diff": "@@ -66,6 +66,14 @@ namespace process {\nnamespace network {\nnamespace openssl {\n+// A warning is printed when a reverse DNS lookup takes longer\n+// than this t...
C++
Apache License 2.0
apache/mesos
Moved an inline duration for slow DNS logging into a const variable. Moved the 100ms threshold that was used for printing warning messages about slow reverse DNS lookups into a named variable. Review: https://reviews.apache.org/r/70933
46,057
26.06.2019 16:30:12
-7,200
1a6760c60dc823b088ffbcf48909cf3e371570f3
Added warnings about known problems with libevent epoll backend. Some SSL options are known to cause issues in combination with older versions of libevent. Detect and warn about this situation. See for details. Review:
[ { "change_type": "MODIFY", "old_path": "3rdparty/libprocess/Makefile.am", "new_path": "3rdparty/libprocess/Makefile.am", "diff": "@@ -157,7 +157,7 @@ LIB_EV = -lev\nendif\nelse\nif WITH_BUNDLED_LIBEVENT\n-LIB_EVENT_INCLUDE_FLAGS = -I$(LIBEVENT)\n+LIB_EVENT_INCLUDE_FLAGS = -I$(LIBEVENT)/include\nLIB_...
C++
Apache License 2.0
apache/mesos
Added warnings about known problems with libevent epoll backend. Some SSL options are known to cause issues in combination with older versions of libevent. Detect and warn about this situation. See MESOS-9867 for details. Review: https://reviews.apache.org/r/70993
46,143
08.07.2019 13:55:22
18,000
97fded51512ef3c5a4755a861a811e5329d9857a
Updated ReviewBot to tail 100 KB instead of 1 MB. 1 MB worth of trailing data does not seem to be needed from experience. It just causes comment bloat.
[ { "change_type": "MODIFY", "old_path": "support/verify-reviews.py", "new_path": "support/verify-reviews.py", "diff": "@@ -47,7 +47,7 @@ from datetime import datetime\nfrom common import REVIEWBOARD_URL\n-REVIEW_SIZE = 1000000 # 1 MB in bytes.\n+REVIEW_SIZE = 100000 # 100 KB in bytes.\n# Parse argume...
C++
Apache License 2.0
apache/mesos
Updated ReviewBot to tail 100 KB instead of 1 MB. 1 MB worth of trailing data does not seem to be needed from experience. It just causes comment bloat.
46,057
09.07.2019 00:00:47
-7,200
db4aea8a4feeb001f375cd9523afc463dd8a4126
Removed an unnecessary call to `.c_str()`.
[ { "change_type": "MODIFY", "old_path": "3rdparty/libprocess/src/pid.cpp", "new_path": "3rdparty/libprocess/src/pid.cpp", "diff": "@@ -123,7 +123,7 @@ istream& operator>>(istream& stream, UPID& pid)\n// if not use `net::getIP()` to resolve the hostname.\n//\n// TODO(evelinad): Extend this to support ...
C++
Apache License 2.0
apache/mesos
Removed an unnecessary call to `.c_str()`.
46,107
08.07.2019 22:30:01
25,200
de7b5062b1fa3ccd7fd345be6d7d816505eb066b
Used euid to determine subprocess' user when launching tasks. Review:
[ { "change_type": "MODIFY", "old_path": "src/slave/containerizer/mesos/launch.cpp", "new_path": "src/slave/containerizer/mesos/launch.cpp", "diff": "@@ -926,8 +926,8 @@ int MesosContainerizerLaunch::execute()\n}\n// No need to change user/groups if the specified user is the same\n- // as that of the ...
C++
Apache License 2.0
apache/mesos
Used euid to determine subprocess' user when launching tasks. Review: https://reviews.apache.org/r/71005/
46,165
28.06.2019 16:08:14
14,400
01de23909afc0de9a79cc1eb1047a9b09e244774
Renamed Role::allocatedResources to Role::allocatedAndOfferedResources. This exposes allocated + offered, so it has been renamed accordingly. Review:
[ { "change_type": "MODIFY", "old_path": "src/master/http.cpp", "new_path": "src/master/http.cpp", "diff": "@@ -2704,7 +2704,8 @@ Future<Response> Master::Http::getRoles(\nif (master->roles.contains(name)) {\nRole* role_ = master->roles.at(name);\n- role.mutable_resources()->CopyFrom(role_->allocatedR...
C++
Apache License 2.0
apache/mesos
Renamed Role::allocatedResources to Role::allocatedAndOfferedResources. This exposes allocated + offered, so it has been renamed accordingly. Review: https://reviews.apache.org/r/71027
46,165
28.06.2019 16:10:14
14,400
76c474380b19b52e36547f3bcd2975ab5c11fed6
Renamed the roles ui column from 'Allocation' to 'Allocation + Offered'. This column actually displays the allocation + offered amount, so this renames it accordingly to avoid confusion. Later, we will split these apart into separate selectable columns. Review:
[ { "change_type": "MODIFY", "old_path": "src/webui/app/roles/roles.html", "new_path": "src/webui/app/roles/roles.html", "diff": "<th data-key=\"name\" data-sort class=\"ascending vertically-center\" rowspan=\"2\">Role</th>\n<th data-key=\"weight\" class=\"vertically-center\" rowspan=\"2\">Weight</th>...
C++
Apache License 2.0
apache/mesos
Renamed the roles ui column from 'Allocation' to 'Allocation + Offered'. This column actually displays the allocation + offered amount, so this renames it accordingly to avoid confusion. Later, we will split these apart into separate selectable columns. Review: https://reviews.apache.org/r/71028
46,165
08.07.2019 13:36:09
14,400
121dcb59d183005a1dd55f987c12617a327a7654
Added a test for /roles quota.consumed field. This ensures that the various edge different states of resources are correctly handled, see test comment for more details. Review:
[ { "change_type": "MODIFY", "old_path": "src/tests/role_tests.cpp", "new_path": "src/tests/role_tests.cpp", "diff": "@@ -57,6 +57,7 @@ using process::http::Response;\nusing process::http::Unauthorized;\nusing testing::AtMost;\n+using testing::DoAll;\nnamespace mesos {\nnamespace internal {\n@@ -471,6...
C++
Apache License 2.0
apache/mesos
Added a test for /roles quota.consumed field. This ensures that the various edge different states of resources are correctly handled, see test comment for more details. Review: https://reviews.apache.org/r/71032
46,148
05.07.2019 14:55:35
25,200
231200cf395cfbe651b9d995f4f9a6ed0d99fa58
Refactored `QuotaTree` insertion logic. This patch replaces the `insert` method with `update` to make it easier to update individual role's quota information in the tree. Review:
[ { "change_type": "MODIFY", "old_path": "src/master/quota_handler.cpp", "new_path": "src/master/quota_handler.cpp", "diff": "@@ -97,11 +97,11 @@ public:\n: root(new Node(\"\"))\n{\nforeachpair (const string& role, const Quota& quota, quotas) {\n- insert(role, quota);\n+ update(role, quota);\n}\n}\n- ...
C++
Apache License 2.0
apache/mesos
Refactored `QuotaTree` insertion logic. This patch replaces the `insert` method with `update` to make it easier to update individual role's quota information in the tree. Review: https://reviews.apache.org/r/71019
46,057
10.07.2019 18:37:34
-7,200
21f4e66d35d18485b6fa499443a9ce4809a92ec7
Updated Bintray URL in docs. Review:
[ { "change_type": "MODIFY", "old_path": "docs/binary-packages.md", "new_path": "docs/binary-packages.md", "diff": "@@ -7,13 +7,13 @@ layout: documentation\n## Downloading the Mesos RPM\n-Download and install the latest stable RPM binary from the [Bintray Repository](https://bintray.com/mesos/):\n+Dow...
C++
Apache License 2.0
apache/mesos
Updated Bintray URL in docs. Review: https://reviews.apache.org/r/70527/
46,057
10.07.2019 18:37:42
-7,200
0aa3df5147e7af55376677922561687e5a6f8753
Updated release guide. Updated the release guide in `docs/release-guide.md` to match the de-facto process we're using to release new versions. Also mentioned some additional third-party tooling to the post-release desription. Review:
[ { "change_type": "MODIFY", "old_path": "docs/release-guide.md", "new_path": "docs/release-guide.md", "diff": "@@ -61,11 +61,25 @@ This guide describes the process of doing an official release of Mesos.\n## Preparation\n-1. Go to [Apache JIRA](https://issues.apache.org/jira/browse/MESOS) and make\n+1...
C++
Apache License 2.0
apache/mesos
Updated release guide. Updated the release guide in `docs/release-guide.md` to match the de-facto process we're using to release new versions. Also mentioned some additional third-party tooling to the post-release desription. Review: https://reviews.apache.org/r/70528/
46,148
07.07.2019 14:27:14
25,200
dcd73437549413790751d1ff127989dbb29bd753
Added tests for `UPDATE_QUOTA`. These tests reuse the existing tests for `SET_QUOTA` and `REMOVE_QUOTA` calls. In general, `UPDATE_QUOTA` request should fail where `SET_QUOTA` fails. When the existing test expects `SET_QUOTA` call succeeds, we test the `UPDATE_QUOTA` call by first remove the set quota and then send the...
[ { "change_type": "MODIFY", "old_path": "src/tests/master_quota_tests.cpp", "new_path": "src/tests/master_quota_tests.cpp", "diff": "@@ -58,6 +58,7 @@ using mesos::internal::slave::Slave;\nusing mesos::master::detector::MasterDetector;\n+using mesos::quota::QuotaConfig;\nusing mesos::quota::QuotaInfo...
C++
Apache License 2.0
apache/mesos
Added tests for `UPDATE_QUOTA`. These tests reuse the existing tests for `SET_QUOTA` and `REMOVE_QUOTA` calls. In general, `UPDATE_QUOTA` request should fail where `SET_QUOTA` fails. When the existing test expects `SET_QUOTA` call succeeds, we test the `UPDATE_QUOTA` call by first remove the set quota and then send th...
46,165
11.07.2019 13:46:05
14,400
e24fef8ba27ea8e82ce31eacc252c08fdbdf3c61
Expose non-scalar quantities in /roles consumed quota. Review:
[ { "change_type": "MODIFY", "old_path": "src/master/master.hpp", "new_path": "src/master/master.hpp", "diff": "@@ -2707,8 +2707,6 @@ struct Role\nframeworks.erase(framework->id());\n}\n- // TODO(bmahler): Include non-scalar quantities.\n- //\n// TODO(bmahler): This function is somewhat expensive,\n//...
C++
Apache License 2.0
apache/mesos
Expose non-scalar quantities in /roles consumed quota. Review: https://reviews.apache.org/r/71060
46,165
10.07.2019 19:36:54
14,400
d6738bcc86525e1ac661d2027a1934134426255f
Added Role::reserved, Role::allocated, Role::offered to master. This provides a breakdown of resource quantities on a per-role basis, that would aid debugging if shown in the endpoints and roles table in the ui. Review:
[ { "change_type": "MODIFY", "old_path": "src/master/master.hpp", "new_path": "src/master/master.hpp", "diff": "@@ -2779,6 +2779,72 @@ struct Role\nreturn resources;\n}\n+ ResourceQuantities reserved() const\n+ {\n+ const std::string& role = this->role; // For cleaner captures.\n+\n+ ResourceQuantitie...
C++
Apache License 2.0
apache/mesos
Added Role::reserved, Role::allocated, Role::offered to master. This provides a breakdown of resource quantities on a per-role basis, that would aid debugging if shown in the endpoints and roles table in the ui. Review: https://reviews.apache.org/r/71050
46,165
10.07.2019 19:56:23
14,400
4a58fc791f65e61414e76e0803e28985ed19ccbf
Updated /role 'resources' to omit 0 values and include non-scalars. To be consistent with quota and quota consumption, as well as to include resoures outside of {cpus,mem,disk,gpus}, this updates the field to be filled based on ResourceQuantities and include non-scalars. This should also help performance a bit. Review:
[ { "change_type": "MODIFY", "old_path": "src/master/readonly_handler.cpp", "new_path": "src/master/readonly_handler.cpp", "diff": "@@ -739,12 +739,13 @@ process::http::Response Master::ReadOnlyHandler::roles(\nwriter->field(\"consumed\", consumed);\n});\n- if (role.isNone()) {\n- writer->field(\"reso...
C++
Apache License 2.0
apache/mesos
Updated /role 'resources' to omit 0 values and include non-scalars. To be consistent with quota and quota consumption, as well as to include resoures outside of {cpus,mem,disk,gpus}, this updates the field to be filled based on ResourceQuantities and include non-scalars. This should also help performance a bit. Revi...
46,165
10.07.2019 20:01:25
14,400
9e8ffde3e51af581e4faed67dbdb53106818cc00
Added a TODO to add resources breakdowns to v1 GET_ROLES. Review:
[ { "change_type": "MODIFY", "old_path": "include/mesos/mesos.proto", "new_path": "include/mesos/mesos.proto", "diff": "@@ -3695,6 +3695,11 @@ message Role {\nrequired string name = 1;\nrequired double weight = 2;\nrepeated FrameworkID frameworks = 3;\n+\n+ // TODO(bmahler): Deprecate `resources` and ...
C++
Apache License 2.0
apache/mesos
Added a TODO to add resources breakdowns to v1 GET_ROLES. Review: https://reviews.apache.org/r/71052
46,165
10.07.2019 20:09:31
14,400
69c8feab6a62b1728872a367a8ed28f88eb029d3
Added reserved, offered, allocated resources to the /roles endpoint. This provides helpful information for debugging, as well as for the webui to display in the roles table. Review:
[ { "change_type": "MODIFY", "old_path": "src/master/readonly_handler.cpp", "new_path": "src/master/readonly_handler.cpp", "diff": "@@ -745,8 +745,16 @@ process::http::Response Master::ReadOnlyHandler::roles(\nconst ResourceQuantities offered = role.isSome() ?\n(*role)->offered() : ResourceQuantities(...
C++
Apache License 2.0
apache/mesos
Added reserved, offered, allocated resources to the /roles endpoint. This provides helpful information for debugging, as well as for the webui to display in the roles table. Review: https://reviews.apache.org/r/71053
46,165
11.07.2019 13:03:49
14,400
eb6ad5c21b0b85559e582f1f4a166c4dccdcb46e
Added consumed quota, allocated, reserved, offered to the roles table. This adds resource breakdowns on a per role basis to the roles table in the webui, each column except for the role name is selectable to allow the user to tune the view for their needs. Review:
[ { "change_type": "MODIFY", "old_path": "src/webui/app/controllers.js", "new_path": "src/webui/app/controllers.js", "diff": "update();\n}\n+ $scope.show_weight = false;\n+ $scope.show_framework_count = false;\n+ $scope.show_offered = false;\n+ $scope.show_allocated = true;\n+ $scope.show_reserved = t...
C++
Apache License 2.0
apache/mesos
Added consumed quota, allocated, reserved, offered to the roles table. This adds resource breakdowns on a per role basis to the roles table in the webui, each column except for the role name is selectable to allow the user to tune the view for their needs. Review: https://reviews.apache.org/r/71059
46,055
12.07.2019 00:40:07
25,200
6d243ce939706a72e2479d04b43d0fb904984607
Improved `namespaces/ipc` isolator for configurable IPC support. Review:
[ { "change_type": "MODIFY", "old_path": "src/slave/containerizer/mesos/isolators/namespaces/ipc.cpp", "new_path": "src/slave/containerizer/mesos/isolators/namespaces/ipc.cpp", "diff": "// See the License for the specific language governing permissions and\n// limitations under the License.\n-#include...
C++
Apache License 2.0
apache/mesos
Improved `namespaces/ipc` isolator for configurable IPC support. Review: https://reviews.apache.org/r/70798/
46,055
12.07.2019 00:40:09
25,200
eb9af952d5f43d7f0b91ef01acc624e64d6c0ae7
Implemented `cleanup` method of the `namespaces/ipc` isolator. Review:
[ { "change_type": "MODIFY", "old_path": "src/slave/containerizer/mesos/isolators/namespaces/ipc.cpp", "new_path": "src/slave/containerizer/mesos/isolators/namespaces/ipc.cpp", "diff": "@@ -322,6 +322,25 @@ Future<Option<ContainerLaunchInfo>> NamespacesIPCIsolatorProcess::prepare(\nreturn launchInfo;\...
C++
Apache License 2.0
apache/mesos
Implemented `cleanup` method of the `namespaces/ipc` isolator. Review: https://reviews.apache.org/r/70844/
46,055
12.07.2019 00:40:11
25,200
9932550e9632e7fbb9a45b217793c7f508f57001
Updated `filesystem/linux` isolator for configurable IPC support. If `namespaces/ipc` isolator is not enabled, for backward compatibility /dev/shm will still be handled in `filesystem/linux` isolator as before. Otherwise, both /dev/shm and IPC namespace will be handled by `namespaces/ipc` isolator. Review:
[ { "change_type": "MODIFY", "old_path": "src/slave/containerizer/mesos/isolators/filesystem/linux.cpp", "new_path": "src/slave/containerizer/mesos/isolators/filesystem/linux.cpp", "diff": "@@ -146,12 +146,6 @@ static const ContainerMountInfo ROOTFS_CONTAINER_MOUNTS[] = {\n\"devpts\",\n\"newinstance,p...
C++
Apache License 2.0
apache/mesos
Updated `filesystem/linux` isolator for configurable IPC support. If `namespaces/ipc` isolator is not enabled, for backward compatibility /dev/shm will still be handled in `filesystem/linux` isolator as before. Otherwise, both /dev/shm and IPC namespace will be handled by `namespaces/ipc` isolator. Review: https://re...
46,055
12.07.2019 10:32:12
25,200
aeeda40aadd8e272fcb657419f554600621cb0bb
Updated `namespaces-ipc.md` for configurable IPC namespace and /dev/shm. Review:
[ { "change_type": "MODIFY", "old_path": "docs/isolators/namespaces-ipc.md", "new_path": "docs/isolators/namespaces-ipc.md", "diff": "@@ -5,11 +5,52 @@ layout: documentation\n# IPC Namespace Isolator in Mesos Containerizer\n-The IPC Namespace isolator can be used on Linux to place tasks\n-in a distinc...
C++
Apache License 2.0
apache/mesos
Updated `namespaces-ipc.md` for configurable IPC namespace and /dev/shm. Review: https://reviews.apache.org/r/70870/
46,055
13.07.2019 11:35:56
-28,800
575d47bebf42bd42d72dc53bf3075df59ff25e75
Updated a comment in the `filesystem/linux` isolator.
[ { "change_type": "MODIFY", "old_path": "src/slave/containerizer/mesos/isolators/filesystem/linux.cpp", "new_path": "src/slave/containerizer/mesos/isolators/filesystem/linux.cpp", "diff": "@@ -763,8 +763,10 @@ Future<Option<ContainerLaunchInfo>> LinuxFilesystemIsolatorProcess::prepare(\n}\n}\n- // If...
C++
Apache License 2.0
apache/mesos
Updated a comment in the `filesystem/linux` isolator.
46,055
13.07.2019 10:07:52
25,200
6f402d5f193262e854826cac4bc14f29395ca02f
Added the test `NamespacesIsolatorTest.ROOT_ShareIPCNamespace`. Review:
[ { "change_type": "MODIFY", "old_path": "src/tests/containerizer/isolator_tests.cpp", "new_path": "src/tests/containerizer/isolator_tests.cpp", "diff": "#include \"slave/containerizer/fetcher.hpp\"\n#include \"slave/containerizer/mesos/containerizer.hpp\"\n+#include \"slave/containerizer/mesos/paths....
C++
Apache License 2.0
apache/mesos
Added the test `NamespacesIsolatorTest.ROOT_ShareIPCNamespace`. Review: https://reviews.apache.org/r/70845/
46,055
13.07.2019 10:07:54
25,200
f26b2aa93553a1a7e845b194cb9ff49fb72bae22
Added the test `NamespacesIsolatorTest.ROOT_PrivateIPCNamespace`. Review:
[ { "change_type": "MODIFY", "old_path": "src/tests/containerizer/isolator_tests.cpp", "new_path": "src/tests/containerizer/isolator_tests.cpp", "diff": "@@ -584,6 +584,165 @@ TEST_F(NamespacesIsolatorTest, ROOT_ShareIPCNamespace)\nASSERT_TRUE(termination.get()->has_status());\nEXPECT_WTERMSIG_EQ(SIGK...
C++
Apache License 2.0
apache/mesos
Added the test `NamespacesIsolatorTest.ROOT_PrivateIPCNamespace`. Review: https://reviews.apache.org/r/70849/