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,053
13.12.2018 13:57:50
-3,600
3ade731d0c1772206c4afdf56318cfab6356acee
Fixed SIGINT handling in parallel test runner. Previously, we were changing SIGINT signal handling by setting the `SIG_IGN` flag in every worker from the worker pool. Hence, sending SIGINT to `mesos-gtest-runner.py` led to leaks of `mesos-tests` processes. This patch removes this handler to fix the issue. This closes
[ { "change_type": "MODIFY", "old_path": "support/mesos-gtest-runner.py", "new_path": "support/mesos-gtest-runner.py", "diff": "@@ -32,7 +32,6 @@ import multiprocessing\nimport os\nimport resource\nimport shlex\n-import signal\nimport subprocess\nimport sys\n@@ -73,8 +72,6 @@ def run_test(opts):\n\"\"...
C++
Apache License 2.0
apache/mesos
Fixed SIGINT handling in parallel test runner. Previously, we were changing SIGINT signal handling by setting the `SIG_IGN` flag in every worker from the worker pool. Hence, sending SIGINT to `mesos-gtest-runner.py` led to leaks of `mesos-tests` processes. This patch removes this handler to fix the issue. This closes...
46,087
15.11.2018 23:06:22
28,800
65ec2b0149970d2790d18f9f3493b247c698baae
Added an optional `vendor` field to `Resource.DiskInfo.Source`. The new `vendor` field together with the `id` field provide the means of uniquely identifying a CSI volume upon a CSI plugin migration (e.g., there is a change in the agent ID). Review:
[ { "change_type": "MODIFY", "old_path": "include/mesos/mesos.proto", "new_path": "include/mesos/mesos.proto", "diff": "@@ -1026,7 +1026,7 @@ message CSIPluginContainerInfo {\n* Describes a CSI plugin.\n*/\nmessage CSIPluginInfo {\n- // The type of the CSI service. This uniquely identifies a CSI\n+ //...
C++
Apache License 2.0
apache/mesos
Added an optional `vendor` field to `Resource.DiskInfo.Source`. The new `vendor` field together with the `id` field provide the means of uniquely identifying a CSI volume upon a CSI plugin migration (e.g., there is a change in the agent ID). Review: https://reviews.apache.org/r/69037/
46,177
05.09.2018 16:52:40
25,200
b6fc9706c03c93239128f4a27051997c9647d8ff
Added the missing to the 1.7.0 CHANGELOG.
[ { "change_type": "MODIFY", "old_path": "CHANGELOG", "new_path": "CHANGELOG", "diff": "@@ -81,6 +81,11 @@ This release contains the following highlights:\nalong with other cgroups related options\n(e.g., `cgroups/cpu`), those options will be just ignored.\n+ * [MESOS-7947] - Added a new `--gc_non_exe...
C++
Apache License 2.0
apache/mesos
Added the missing MESOS-7947 to the 1.7.0 CHANGELOG.
46,177
13.12.2018 16:34:43
28,800
828a28cec699e11d16006a6596b9f88ff75c55c0
Added tests for agent/executor heartbeating. This adds two separate tests which check if the Agent sends heartbeats to HTTP executors, and if the HTTP executor driver sends heartbeats to the agent. Review:
[ { "change_type": "MODIFY", "old_path": "src/examples/long_lived_executor.cpp", "new_path": "src/examples/long_lived_executor.cpp", "diff": "@@ -132,6 +132,7 @@ protected:\ncase Event::KILL:\ncase Event::MESSAGE:\n+ case Event::HEARTBEAT:\ncase Event::SHUTDOWN: {\nbreak;\n}\n" }, { "change_ty...
C++
Apache License 2.0
apache/mesos
Added tests for agent/executor heartbeating. This adds two separate tests which check if the Agent sends heartbeats to HTTP executors, and if the HTTP executor driver sends heartbeats to the agent. Review: https://reviews.apache.org/r/69474/
46,177
13.12.2018 16:35:12
28,800
a2726e86570bf1e3f953ed56480b49c87eaee9c9
Added gauge metric for operator event stream subscribers. This metric "master/operator_event_stream_subscribers" returns the total number of subscribers to the master's operator event stream. Review:
[ { "change_type": "MODIFY", "old_path": "docs/monitoring.md", "new_path": "docs/monitoring.md", "diff": "@@ -979,6 +979,13 @@ event queue.\n<td>Number of messages in the event queue</td>\n<td>Gauge</td>\n</tr>\n+<tr>\n+ <td>\n+ <code>master/operator_event_stream_subscribers</code>\n+ </td>\n+ <td>Num...
C++
Apache License 2.0
apache/mesos
Added gauge metric for operator event stream subscribers. This metric "master/operator_event_stream_subscribers" returns the total number of subscribers to the master's operator event stream. Review: https://reviews.apache.org/r/69514/
46,210
17.12.2018 15:27:09
-3,600
26e68578f4390e16e21caca40783a1748bef5990
Refactored createAuthorizationCallbacks into common/authorization. Moves 'createAuthorizationCallbacks' out of common/http into common/authorization. Review:
[ { "change_type": "MODIFY", "old_path": "src/authorizer/local/authorizer.cpp", "new_path": "src/authorizer/local/authorizer.cpp", "diff": "#include <stout/try.hpp>\n#include <stout/unreachable.hpp>\n+#include \"common/authorization.hpp\"\n#include \"common/http.hpp\"\n#include \"common/parse.hpp\"\n#...
C++
Apache License 2.0
apache/mesos
Refactored createAuthorizationCallbacks into common/authorization. Moves 'createAuthorizationCallbacks' out of common/http into common/authorization. Review: https://reviews.apache.org/r/69405/
46,165
17.12.2018 14:49:53
18,000
1a0044f5fe3489f75c5d83d3d7690242d9e19045
Added Python 3 installation to the macOS building documentation.
[ { "change_type": "MODIFY", "old_path": "docs/building.md", "new_path": "docs/building.md", "diff": "@@ -72,6 +72,8 @@ Following are the instructions for stock Ubuntu 16.04. If you are using a differ\nFollowing are the instructions for Mac OS X El Capitan. When building Mesos with the Apple-provided ...
C++
Apache License 2.0
apache/mesos
Added Python 3 installation to the macOS building documentation.
46,165
17.12.2018 14:51:25
18,000
bdfc9349362339ebb58ace1670a159bf3b8b9db9
Fixed formatting of Python 3 installation in macOS documentation.
[ { "change_type": "MODIFY", "old_path": "docs/building.md", "new_path": "docs/building.md", "diff": "@@ -72,7 +72,7 @@ Following are the instructions for stock Ubuntu 16.04. If you are using a differ\nFollowing are the instructions for Mac OS X El Capitan. When building Mesos with the Apple-provided ...
C++
Apache License 2.0
apache/mesos
Fixed formatting of Python 3 installation in macOS documentation.
46,165
17.12.2018 14:55:00
18,000
1d1af190b0eb674beecf20646d0b6ce082db4ed0
Added 'brew install xz' to the macOS getting started documentation. This is now required by ArchiverTest in stout.
[ { "change_type": "MODIFY", "old_path": "docs/building.md", "new_path": "docs/building.md", "diff": "@@ -84,7 +84,7 @@ Following are the instructions for Mac OS X El Capitan. When building Mesos with\n$ brew install Caskroom/cask/java\n# Install libraries.\n- $ brew install wget git autoconf automake...
C++
Apache License 2.0
apache/mesos
Added 'brew install xz' to the macOS getting started documentation. This is now required by ArchiverTest in stout.
46,103
18.12.2018 15:08:17
-3,600
9dea6df03761ea0c34704268e0e50c79121fb9a7
Added missing code to set resource provider and agent ids. The helper function to set up the message was set up to receive arguments, but we missed implementing the code making use of the values. This went undiscovered as previously only used a mock resource provider. Review:
[ { "change_type": "MODIFY", "old_path": "src/common/protobuf_utils.cpp", "new_path": "src/common/protobuf_utils.cpp", "diff": "@@ -467,6 +467,14 @@ OperationStatus createOperationStatus(\nstatus.mutable_uuid()->CopyFrom(protobuf::createUUID(uuid.get()));\n}\n+ if (slaveId.isSome()) {\n+ status.mutabl...
C++
Apache License 2.0
apache/mesos
Added missing code to set resource provider and agent ids. The helper function to set up the message was set up to receive arguments, but we missed implementing the code making use of the values. This went undiscovered as previously only used a mock resource provider. Review: https://reviews.apache.org/r/69569/
46,103
18.12.2018 15:08:18
-3,600
49fc7fcf1e26d803aa0775f66f36763e39d695e9
Validated that resource providers use correct ID in operation states. We expect resource providers to set their IDs in operation status messages. This patch adds some assertion that the IDs match our expectations, and adjusts some test code to honor these assumptions. Review:
[ { "change_type": "MODIFY", "old_path": "src/resource_provider/manager.cpp", "new_path": "src/resource_provider/manager.cpp", "diff": "@@ -882,13 +882,21 @@ void ResourceProviderManagerProcess::updateOperationStatus(\nResourceProvider* resourceProvider,\nconst Call::UpdateOperationStatus& update)\n{\...
C++
Apache License 2.0
apache/mesos
Validated that resource providers use correct ID in operation states. We expect resource providers to set their IDs in operation status messages. This patch adds some assertion that the IDs match our expectations, and adjusts some test code to honor these assumptions. Review: https://reviews.apache.org/r/69572/
46,205
19.12.2018 15:38:02
-28,800
40b757f4ec1d611fd1d2492cc350d99bbe398881
Updated upgrades.md for the new flag `--network_cni_root_dir_persist`. Review:
[ { "change_type": "MODIFY", "old_path": "docs/upgrades.md", "new_path": "docs/upgrades.md", "diff": "@@ -60,6 +60,7 @@ We categorize the changes as follows:\n<td style=\"word-wrap: break-word; overflow-wrap: break-word;\"><!--Flags-->\n<ul style=\"padding-left:10px;\">\n<li>A <a href=\"#1-7-x-enforce...
C++
Apache License 2.0
apache/mesos
Updated upgrades.md for the new flag `--network_cni_root_dir_persist`. Review: https://reviews.apache.org/r/69592/
46,055
19.12.2018 22:55:59
-28,800
d90090d7c2e0e1054b3d9f5a9e577496a6294a7d
Updated upgrades.md for `--gc_non_executor_container_sandboxes`.
[ { "change_type": "MODIFY", "old_path": "docs/upgrades.md", "new_path": "docs/upgrades.md", "diff": "@@ -60,6 +60,7 @@ We categorize the changes as follows:\n<td style=\"word-wrap: break-word; overflow-wrap: break-word;\"><!--Flags-->\n<ul style=\"padding-left:10px;\">\n<li>A <a href=\"#1-7-x-enforce...
C++
Apache License 2.0
apache/mesos
Updated upgrades.md for `--gc_non_executor_container_sandboxes`.
46,053
19.12.2018 16:11:43
-3,600
8344f303ffd6429ffa781e7fd7de5d00d9946d78
Renamed `CGROUPS_ROOT` to `ROOT_CGROUPS` in tests for consistency. See summary.
[ { "change_type": "MODIFY", "old_path": "src/tests/containerizer/memory_pressure_tests.cpp", "new_path": "src/tests/containerizer/memory_pressure_tests.cpp", "diff": "@@ -74,7 +74,7 @@ public:\n};\n-TEST_F(MemoryPressureMesosTest, CGROUPS_ROOT_Statistics)\n+TEST_F(MemoryPressureMesosTest, ROOT_CGROUP...
C++
Apache License 2.0
apache/mesos
Renamed `CGROUPS_ROOT` to `ROOT_CGROUPS` in tests for consistency. See summary.
46,148
19.12.2018 18:08:08
-3,600
5c96be75078948676af6fac92c2ed31d9ea93226
Fixed allocator benchmark names to ensure proper filtering. Updated names of allocator benchmarks in `tests/hierarchical_allocator_benchmarks.cpp` to ensure proper filtering. The test filter `BENCHMARK_` is put at the beginning of the test name for consistency. Review:
[ { "change_type": "MODIFY", "old_path": "src/tests/hierarchical_allocator_benchmarks.cpp", "new_path": "src/tests/hierarchical_allocator_benchmarks.cpp", "diff": "@@ -156,13 +156,13 @@ struct BenchmarkConfig\n};\n-class HierarchicalAllocations_BENCHMARK_TestBase : public ::testing::Test\n+class Hiera...
C++
Apache License 2.0
apache/mesos
Fixed allocator benchmark names to ensure proper filtering. Updated names of allocator benchmarks in `tests/hierarchical_allocator_benchmarks.cpp` to ensure proper filtering. The test filter `BENCHMARK_` is put at the beginning of the test name for consistency. Review: https://reviews.apache.org/r/69591/
46,103
21.12.2018 13:00:17
-3,600
0183e6400a91a025b8dfa16d1e6deafc907797bb
Fixed a typo in module manager log message. Review:
[ { "change_type": "MODIFY", "old_path": "src/module/manager.cpp", "new_path": "src/module/manager.cpp", "diff": "@@ -332,7 +332,7 @@ Try<Nothing> ModuleManager::loadManifest(const Modules& modules)\nif (result.isError()) {\nreturn Error(\n\"Error loading module '\" + moduleName + \"'; this is\"\n- \"...
C++
Apache License 2.0
apache/mesos
Fixed a typo in module manager log message. Review: https://reviews.apache.org/r/69608
46,057
02.01.2019 12:28:29
-3,600
7a378597d6a4359de0b1eabb563d4c12cdb4290e
Improved wording in comments for `AgentAdded` event. The comment mentioned that `AgentAdded` events can be sent when an agent reregisters after a master failover. This is technically correct, but neglects to mention that the event can also be sent when the agent reregisters at any other point in time. Review:
[ { "change_type": "MODIFY", "old_path": "include/mesos/master/master.proto", "new_path": "include/mesos/master/master.proto", "diff": "@@ -658,7 +658,7 @@ message Event {\n// Forwarded by the master when an agent becomes known to it.\n// This can happen when an agent registered for the first\n- // ti...
C++
Apache License 2.0
apache/mesos
Improved wording in comments for `AgentAdded` event. The comment mentioned that `AgentAdded` events can be sent when an agent reregisters after a master failover. This is technically correct, but neglects to mention that the event can also be sent when the agent reregisters at any other point in time. Review: https:/...
46,148
05.01.2019 13:28:27
28,800
071bd9e1b770026381640d4f9b25e19ee040af7b
Disallowed nan, inf and so on when parsing Value::Scalar. Scalar values are intended to be finite numbers. This patch checks `nan`, `inf` and so on when parsing `Value::Scalar`. Only normal or zero numbers (as defined in `std::fpclassify()`) are allowed. Also added related tests. Review:
[ { "change_type": "MODIFY", "old_path": "src/common/values.cpp", "new_path": "src/common/values.cpp", "diff": "@@ -707,6 +707,21 @@ Try<Value> parse(const string& text)\n} else if (index == string::npos) {\nTry<double> value_ = numify<double>(temp);\nif (!value_.isError()) {\n+ Option<Error> error = ...
C++
Apache License 2.0
apache/mesos
Disallowed nan, inf and so on when parsing Value::Scalar. Scalar values are intended to be finite numbers. This patch checks `nan`, `inf` and so on when parsing `Value::Scalar`. Only normal or zero numbers (as defined in `std::fpclassify()`) are allowed. Also added related tests. Review: https://reviews.apache.org/r...
46,148
04.01.2019 11:13:21
28,800
cc0a231481db705a8ef45c8be6f68dd52c23ff51
Added tests for `ResourceQuantities`. Added parsing and insertion tests for `ResourceQuantities`. Review:
[ { "change_type": "MODIFY", "old_path": "src/Makefile.am", "new_path": "src/Makefile.am", "diff": "@@ -2546,6 +2546,7 @@ mesos_tests_SOURCES = \\\ntests/resource_offers_tests.cpp \\\ntests/resource_provider_manager_tests.cpp \\\ntests/resource_provider_validation_tests.cpp \\\n+ tests/resource_quanti...
C++
Apache License 2.0
apache/mesos
Added tests for `ResourceQuantities`. Added parsing and insertion tests for `ResourceQuantities`. Review: https://reviews.apache.org/r/69600
46,165
07.01.2019 14:08:50
18,000
c39a310b6e8faa6600c6d051070e1600dd4abd7d
Added a note about RBTool version to the docs. When attempted to set up a new laptop, I noticed that RBTools 1.0.1 does not work and 0.7.10 does. Until we figure this out, I've added a warning to the docs.
[ { "change_type": "MODIFY", "old_path": "docs/advanced-contribution.md", "new_path": "docs/advanced-contribution.md", "diff": "@@ -14,7 +14,7 @@ If you'd like to make significant contributions to Mesos, then you'll want to be\n+ Apache JIRA Account\n<br/><br/>\n* Required installations\n- + RBtools\n...
C++
Apache License 2.0
apache/mesos
Added a note about RBTool version to the docs. When attempted to set up a new laptop, I noticed that RBTools 1.0.1 does not work and 0.7.10 does. Until we figure this out, I've added a warning to the docs.
46,055
07.01.2019 16:16:12
28,800
3478e344fb77d931f6122980c6e94cd3913c441d
Sent SIGKILL to I/O switchboard server as a safeguard. Review:
[ { "change_type": "MODIFY", "old_path": "src/slave/containerizer/mesos/io/switchboard.cpp", "new_path": "src/slave/containerizer/mesos/io/switchboard.cpp", "diff": "@@ -814,6 +814,23 @@ Future<Nothing> IOSwitchboard::cleanup(\n<< \" is being destroyed\";\nos::kill(pid.get(), SIGTERM);\n+\n+ Clock::ti...
C++
Apache License 2.0
apache/mesos
Sent SIGKILL to I/O switchboard server as a safeguard. Review: https://reviews.apache.org/r/69667/
46,172
09.01.2019 16:49:43
-3,600
f6b3dc126047b1f1a8568b3b3424c86960934a58
Improved debuggability of `verify-reviews.py`. Improves error handling in `shell()` and decodes what is returned by `urllib.request.urlopen` when doing API calls. Review:
[ { "change_type": "MODIFY", "old_path": "support/verify-reviews.py", "new_path": "support/verify-reviews.py", "diff": "@@ -93,8 +93,12 @@ class ReviewError(Exception):\ndef shell(command):\n\"\"\"Run a shell command.\"\"\"\n- print(command)\n- out = subprocess.check_output(command, stderr=subprocess....
C++
Apache License 2.0
apache/mesos
Improved debuggability of `verify-reviews.py`. Improves error handling in `shell()` and decodes what is returned by `urllib.request.urlopen` when doing API calls. Review: https://reviews.apache.org/r/69701/
46,148
09.01.2019 12:09:59
28,800
465b61ba767da0d4b6c2c19db0199e23cc7adee0
Added and to the 1.4.3 CHANGELOG.
[ { "change_type": "MODIFY", "old_path": "CHANGELOG", "new_path": "CHANGELOG", "diff": "@@ -1467,6 +1467,10 @@ Release Notes - Mesos - Version 1.4.3 (WIP)\n* [MESOS-9419] - Executor to framework message crashes master if framework has not re-registered.\n* [MESOS-9480] - Master may skip processing aut...
C++
Apache License 2.0
apache/mesos
Added MESOS-9510 and MESOS-9516 to the 1.4.3 CHANGELOG.
46,165
07.01.2019 13:32:33
18,000
051afe4ede77d77de845099024a2532e3ff4cc56
Fixed a flaky master volume authorization failure test. The authorized function matcher would sometimes match a retry of the agent registration authorization. To ensure the matcher only matches the appropriate CREATE_VOLUME operation, we now specify that the argument should have the CREATE_VOLUME action. Review:
[ { "change_type": "MODIFY", "old_path": "src/tests/master_tests.cpp", "new_path": "src/tests/master_tests.cpp", "diff": "@@ -10355,7 +10355,9 @@ TEST_F(MasterTest, CreateVolumesV1AuthorizationFailure)\nContentType contentType = ContentType::PROTOBUF;\nPromise<bool> promise;\n- EXPECT_CALL(authorizer,...
C++
Apache License 2.0
apache/mesos
Fixed a flaky master volume authorization failure test. The authorized function matcher would sometimes match a retry of the agent registration authorization. To ensure the matcher only matches the appropriate CREATE_VOLUME operation, we now specify that the argument should have the CREATE_VOLUME action. Review: http...
46,139
08.01.2019 18:35:51
28,800
85437de15f59d59ef34063ac643d7916e0fae468
Fixed compile error with Clang 3.5. Review:
[ { "change_type": "MODIFY", "old_path": "src/resource_provider/storage/provider.cpp", "new_path": "src/resource_provider/storage/provider.cpp", "diff": "@@ -3201,7 +3201,7 @@ StorageLocalResourceProviderProcess::applyCreateDisk(\n? resource.disk().source().metadata()\n: Option<Labels>::none(),\nprofi...
C++
Apache License 2.0
apache/mesos
Fixed compile error with Clang 3.5. Review: https://reviews.apache.org/r/69695
46,057
09.01.2019 14:29:44
28,800
4b63b07ed4f7527236334bf3cb2741c7e5c28029
Added deduplication for read-only master requests. This change will skip the computation of an HTTP response for requests with the same principal, endpoint and request headers where both requests are authenticated within the same batching windows. Review:
[ { "change_type": "MODIFY", "old_path": "src/master/http.cpp", "new_path": "src/master/http.cpp", "diff": "@@ -1259,9 +1259,10 @@ Future<Response> Master::Http::frameworks(\n{VIEW_FRAMEWORK, VIEW_TASK, VIEW_EXECUTOR})\n.then(defer(\nmaster->self(),\n- [this, request](const Owned<ObjectApprovers>& app...
C++
Apache License 2.0
apache/mesos
Added deduplication for read-only master requests. This change will skip the computation of an HTTP response for requests with the same principal, endpoint and request headers where both requests are authenticated within the same batching windows. Review: https://reviews.apache.org/r/68795/
46,057
09.01.2019 14:29:47
28,800
b4d8e7f23be3e0b182207f7573aca707bce82093
Added new metric for cache hits. This new metric counts the total number of cache hits in the newly-added request batching mechanism of the Mesos master. Review:
[ { "change_type": "MODIFY", "old_path": "src/master/http.cpp", "new_path": "src/master/http.cpp", "diff": "@@ -2406,6 +2406,7 @@ Future<Response> Master::Http::deferBatchedRequest(\n// On heavily-loaded masters, this could lead to a delay of several seconds\n// before permission changes for a princip...
C++
Apache License 2.0
apache/mesos
Added new metric for cache hits. This new metric counts the total number of cache hits in the newly-added request batching mechanism of the Mesos master. Review: https://reviews.apache.org/r/69422/
46,057
09.01.2019 14:29:52
28,800
f961ed1af62e00abe014c3362ee6221c4d6bc4bc
Exposed private data members for testing. For the unit tests introduced in the subsequent commit, access to the underlying master object of `cluster::Master` and to the definition of the class `Master::ReadOnlyHandler` are required. Review:
[ { "change_type": "MODIFY", "old_path": "src/master/master.hpp", "new_path": "src/master/master.hpp", "diff": "@@ -1287,6 +1287,7 @@ private:\nMaster* master;\n};\n+public:\n// Inner class used to namespace HTTP handlers that do not change the\n// underlying master object.\n//\n@@ -1338,6 +1339,7 @@ ...
C++
Apache License 2.0
apache/mesos
Exposed private data members for testing. For the unit tests introduced in the subsequent commit, access to the underlying master object of `cluster::Master` and to the definition of the class `Master::ReadOnlyHandler` are required. Review: https://reviews.apache.org/r/69421/
46,057
09.01.2019 14:29:54
28,800
3955b357e7b36b1b20724d920d9138be2180b8e3
Added unit tests for Master HTTP endpoints. This commit adds a set of unit test to verify that basic master HTTP endpoints still work correctly under the presence of request caching. Review:
[ { "change_type": "MODIFY", "old_path": "src/Makefile.am", "new_path": "src/Makefile.am", "diff": "@@ -2508,6 +2508,7 @@ mesos_tests_SOURCES = \\\ntests/master_authorization_tests.cpp \\\ntests/master_benchmarks.cpp \\\ntests/master_contender_detector_tests.cpp \\\n+ tests/master_load_tests.cpp \\\nt...
C++
Apache License 2.0
apache/mesos
Added unit tests for Master HTTP endpoints. This commit adds a set of unit test to verify that basic master HTTP endpoints still work correctly under the presence of request caching. Review: https://reviews.apache.org/r/69064/
46,057
09.01.2019 14:31:12
28,800
d4dd325d06444fdc33dd8c581a6edf2235c36cbd
Sent operation feedback when agent is marked as gone. When an agent is marked as gone through the operator API, notify all frameworks with outstanding offer operations on that agent that these operations have been transitioned to `OPERATION_GONE_BY_OPERATOR`. Review:
[ { "change_type": "MODIFY", "old_path": "src/master/master.cpp", "new_path": "src/master/master.cpp", "diff": "@@ -8942,6 +8942,51 @@ void Master::markGone(Slave* slave, const TimeInfo& goneTime)\nmessage.set_message(\"Agent has been marked gone\");\nsend(slave->pid, message);\n+ // Collect all offer...
C++
Apache License 2.0
apache/mesos
Sent operation feedback when agent is marked as gone. When an agent is marked as gone through the operator API, notify all frameworks with outstanding offer operations on that agent that these operations have been transitioned to `OPERATION_GONE_BY_OPERATOR`. Review: https://reviews.apache.org/r/69575/
46,057
09.01.2019 14:31:19
28,800
277d239813807dc089b47a386124705a01867781
Remove outstanding operations when removing agents. Usually, offer operations are removed when the framework acknowledges a terminal operation status update. However, currently only operations on registered agents can be acknowledged. This commit explicitly deletes all outstanding operations from an agent when it is re...
[ { "change_type": "MODIFY", "old_path": "src/master/master.cpp", "new_path": "src/master/master.cpp", "diff": "@@ -10985,6 +10985,32 @@ void Master::__removeSlave(\nremoveInverseOffer(inverseOffer, true); // Rescind!\n}\n+ // Usually, operations are removed when the framework acknowledges\n+ // a ter...
C++
Apache License 2.0
apache/mesos
Remove outstanding operations when removing agents. Usually, offer operations are removed when the framework acknowledges a terminal operation status update. However, currently only operations on registered agents can be acknowledged. This commit explicitly deletes all outstanding operations from an agent when it is...
46,057
09.01.2019 14:32:30
28,800
9862262956d4a8f5e32c1267c2e0b36f41f7fc73
Fixed flaky check in cluster::Slave destructor. The destructor of `cluster::Slave` contained an assertion that was not safe to assume in the presence of the composing containerizer. This commit adds an additional `Clock::settle()` to fix the issue. Review:
[ { "change_type": "MODIFY", "old_path": "src/tests/cluster.cpp", "new_path": "src/tests/cluster.cpp", "diff": "@@ -688,8 +688,19 @@ Slave::~Slave()\n}\n}\n- if (paused) {\n+ // When using the composing containerizer, the assertion checking\n+ // `containers->empty()` below is racy, since the containe...
C++
Apache License 2.0
apache/mesos
Fixed flaky check in cluster::Slave destructor. The destructor of `cluster::Slave` contained an assertion that was not safe to assume in the presence of the composing containerizer. This commit adds an additional `Clock::settle()` to fix the issue. Review: https://reviews.apache.org/r/69436/
46,103
11.01.2019 09:27:58
-3,600
dd2605efabff656cfba0218855d4b2dbfcba3051
Added resource provider information to v0 agent state endpoint. Review:
[ { "change_type": "MODIFY", "old_path": "src/slave/http.cpp", "new_path": "src/slave/http.cpp", "diff": "@@ -1278,7 +1278,12 @@ Future<Response> Http::state(\nreturn ObjectApprovers::create(\nslave->authorizer,\nprincipal,\n- {VIEW_FRAMEWORK, VIEW_TASK, VIEW_EXECUTOR, VIEW_FLAGS, VIEW_ROLE})\n+ {VIEW...
C++
Apache License 2.0
apache/mesos
Added resource provider information to v0 agent state endpoint. Review: https://reviews.apache.org/r/69661/
46,103
11.01.2019 09:28:00
-3,600
50c37a6365700f849b51e5ff0cf7ae08c11ee5a7
Displayed resource provider information in the Mesos webui. Review:
[ { "change_type": "MODIFY", "old_path": "src/webui/app/agents/agent.html", "new_path": "src/webui/app/agents/agent.html", "diff": "</div>\n</div>\n+\n+ <!-- Only display this table if resource providers are present. -->\n+ <div class=\"col-md-9\" ng-if=\"!_.isEmpty(agent.resource_providers)\">\n+ <ta...
C++
Apache License 2.0
apache/mesos
Displayed resource provider information in the Mesos webui. Review: https://reviews.apache.org/r/69662/
46,103
11.01.2019 09:44:24
-3,600
7447fbc45d1375dd64644a3b130007da061fd5dc
Changed agent to not report disconnected resource providers. This patch changes the agent to not report disconnected resource providers in the `UpdateSlaveMessage` it emits. We also fix how it generates resource provider-related updates when no resource providers are connected to allow the master to react properly when...
[ { "change_type": "MODIFY", "old_path": "src/slave/slave.cpp", "new_path": "src/slave/slave.cpp", "diff": "@@ -7673,6 +7673,11 @@ UpdateSlaveMessage Slave::generateResourceProviderUpdate() const\n}\n}\n+ // Always add a `resource_providers` field so we can distinguish the\n+ // empty and unset case.\...
C++
Apache License 2.0
apache/mesos
Changed agent to not report disconnected resource providers. This patch changes the agent to not report disconnected resource providers in the `UpdateSlaveMessage` it emits. We also fix how it generates resource provider-related updates when no resource providers are connected to allow the master to react properly whe...
46,188
10.01.2019 14:02:22
28,800
de9831f60329529acbe706849b248dd5c818879c
Switched to use ContainerizerTest for CNI tests. This makes sure that cgroups for each test is independent. Review:
[ { "change_type": "MODIFY", "old_path": "src/tests/containerizer/cni_isolator_tests.cpp", "new_path": "src/tests/containerizer/cni_isolator_tests.cpp", "diff": "@@ -130,12 +130,12 @@ TEST(CniSpecTest, GenerateResolverConfig)\n}\n-class CniIsolatorTest : public MesosTest\n+class CniIsolatorTest : publ...
C++
Apache License 2.0
apache/mesos
Switched to use ContainerizerTest for CNI tests. This makes sure that cgroups for each test is independent. Review: https://reviews.apache.org/r/69710
46,188
10.01.2019 21:02:03
28,800
07bccc6377a180267d4251897a765acba9fa0c4d
Separated runtime dirs from other dirs in MesosTest. Previously, lots of other directories are created inside the agent's runtime_dir. This makes it hard to cleanup agent's runtime dir without affecting other files for the test. This patch makes the runtime directory a separate directory. Review:
[ { "change_type": "MODIFY", "old_path": "src/tests/mesos.cpp", "new_path": "src/tests/mesos.cpp", "diff": "@@ -161,28 +161,28 @@ slave::Flags MesosTest::CreateSlaveFlags()\nslave::Flags flags;\n// Create a temporary work directory (removed by Environment).\n- Try<string> directory = environment->mkdt...
C++
Apache License 2.0
apache/mesos
Separated runtime dirs from other dirs in MesosTest. Previously, lots of other directories are created inside the agent's runtime_dir. This makes it hard to cleanup agent's runtime dir without affecting other files for the test. This patch makes the runtime directory a separate directory. Review: https://reviews.apac...
46,188
10.01.2019 21:05:50
28,800
c338f5ada0123c0558658c6452ac3402d9fbec29
Added a CNI reboot test. This test verifies that CNI DEL is properly called even after the agent host is rebooted, assuming `--network_cni_root_dir_persist` flag is set to true. Review:
[ { "change_type": "MODIFY", "old_path": "src/tests/containerizer/cni_isolator_tests.cpp", "new_path": "src/tests/containerizer/cni_isolator_tests.cpp", "diff": "#include <process/clock.hpp>\n#include <process/collect.hpp>\n+#include <process/http.hpp>\n#include <process/owned.hpp>\n+#include <process...
C++
Apache License 2.0
apache/mesos
Added a CNI reboot test. This test verifies that CNI DEL is properly called even after the agent host is rebooted, assuming `--network_cni_root_dir_persist` flag is set to true. Review: https://reviews.apache.org/r/69712
46,188
10.01.2019 21:31:34
28,800
4b58f5c3b872241f4c46742d21a837e0de9bc104
Fixed a bug in health_check_tests.cpp. We forgot to call MesosTest::SetUp() and MesosTest::TearDown() in the override methods. Review:
[ { "change_type": "MODIFY", "old_path": "src/tests/health_check_tests.cpp", "new_path": "src/tests/health_check_tests.cpp", "diff": "@@ -2106,6 +2106,8 @@ class DockerContainerizerHealthCheckTest\nprotected:\nvoid SetUp() override\n{\n+ MesosTest::SetUp();\n+\nFuture<std::tuple<Nothing, Nothing, Noth...
C++
Apache License 2.0
apache/mesos
Fixed a bug in health_check_tests.cpp. We forgot to call MesosTest::SetUp() and MesosTest::TearDown() in the override methods. Review: https://reviews.apache.org/r/69713
46,188
10.01.2019 21:41:12
28,800
2bfd152e8ff1d42d5cff90b65cc9fdff52297800
Fixed a bug in docker_containerizer_tests.cpp. Forgot to call MesosTest::SetUp() and MesosTest::TearDown() in the override methods. Review:
[ { "change_type": "MODIFY", "old_path": "src/tests/containerizer/docker_containerizer_tests.cpp", "new_path": "src/tests/containerizer/docker_containerizer_tests.cpp", "diff": "@@ -192,6 +192,8 @@ public:\nvoid SetUp() override\n{\n+ MesosTest::SetUp();\n+\nFuture<std::tuple<Nothing, Nothing>> pulls ...
C++
Apache License 2.0
apache/mesos
Fixed a bug in docker_containerizer_tests.cpp. Forgot to call MesosTest::SetUp() and MesosTest::TearDown() in the override methods. Review: https://reviews.apache.org/r/69714
46,055
11.01.2019 12:21:22
28,800
43772dfa7111ebdf759b066728736921062cc4fc
Updated `SlaveRecoveryTest.Reboot` to expect none pids. After agent host is rebooted, the recovered executor's forked pid and libprocess pid will be `NONE()` since we do not read them from agent's meta directory which are actually obsolete after reboot. Review:
[ { "change_type": "MODIFY", "old_path": "src/tests/slave_recovery_tests.cpp", "new_path": "src/tests/slave_recovery_tests.cpp", "diff": "@@ -2798,11 +2798,8 @@ TYPED_TEST(SlaveRecoveryTest, Reboot)\nEXPECT_TRUE(executorState.runs.contains(containerId2.get()));\n- EXPECT_SOME_EQ(\n- executorPid,\n- ex...
C++
Apache License 2.0
apache/mesos
Updated `SlaveRecoveryTest.Reboot` to expect none pids. After agent host is rebooted, the recovered executor's forked pid and libprocess pid will be `NONE()` since we do not read them from agent's meta directory which are actually obsolete after reboot. Review: https://reviews.apache.org/r/69716/
46,055
11.01.2019 12:21:27
28,800
a55593728e04cc0ecc0893b9f3796df9f22f83d4
Added a test `SlaveRecoveryTest.RebootWithExecutorPidReused`. Review:
[ { "change_type": "MODIFY", "old_path": "src/tests/slave_recovery_tests.cpp", "new_path": "src/tests/slave_recovery_tests.cpp", "diff": "@@ -2810,6 +2810,144 @@ TYPED_TEST(SlaveRecoveryTest, Reboot)\n}\n+// When the slave is down we modify the BOOT_ID_FILE and the executor's forked\n+// pid file to s...
C++
Apache License 2.0
apache/mesos
Added a test `SlaveRecoveryTest.RebootWithExecutorPidReused`. Review: https://reviews.apache.org/r/69717/
46,148
11.01.2019 13:47:25
28,800
e3d6b13f1a7c8f87918ac8ea4d8979a1a5681c1c
Updated configuration documentation to include random sorter. See summary. Review:
[ { "change_type": "MODIFY", "old_path": "docs/configuration/master.md", "new_path": "docs/configuration/master.md", "diff": "@@ -361,8 +361,8 @@ the following for more information:\n--framework_sorter=VALUE\n</td>\n<td>\n-Policy to use for allocating resources between a given user's\n-frameworks. Opt...
C++
Apache License 2.0
apache/mesos
Updated configuration documentation to include random sorter. See summary. Review: https://reviews.apache.org/r/69724
46,055
12.01.2019 16:46:33
-28,800
4fe464cf882b28165897f6c2882e1f1bf2fb5459
Waited for status update ACKs in the test `RebootWithExecutorPidReused`.
[ { "change_type": "MODIFY", "old_path": "src/tests/slave_recovery_tests.cpp", "new_path": "src/tests/slave_recovery_tests.cpp", "diff": "@@ -2870,6 +2870,12 @@ TYPED_TEST(SlaveRecoveryTest, RebootWithExecutorPidReused)\n.WillOnce(FutureArg<1>(&failedStatus))\n.WillRepeatedly(Return()); // Ignore subs...
C++
Apache License 2.0
apache/mesos
Waited for status update ACKs in the test `RebootWithExecutorPidReused`.
46,148
11.01.2019 16:10:24
28,800
c8b2aff0b52fd667925b0aa43a2f5040df02b005
Removed unused class fields in the allocator. These fields were used before we introducing the `mesos::allocator::Options` struct. They are now duplicated and unused. Review:
[ { "change_type": "MODIFY", "old_path": "include/mesos/allocator/allocator.hpp", "new_path": "include/mesos/allocator/allocator.hpp", "diff": "@@ -49,12 +49,22 @@ namespace allocator {\nstruct Options\n{\nDuration allocationInterval = Seconds(1);\n+\n+ // Resources (by name) that will be excluded fro...
C++
Apache License 2.0
apache/mesos
Removed unused class fields in the allocator. These fields were used before we introducing the `mesos::allocator::Options` struct. They are now duplicated and unused. Review: https://reviews.apache.org/r/69729
46,148
14.01.2019 16:09:45
28,800
e6578361e7822a44d010118153de0fdeb4fe2caf
Fixed documentation inaccuracies regarding `min_allocatable_resources`. See diff.
[ { "change_type": "MODIFY", "old_path": "docs/configuration/master.md", "new_path": "docs/configuration/master.md", "diff": "@@ -216,7 +216,7 @@ range or set. For example, `range:[1-5]` has a quantity of 5 and `set:{a,b}`\nhas a quantity of 2. The resources in each set should be delimited by\nsemicol...
C++
Apache License 2.0
apache/mesos
Fixed documentation inaccuracies regarding `min_allocatable_resources`. See diff.
46,129
15.01.2019 00:30:25
28,800
2aaf96ecbab316708afb401e43cad2f2f692f687
Fixed the CHANGELOG for 1.5.2.
[ { "change_type": "MODIFY", "old_path": "CHANGELOG", "new_path": "CHANGELOG", "diff": "@@ -859,26 +859,13 @@ All Resolved Issues:\n* [MESOS-8291] - Add documentation about fault domains\n-Release Notes - Mesos - Version 1.5.3 (WIP)\n--------------------------------------------\n-* This is a bug fix r...
C++
Apache License 2.0
apache/mesos
Fixed the CHANGELOG for 1.5.2.
46,103
15.01.2019 22:11:47
-3,600
9cb154de86c688d5d370a1a69730b3df55a3630d
Broke up `SSLTest.ProtocolMismatch` into smaller tests. This patch breaks up the different iterations in `SSLTest.ProtocolMismatch` into smaller tests `SSLProtocol/SSLProtocolTest.Mismatch/N`. While this slightly increases the time to run all combinations sequentially, it leads to much shorter aggregated run time in pa...
[ { "change_type": "MODIFY", "old_path": "3rdparty/libprocess/src/tests/ssl_tests.cpp", "new_path": "3rdparty/libprocess/src/tests/ssl_tests.cpp", "diff": "@@ -112,6 +112,19 @@ Future<Nothing> await_subprocess(\n}\n+// The SSL protocols that we support through configuration flags.\n+static const vecto...
C++
Apache License 2.0
apache/mesos
Broke up `SSLTest.ProtocolMismatch` into smaller tests. This patch breaks up the different iterations in `SSLTest.ProtocolMismatch` into smaller tests `SSLProtocol/SSLProtocolTest.Mismatch/N`. While this slightly increases the time to run all combinations sequentially, it leads to much shorter aggregated run time in p...
46,177
15.01.2019 18:17:00
28,800
44ea60cf9da5e5ab9567c7f1ff06f699adcc733f
Fixed redundant `get()` warning in CNI isolator tests.
[ { "change_type": "MODIFY", "old_path": "src/tests/containerizer/cni_isolator_tests.cpp", "new_path": "src/tests/containerizer/cni_isolator_tests.cpp", "diff": "@@ -2731,7 +2731,7 @@ TEST_F(CniIsolatorTest, ROOT_CleanupAfterReboot)\n// 3. Remove all mounts.\n// 4. Cleanup the runtime_dir.\nslave.get(...
C++
Apache License 2.0
apache/mesos
Fixed redundant `get()` warning in CNI isolator tests.
46,103
16.01.2019 14:07:57
-3,600
2117f671c450d7c74edc53078e8c0ed6035020aa
Fixed flakiness of resource provider ContainerTerminationMetric test. Plugin restarts can currently fail if the resource provider is killed before it has performed minimal reconciliation steps. This patch adds additional synchronization to ensure the plugin container can safely be killed to safely perform the desired t...
[ { "change_type": "MODIFY", "old_path": "src/tests/storage_local_resource_provider_tests.cpp", "new_path": "src/tests/storage_local_resource_provider_tests.cpp", "diff": "@@ -3290,8 +3290,7 @@ TEST_F(\n// This test verifies that storage local resource provider properly\n// reports the metric related ...
C++
Apache License 2.0
apache/mesos
Fixed flakiness of resource provider ContainerTerminationMetric test. Plugin restarts can currently fail if the resource provider is killed before it has performed minimal reconciliation steps. This patch adds additional synchronization to ensure the plugin container can safely be killed to safely perform the desired ...
46,053
16.01.2019 16:22:44
-3,600
c77820828fcb740161231e2e734ea3b0fc49c73f
Refactored parallel test runner. Review:
[ { "change_type": "MODIFY", "old_path": "support/mesos-gtest-runner.py", "new_path": "support/mesos-gtest-runner.py", "diff": "@@ -44,23 +44,23 @@ class Bcolors:\nmodifier, and terminate it with 'ENDC'.\n\"\"\"\n- HEADER = '\\033[95m' if sys.stdout.isatty() else ''\n- OKBLUE = '\\033[94m' if sys.stdo...
C++
Apache License 2.0
apache/mesos
Refactored parallel test runner. Review: https://reviews.apache.org/r/69612/
46,057
16.01.2019 11:42:36
28,800
229f4c65093e6eef872298bc72f95968a7f46bca
Notified frameworks when operations are marked as unreachable. When an agent is being marked as unreachable due to missing the reregistration timeout, all operations on that agent are implicilty transitioned to status `OPERATION_UNREACHABLE`. This commit adds an explicit notification for this transition to frameworks w...
[ { "change_type": "MODIFY", "old_path": "src/master/master.cpp", "new_path": "src/master/master.cpp", "diff": "@@ -8955,6 +8955,13 @@ void Master::_markUnreachable(\n} else {\nCHECK(slaves.registered.contains(slave.id()));\n+ // Notify frameworks that their operations have been transitioned\n+ // to ...
C++
Apache License 2.0
apache/mesos
Notified frameworks when operations are marked as unreachable. When an agent is being marked as unreachable due to missing the reregistration timeout, all operations on that agent are implicilty transitioned to status `OPERATION_UNREACHABLE`. This commit adds an explicit notification for this transition to frameworks...
46,057
16.01.2019 11:46:56
28,800
f01853aea4eaa3df6dec3f7342e5583f5addd07d
Fixed flakiness in MasterAPITest.OperationUpdatesUponOfferGone. It could happen that the first offer was sent before the allocator had been updated with the resources from the resource provider. To further increase reliability, stopped the clock during this test. Review:
[ { "change_type": "MODIFY", "old_path": "src/tests/api_tests.cpp", "new_path": "src/tests/api_tests.cpp", "diff": "@@ -4955,6 +4955,8 @@ TEST_P(MasterAPITest, TaskUpdatesUponAgentGone)\n// that are pending when the agent is marked as gone.\nTEST_P(MasterAPITest, OperationUpdatesUponAgentGone)\n{\n+ C...
C++
Apache License 2.0
apache/mesos
Fixed flakiness in MasterAPITest.OperationUpdatesUponOfferGone. It could happen that the first offer was sent before the allocator had been updated with the resources from the resource provider. To further increase reliability, stopped the clock during this test. Review: https://reviews.apache.org/r/69726/
46,103
18.01.2019 09:39:40
-3,600
97703bed2aa9d420eb7736957942c4e56a3579af
Moved logging of resource provider HTTP actions before authorization. Review:
[ { "change_type": "MODIFY", "old_path": "src/slave/http.cpp", "new_path": "src/slave/http.cpp", "diff": "@@ -3214,10 +3214,14 @@ Future<Response> Http::addResourceProviderConfig(\nCHECK_EQ(mesos::agent::Call::ADD_RESOURCE_PROVIDER_CONFIG, call.type());\nCHECK(call.has_add_resource_provider_config());...
C++
Apache License 2.0
apache/mesos
Moved logging of resource provider HTTP actions before authorization. Review: https://reviews.apache.org/r/69782/
46,103
18.01.2019 09:39:43
-3,600
c5a11ce7adcad2f024b64d5cfc678ac678e1d5df
Added agent support to remove local resource providers. This patch adds support for triggering permanent removal of local resource providers. We also add authorization and tests as part of this patch. Review:
[ { "change_type": "MODIFY", "old_path": "include/mesos/agent/agent.proto", "new_path": "include/mesos/agent/agent.proto", "diff": "@@ -97,6 +97,8 @@ message Call {\nUPDATE_RESOURCE_PROVIDER_CONFIG = 28; // See 'UpdateResourceProviderConfig' below. // NOLINT\nREMOVE_RESOURCE_PROVIDER_CONFIG = 29; // S...
C++
Apache License 2.0
apache/mesos
Added agent support to remove local resource providers. This patch adds support for triggering permanent removal of local resource providers. We also add authorization and tests as part of this patch. Review: https://reviews.apache.org/r/68147/
46,103
18.01.2019 09:39:52
-3,600
3de5efba936c8b7bd1bf88c2fd05006a93271b73
Added an integration test for resource provider removal. Review:
[ { "change_type": "MODIFY", "old_path": "src/tests/slave_tests.cpp", "new_path": "src/tests/slave_tests.cpp", "diff": "@@ -142,6 +142,7 @@ using testing::_;\nusing testing::AtMost;\nusing testing::DoAll;\nusing testing::Eq;\n+using testing::Exactly;\nusing testing::StrEq;\nusing testing::Invoke;\nusi...
C++
Apache License 2.0
apache/mesos
Added an integration test for resource provider removal. Review: https://reviews.apache.org/r/69158/
46,055
22.01.2019 11:42:49
28,800
0335d37fe6905ae84378a418395c38a3de9dfc02
Fixed a minor coding error in `createSandboxDirectory`. Review:
[ { "change_type": "MODIFY", "old_path": "src/slave/paths.cpp", "new_path": "src/slave/paths.cpp", "diff": "@@ -799,7 +799,7 @@ Try<Nothing> createSandboxDirectory(\n// Since this is a sandbox directory containing private task data,\n// we want to ensure that it is not accessible to \"others\".\nTry<N...
C++
Apache License 2.0
apache/mesos
Fixed a minor coding error in `createSandboxDirectory`. Review: https://reviews.apache.org/r/69805/
46,148
23.01.2019 14:05:35
28,800
6ccb0d516e3c86664e28aac48612b798c946dccc
Added and to 1.4.3 CHANGELOG.
[ { "change_type": "MODIFY", "old_path": "CHANGELOG", "new_path": "CHANGELOG", "diff": "@@ -1476,9 +1476,11 @@ Release Notes - Mesos - Version 1.4.3 (WIP)\n* [MESOS-9151] - Container stuck at ISOLATING due to FD leak.\n* [MESOS-9170] - Zookeeper doesn't compile with newer gcc due to format error.\n* [...
C++
Apache License 2.0
apache/mesos
Added MESOS-9221 and MESOS-9304 to 1.4.3 CHANGELOG.
46,148
23.01.2019 14:35:49
28,800
0f8ee9555f89f0a5f139bc12c666a60164c7b09b
Removed WIP from 1.4.3 release notes.
[ { "change_type": "MODIFY", "old_path": "CHANGELOG", "new_path": "CHANGELOG", "diff": "@@ -1459,7 +1459,7 @@ All Resolved Issues:\n* [MESOS-8394] - Bump CSI to 0.1.0.\n-Release Notes - Mesos - Version 1.4.3 (WIP)\n+Release Notes - Mesos - Version 1.4.3\n-------------------------------------------\n* ...
C++
Apache License 2.0
apache/mesos
Removed WIP from 1.4.3 release notes.
46,129
22.01.2019 17:13:15
28,800
b54b493d6d6ae479d2154ed05f9615a11d662391
Fixed a test flakiness in ROOT_CleanupAfterReboot. Review:
[ { "change_type": "MODIFY", "old_path": "src/tests/containerizer/cni_isolator_tests.cpp", "new_path": "src/tests/containerizer/cni_isolator_tests.cpp", "diff": "@@ -2685,7 +2685,8 @@ TEST_F(CniIsolatorTest, ROOT_CleanupAfterReboot)\nEXPECT_CALL(sched, statusUpdate(&driver, _))\n.WillOnce(FutureArg<1>...
C++
Apache License 2.0
apache/mesos
Fixed a test flakiness in ROOT_CleanupAfterReboot. Review: https://reviews.apache.org/r/69809
46,129
22.01.2019 17:13:40
28,800
4c2a848c0fb1c55f1a4b9a3d26a37bdc9c60ff36
Fixed some typo in agent reboot tests. Review:
[ { "change_type": "MODIFY", "old_path": "src/tests/slave_recovery_tests.cpp", "new_path": "src/tests/slave_recovery_tests.cpp", "diff": "@@ -2748,7 +2748,7 @@ TYPED_TEST(SlaveRecoveryTest, Reboot)\n// Modify the boot ID to simulate a reboot.\nASSERT_SOME(os::write(\npaths::getBootIdPath(paths::getMet...
C++
Apache License 2.0
apache/mesos
Fixed some typo in agent reboot tests. Review: https://reviews.apache.org/r/69810
46,103
24.01.2019 10:04:51
-3,600
a7d960a91d6bb213cb9b8e5054ee0741436d6aee
Made starting and stopping on CSI plugin containers more verbose. This patch adds some additional logging so it becomes easier to follow the lifecycle of CSI plugins. The container daemon already logged some related information, but didn't directly call out that it was working with CSI plugin containers. Review:
[ { "change_type": "MODIFY", "old_path": "src/resource_provider/storage/provider.cpp", "new_path": "src/resource_provider/storage/provider.cpp", "diff": "@@ -2017,6 +2017,11 @@ Future<csi::v0::Client> StorageLocalResourceProviderProcess::getService(\nconfig->resources(),\ncontainerInfo,\nstd::function...
C++
Apache License 2.0
apache/mesos
Made starting and stopping on CSI plugin containers more verbose. This patch adds some additional logging so it becomes easier to follow the lifecycle of CSI plugins. The container daemon already logged some related information, but didn't directly call out that it was working with CSI plugin containers. Review: http...
46,129
24.01.2019 14:39:14
28,800
8c82c9ad5da2f0b138e0d400686524fed7455564
Updated releases.yml for 1.5.2.
[ { "change_type": "MODIFY", "old_path": "site/data/releases.yml", "new_path": "site/data/releases.yml", "diff": "@@ -15,6 +15,10 @@ news:\n## - title: (required)\n## date: (required)\n## blog: (required)\n+ - title: Mesos 1.5.2 is released!\n+ date: January 24, 2019\n+ blog: mesos-1-5-2-released\n+ t...
C++
Apache License 2.0
apache/mesos
Updated releases.yml for 1.5.2.
46,129
24.01.2019 15:01:16
28,800
693071aacf098567256bd2797d94a477a53f6f3f
Fixed JIRA list in 1.5.1 release blog.
[ { "change_type": "MODIFY", "old_path": "site/source/blog/2018-05-31-mesos-1-5-1-released.md", "new_path": "site/source/blog/2018-05-31-mesos-1-5-1-released.md", "diff": "@@ -12,17 +12,41 @@ tags: Release\nThe latest Mesos 1.5.x release, 1.5.1, is now available for [download](http://mesos.apache.org/...
C++
Apache License 2.0
apache/mesos
Fixed JIRA list in 1.5.1 release blog.
46,053
27.01.2019 23:51:56
28,800
03e9e4edf92b8feaa27a6760cb121792218d36d7
Added Seccomp-related protobuf messages. See summary. Review:
[ { "change_type": "MODIFY", "old_path": "include/mesos/mesos.proto", "new_path": "include/mesos/mesos.proto", "diff": "@@ -3146,6 +3146,17 @@ message CapabilityInfo {\n}\n+/**\n+ * Encapsulation for Seccomp configuration, which is Linux specific.\n+ */\n+message SeccompInfo {\n+ // A filename of the ...
C++
Apache License 2.0
apache/mesos
Added Seccomp-related protobuf messages. See summary. Review: https://reviews.apache.org/r/68017/
46,053
27.01.2019 23:51:57
28,800
8d3724859c2342f3c25a32ba2f3ec540a06ff721
Added `SeccompFilter` class. `SeccompFilter` class is a wrapper for `libseccomp` API. Its main purpose is to provide a translation of the `ContainerSeccompProfile` message into calls of `libseccomp` API. Review:
[ { "change_type": "MODIFY", "old_path": "src/CMakeLists.txt", "new_path": "src/CMakeLists.txt", "diff": "@@ -342,6 +342,11 @@ if (ENABLE_PORT_MAPPING_ISOLATOR)\nslave/containerizer/mesos/isolators/network/port_mapping.cpp)\nendif()\n+if (ENABLE_SECCOMP_ISOLATOR)\n+ list(APPEND LINUX_SRC\n+ linux/secc...
C++
Apache License 2.0
apache/mesos
Added `SeccompFilter` class. `SeccompFilter` class is a wrapper for `libseccomp` API. Its main purpose is to provide a translation of the `ContainerSeccompProfile` message into calls of `libseccomp` API. Review: https://reviews.apache.org/r/68018/
46,053
27.01.2019 23:51:59
28,800
12c4ebe1c67209c94afc243a2a5452933a888582
Added a parser for the Docker Seccomp config format. Docker Seccomp config is a JSON file containing Seccomp filtering rules. This patch introduces a parser for Docker Seccomp config format. This parser accepts a JSON-string, parses and validates it, then returns a prepared `ContainerSeccompProfile` message. Review:
[ { "change_type": "MODIFY", "old_path": "src/CMakeLists.txt", "new_path": "src/CMakeLists.txt", "diff": "@@ -344,7 +344,8 @@ endif()\nif (ENABLE_SECCOMP_ISOLATOR)\nlist(APPEND LINUX_SRC\n- linux/seccomp/seccomp.cpp)\n+ linux/seccomp/seccomp.cpp\n+ linux/seccomp/seccomp_parser.cpp)\nendif ()\nset(LOCA...
C++
Apache License 2.0
apache/mesos
Added a parser for the Docker Seccomp config format. Docker Seccomp config is a JSON file containing Seccomp filtering rules. This patch introduces a parser for Docker Seccomp config format. This parser accepts a JSON-string, parses and validates it, then returns a prepared `ContainerSeccompProfile` message. Review: ...
46,053
27.01.2019 23:52:00
28,800
c99c6c6a217965f9ff83ccd05dde31284dddcd10
Added Seccomp-related flags to the agent. `--seccomp_config_dir` and `--seccomp_profile_name` flags have been added to the agent. These flags are used by the `linux/seccomp` isolator to specify the path of the directory containing Seccomp profiles and the name of the default Seccomp profile. Review:
[ { "change_type": "MODIFY", "old_path": "docs/configuration/agent.md", "new_path": "docs/configuration/agent.md", "diff": "@@ -1627,6 +1627,49 @@ isolator. (default: false)\n</table>\n+## Seccomp Isolator flags\n+\n+*Available when configured with `--enable-seccomp-isolator`.*\n+\n+<table class=\"tab...
C++
Apache License 2.0
apache/mesos
Added Seccomp-related flags to the agent. `--seccomp_config_dir` and `--seccomp_profile_name` flags have been added to the agent. These flags are used by the `linux/seccomp` isolator to specify the path of the directory containing Seccomp profiles and the name of the default Seccomp profile. Review: https://reviews.a...
46,053
27.01.2019 23:52:03
28,800
1eda420ff3fb9c2fc1e9d8840e71812fa1d57ead
Enabled Seccomp filter in the containerizer launcher. Containerizer launcher creates an instance of `SeccompFilter`, which is used to setup Seccomp profile using `ContainerSeccompProfile` message prepared by the `linux/seccomp` isolator. Review:
[ { "change_type": "MODIFY", "old_path": "src/slave/containerizer/mesos/launch.cpp", "new_path": "src/slave/containerizer/mesos/launch.cpp", "diff": "#include \"linux/ns.hpp\"\n#endif\n+#ifdef ENABLE_SECCOMP_ISOLATOR\n+#include \"linux/seccomp/seccomp.hpp\"\n+#endif\n+\n#ifndef __WINDOWS__\n#include \...
C++
Apache License 2.0
apache/mesos
Enabled Seccomp filter in the containerizer launcher. Containerizer launcher creates an instance of `SeccompFilter`, which is used to setup Seccomp profile using `ContainerSeccompProfile` message prepared by the `linux/seccomp` isolator. Review: https://reviews.apache.org/r/68022/
46,053
27.01.2019 23:52:05
28,800
90ddd116fabde038a5726c69d3dda8da3c884855
Added Seccomp parser tests. See summary. Review:
[ { "change_type": "MODIFY", "old_path": "src/Makefile.am", "new_path": "src/Makefile.am", "diff": "@@ -2651,6 +2651,11 @@ mesos_tests_SOURCES += \\\ntests/containerizer/xfs_quota_tests.cpp\nendif\n+if ENABLE_SECCOMP_ISOLATOR\n+mesos_tests_SOURCES += \\\n+ tests/containerizer/linux_seccomp_parser_test...
C++
Apache License 2.0
apache/mesos
Added Seccomp parser tests. See summary. Review: https://reviews.apache.org/r/69409/
46,053
27.01.2019 23:52:06
28,800
528cf11c2a39876f5356830d3a4c52e24c1677e3
Added Seccomp isolator tests. See summary. Review:
[ { "change_type": "MODIFY", "old_path": "src/Makefile.am", "new_path": "src/Makefile.am", "diff": "@@ -2653,7 +2653,8 @@ endif\nif ENABLE_SECCOMP_ISOLATOR\nmesos_tests_SOURCES += \\\n- tests/containerizer/linux_seccomp_parser_tests.cpp\n+ tests/containerizer/linux_seccomp_parser_tests.cpp \\\n+ tests...
C++
Apache License 2.0
apache/mesos
Added Seccomp isolator tests. See summary. Review: https://reviews.apache.org/r/69420/
46,053
27.01.2019 23:52:08
28,800
9c5066c1761878c1d612ec72bf59bd08658fb84a
Documented the `linux/seccomp` isolator. See summary. Review:
[ { "change_type": "ADD", "old_path": null, "new_path": "docs/isolators/linux-seccomp.md", "diff": "+---\n+title: Apache Mesos - Linux Seccomp Isolator in Mesos Containerizer\n+layout: documentation\n+---\n+\n+# Linux Seccomp Support in Mesos Containerizer\n+\n+This document describes the `linux/secco...
C++
Apache License 2.0
apache/mesos
Documented the `linux/seccomp` isolator. See summary. Review: https://reviews.apache.org/r/69493/
46,129
28.01.2019 13:29:42
28,800
07b5df3410da08fff1634d163112ca0168d39dc9
Fixed the release.yml 1.5.2 release target version typo.
[ { "change_type": "MODIFY", "old_path": "site/data/releases.yml", "new_path": "site/data/releases.yml", "diff": "@@ -18,7 +18,7 @@ news:\n- title: Mesos 1.5.2 is released!\ndate: January 24, 2019\nblog: mesos-1-5-2-released\n- target_version: 1.5.1\n+ target_version: 1.5.2\n- title: Mesos 1.7.0 is re...
C++
Apache License 2.0
apache/mesos
Fixed the release.yml 1.5.2 release target version typo.
46,129
28.01.2019 13:33:31
28,800
7894e87de5f88ec81800194e6b584214ffcb157b
Fixed target versions on release.yml.
[ { "change_type": "MODIFY", "old_path": "site/data/releases.yml", "new_path": "site/data/releases.yml", "diff": "@@ -22,12 +22,15 @@ news:\n- title: Mesos 1.7.0 is released!\ndate: September 24, 2018\nblog: mesos-1-7-0-released\n+ target_version: 1.7.0\n- title: Mesos 1.4.2 is released!\ndate: August...
C++
Apache License 2.0
apache/mesos
Fixed target versions on release.yml.
46,143
28.01.2019 13:44:27
28,800
54a35ad61a53b88ac5bffbdb49f3d09066c81a5f
Updated text in website downloads page.
[ { "change_type": "MODIFY", "old_path": "site/source/downloads.html.erb", "new_path": "site/source/downloads.html.erb", "diff": "@@ -35,10 +35,8 @@ breadcrumb: Downloads\n<h4>Getting the code via source control</h4>\n<p>The codebase can also be downloaded from the Apache git repository at:\n<code>htt...
C++
Apache License 2.0
apache/mesos
Updated text in website downloads page.
46,143
28.01.2019 13:47:24
28,800
3b9bf3035ebd2b6f378394c60f0ba18dbc9c8b11
Minor typo fix in downloads page.
[ { "change_type": "MODIFY", "old_path": "site/source/downloads.html.erb", "new_path": "site/source/downloads.html.erb", "diff": "@@ -36,7 +36,7 @@ breadcrumb: Downloads\n<p>The codebase can also be downloaded from the Apache git repository at:\n<code>https://gitbox.apache.org/repos/asf/mesos.git</cod...
C++
Apache License 2.0
apache/mesos
Minor typo fix in downloads page.
46,103
07.11.2018 14:54:54
28,800
a99f31aaea345efcd09ce876a0a09f9bb974d967
Disabled parallel test execution for reviewbot. While we globally disabled parallel test execution for reviewbot jobs in `37532fae01d`, we missed that the configuration was overwritten downstream. This patch disables parallel tests also in the script ultimately performing the final configuration. Review:
[ { "change_type": "MODIFY", "old_path": "support/verify-reviews.py", "new_path": "support/verify-reviews.py", "diff": "@@ -209,7 +209,8 @@ def verify_review(review_request):\n\"BUILDTOOL='autotools' \"\n\"COMPILER='gcc' \"\n\"CONFIGURATION='--verbose \"\n- \"--disable-libtool-wrappers' \"\n+ \"--disa...
C++
Apache License 2.0
apache/mesos
Disabled parallel test execution for reviewbot. While we globally disabled parallel test execution for reviewbot jobs in `37532fae01d`, we missed that the configuration was overwritten downstream. This patch disables parallel tests also in the script ultimately performing the final configuration. Review: https://rev...
46,128
30.01.2019 07:38:54
28,800
d21f0a250265f9f41877f8f1ef516a53154f11cf
Added agent capability for operation feedback on default resources. Review:
[ { "change_type": "MODIFY", "old_path": "include/mesos/mesos.proto", "new_path": "include/mesos/mesos.proto", "diff": "@@ -999,6 +999,10 @@ message SlaveInfo {\n// This expresses the capability for the agent to handle persistent volume\n// resize operations safely. This capability is turned on by def...
C++
Apache License 2.0
apache/mesos
Added agent capability for operation feedback on default resources. Review: https://reviews.apache.org/r/69786/
46,057
30.01.2019 07:39:03
28,800
b056a871e892c3603ca899bbdf2ab61355896886
Enabled operation feedback on agent default resources. Up to now, the master would validate that any operation requesting operation feedback would only act on resources belonging to a resource provider. This patch removes this restriction and enables frameworks to request operation feedback on an agent's default resour...
[ { "change_type": "MODIFY", "old_path": "src/master/master.cpp", "new_path": "src/master/master.cpp", "diff": "@@ -4356,20 +4356,23 @@ void Master::accept(\nbreak;\n}\n- if (getResourceProviderId(operation).isNone()) {\n+ if (!slave->capabilities.resourceProvider) {\ndrop(framework,\noperation,\n- \"...
C++
Apache License 2.0
apache/mesos
Enabled operation feedback on agent default resources. Up to now, the master would validate that any operation requesting operation feedback would only act on resources belonging to a resource provider. This patch removes this restriction and enables frameworks to request operation feedback on an agent's default reso...
46,139
30.01.2019 07:39:23
28,800
30b519422d70b0fba1a9d3e7b8c7f0bcbb511382
Fixed a typo. Review:
[ { "change_type": "MODIFY", "old_path": "src/slave/slave.cpp", "new_path": "src/slave/slave.cpp", "diff": "@@ -7846,7 +7846,7 @@ void Slave::handleResourceProviderMessage(\n// the total resources reported by the resource provider, and thus it\n// should not be applied again in an operation status upd...
C++
Apache License 2.0
apache/mesos
Fixed a typo. Review: https://reviews.apache.org/r/69790/
46,139
30.01.2019 07:39:31
28,800
346dd4d87cb4e486d02d0e07cdc49a89346f9425
Added an ostream operator for `Operation`. Review:
[ { "change_type": "MODIFY", "old_path": "include/mesos/type_utils.hpp", "new_path": "include/mesos/type_utils.hpp", "diff": "@@ -405,6 +405,9 @@ std::ostream& operator<<(std::ostream& stream, const OperationID& operationId);\nstd::ostream& operator<<(std::ostream& stream, const OperationState& state)...
C++
Apache License 2.0
apache/mesos
Added an ostream operator for `Operation`. Review: https://reviews.apache.org/r/69792/
46,139
30.01.2019 07:39:35
28,800
b33a5daa9a8a98592e41723117620555f0d0036c
Added the `ResourceState` agent protobuf message. This protobuf message will be used by the agent to atomically checkpoint resources and operations. Review:
[ { "change_type": "MODIFY", "old_path": "src/CMakeLists.txt", "new_path": "src/CMakeLists.txt", "diff": "@@ -84,6 +84,7 @@ PROTOC_GENERATE(INTERNAL TARGET messages/state)\nPROTOC_GENERATE(INTERNAL TARGET slave/containerizer/mesos/isolators/network/cni/spec)\nPROTOC_GENERATE(INTERNAL TARGET slave/cont...
C++
Apache License 2.0
apache/mesos
Added the `ResourceState` agent protobuf message. This protobuf message will be used by the agent to atomically checkpoint resources and operations. Review: https://reviews.apache.org/r/69793/
46,139
30.01.2019 07:39:36
28,800
66c7526add26e45a5cb9cf1eeb72dc2743bcfcd9
Made agent checkpoint operations affecting default resources. This patch makes the agent atomically checkpoint resoures and operations affecting agent default resources. This is needed in order to provide reliable operation feedback for operations affecting agent default resources. Review:
[ { "change_type": "MODIFY", "old_path": "src/slave/paths.cpp", "new_path": "src/slave/paths.cpp", "diff": "@@ -64,6 +64,7 @@ const char HTTP_MARKER_FILE[] = \"http.marker\";\nconst char FORKED_PID_FILE[] = \"forked.pid\";\nconst char TASK_INFO_FILE[] = \"task.info\";\nconst char TASK_UPDATES_FILE[] =...
C++
Apache License 2.0
apache/mesos
Made agent checkpoint operations affecting default resources. This patch makes the agent atomically checkpoint resoures and operations affecting agent default resources. This is needed in order to provide reliable operation feedback for operations affecting agent default resources. Review: https://reviews.apache.org/...
46,139
30.01.2019 07:39:45
28,800
a300849d435494a82b13d5b138892737c705e076
Made agent recover atomically checkpointed resources and operations. Review:
[ { "change_type": "MODIFY", "old_path": "src/slave/slave.cpp", "new_path": "src/slave/slave.cpp", "diff": "@@ -7312,7 +7312,9 @@ Future<Nothing> Slave::recover(const Try<state::State>& state)\n}\nreturn taskStatusUpdateManager->recover(metaDir, slaveState)\n- .then(defer(self(), &Slave::_recoverConta...
C++
Apache License 2.0
apache/mesos
Made agent recover atomically checkpointed resources and operations. Review: https://reviews.apache.org/r/69795/
46,139
30.01.2019 07:39:50
28,800
2940a2e989a350609a89b1b3f015bb5e6d44f28a
Added test to ensure backwards compatibility of resources checkpointing. Review:
[ { "change_type": "MODIFY", "old_path": "src/tests/reservation_tests.cpp", "new_path": "src/tests/reservation_tests.cpp", "diff": "@@ -2489,6 +2489,177 @@ TEST_F(ReservationCheckpointingTest, SendingCheckpointResourcesMessage)\ndriver.join();\n}\n+\n+// This test verifies that the agent still checkpo...
C++
Apache License 2.0
apache/mesos
Added test to ensure backwards compatibility of resources checkpointing. Review: https://reviews.apache.org/r/69825/
46,139
30.01.2019 07:39:52
28,800
c4f374cf056423e8551802bcbada4b63b7f81cc4
Added end-to-end test for operations affecting agent default resources. Review:
[ { "change_type": "MODIFY", "old_path": "src/tests/slave_tests.cpp", "new_path": "src/tests/slave_tests.cpp", "diff": "@@ -11432,6 +11432,135 @@ TEST_F(SlaveTest, RunTaskResourceVersions)\nEXPECT_EQ(TaskStatus::REASON_INVALID_OFFERS, statusUpdate->reason());\n}\n+\n+// This test verifies that on agen...
C++
Apache License 2.0
apache/mesos
Added end-to-end test for operations affecting agent default resources. Review: https://reviews.apache.org/r/69851/
46,128
30.01.2019 07:39:56
28,800
568b406cd92773035628ca5c3123623629ced4a0
Track operations on agent default resources in master state. This patch updates the master to add operations on agent default resources to its in-memory state upon receipt of UpdateSlaveMessages. Review:
[ { "change_type": "MODIFY", "old_path": "src/master/master.cpp", "new_path": "src/master/master.cpp", "diff": "@@ -8117,6 +8117,19 @@ void Master::updateSlave(UpdateSlaveMessage&& message)\n}\n}\n+ // Add new operations reported by the agent which the master isn't aware of.\n+ // This could happen, f...
C++
Apache License 2.0
apache/mesos
Track operations on agent default resources in master state. This patch updates the master to add operations on agent default resources to its in-memory state upon receipt of UpdateSlaveMessages. Review: https://reviews.apache.org/r/69843/
46,053
30.01.2019 10:42:10
28,800
ee38e550cff47875f9dd4992edb4934a72e527a8
Added an example of Seccomp profile. See summary. Review:
[ { "change_type": "ADD", "old_path": null, "new_path": "docs/examples/seccomp_default.json", "diff": "+{\n+ \"defaultAction\": \"SCMP_ACT_ERRNO\",\n+ \"archMap\": [\n+ {\n+ \"architecture\": \"SCMP_ARCH_X86_64\",\n+ \"subArchitectures\": [\n+ \"SCMP_ARCH_X86\",\n+ \"SCMP_ARCH_X32\"\n+ ]\n+ },\n+ {\n+...
C++
Apache License 2.0
apache/mesos
Added an example of Seccomp profile. See summary. Review: https://reviews.apache.org/r/69855/
46,128
30.01.2019 12:23:42
28,800
f44535bca811720fc272c9abad2bc78652d61fe3
Removed an unnecessary '.get()' from a master test. Review:
[ { "change_type": "MODIFY", "old_path": "src/tests/master_tests.cpp", "new_path": "src/tests/master_tests.cpp", "diff": "@@ -9283,8 +9283,8 @@ TEST_F(MasterTest, OperationUpdateDuringFailover)\noperations.operations(1).uuid().value()};\nstd::set<string> expectedOperationUUIDs =\n- {operationUUID1.get...
C++
Apache License 2.0
apache/mesos
Removed an unnecessary '.get()' from a master test. Review: https://reviews.apache.org/r/69863
46,103
30.01.2019 09:13:49
-3,600
9f6ccbd41a55846e54297ecb31fddbeee3be50c9
Declared `HierarchicalAllocatorProcess::allocatable` `const`. Review:
[ { "change_type": "MODIFY", "old_path": "src/master/allocator/mesos/hierarchical.cpp", "new_path": "src/master/allocator/mesos/hierarchical.cpp", "diff": "@@ -2415,7 +2415,7 @@ bool HierarchicalAllocatorProcess::isFiltered(\n}\n-bool HierarchicalAllocatorProcess::allocatable(const Resources& resource...
C++
Apache License 2.0
apache/mesos
Declared `HierarchicalAllocatorProcess::allocatable` `const`. Review: https://reviews.apache.org/r/69861
46,128
05.02.2019 08:31:33
28,800
ae7e7330d7fc7bbe2ce923025025577e087f8348
Added more documentation for operation feedback. Review:
[ { "change_type": "MODIFY", "old_path": "docs/high-availability-framework-guide.md", "new_path": "docs/high-availability-framework-guide.md", "diff": "@@ -63,18 +63,19 @@ availability:\nfollowed by M2 -- it will _not_ receive M2 followed by M1.\n* As a convenience for framework authors, Mesos provide...
C++
Apache License 2.0
apache/mesos
Added more documentation for operation feedback. Review: https://reviews.apache.org/r/69871/
46,103
05.02.2019 19:00:37
-3,600
9b54356d67cbe4bd594c68d8522763eb44ca73d3
Set status update UUID in MockResourceProvider. Review:
[ { "change_type": "MODIFY", "old_path": "src/tests/mesos.hpp", "new_path": "src/tests/mesos.hpp", "diff": "@@ -3163,12 +3163,13 @@ public:\nbreak;\n}\n- if (update->has_status()) {\n+ update->mutable_status()->mutable_uuid()->set_value(\n+ id::UUID::random().toString());\n+\nupdate->mutable_status()-...
C++
Apache License 2.0
apache/mesos
Set status update UUID in MockResourceProvider. Review: https://reviews.apache.org/r/69854/
46,188
11.02.2019 12:51:19
28,800
e4ac39b123c892ec2593381918600c260a75fc32
Added Linux memfd support. This patch adds the memfd support to allow us to copy a regular file into a sealed memfd. This can be useful when one wants to protect a file from being overwritten. Review:
[ { "change_type": "MODIFY", "old_path": "src/CMakeLists.txt", "new_path": "src/CMakeLists.txt", "diff": "@@ -273,6 +273,7 @@ set(LINUX_SRC\nlinux/fs.cpp\nlinux/ldcache.cpp\nlinux/ldd.cpp\n+ linux/memfd.cpp\nlinux/ns.cpp\nlinux/perf.cpp\nlinux/systemd.cpp\n" }, { "change_type": "MODIFY", "...
C++
Apache License 2.0
apache/mesos
Added Linux memfd support. This patch adds the memfd support to allow us to copy a regular file into a sealed memfd. This can be useful when one wants to protect a file from being overwritten. Review: https://reviews.apache.org/r/69943/
46,188
11.02.2019 12:51:20
28,800
4bd0914443888e1434a2c685d2be3c6713b22ec6
Made the code more robust related to sendfile. It's possible that sendfile returns less bytes written than requested. Previously, we simply return an error in that case. This patch makes it more robust by retrying sendfile if less bytes were written than requested. Review:
[ { "change_type": "MODIFY", "old_path": "src/linux/memfd.cpp", "new_path": "src/linux/memfd.cpp", "diff": "@@ -101,18 +101,21 @@ Try<int_fd> cloneSealedFile(const std::string& filePath)\nreturn Error(\"Failed to open memfd file: \" + memFd.error());\n}\n- ssize_t written = sendfile(memFd.get(), fileF...
C++
Apache License 2.0
apache/mesos
Made the code more robust related to sendfile. It's possible that sendfile returns less bytes written than requested. Previously, we simply return an error in that case. This patch makes it more robust by retrying sendfile if less bytes were written than requested. Review: https://reviews.apache.org/r/69944/
46,188
11.02.2019 12:51:21
28,800
3139e5137142b884ddae0b07b7bbbd8ad5319c6e
Added a test to test memfd file clone. This patch added a test to test the memfd::cloneFile. Review:
[ { "change_type": "MODIFY", "old_path": "src/Makefile.am", "new_path": "src/Makefile.am", "diff": "@@ -2703,6 +2703,7 @@ mesos_tests_SOURCES += \\\ntests/containerizer/docker_volume_isolator_tests.cpp \\\ntests/containerizer/linux_devices_isolator_tests.cpp \\\ntests/containerizer/linux_filesystem_is...
C++
Apache License 2.0
apache/mesos
Added a test to test memfd file clone. This patch added a test to test the memfd::cloneFile. Review: https://reviews.apache.org/r/69945/
46,129
11.02.2019 12:51:24
28,800
f7407d3d5f0fe7d5c9a06774921de514012a54da
Cloned a sealed file of launcher binary. Cloned this binary during mesos containerizer create and command executor launch. This change would copy the mesos-containerizer binary in memory, which helps avoid the binary being overwritten. Review:
[ { "change_type": "MODIFY", "old_path": "src/launcher/executor.cpp", "new_path": "src/launcher/executor.cpp", "diff": "#include \"internal/devolve.hpp\"\n#include \"internal/evolve.hpp\"\n+#ifdef __linux__\n+#include \"linux/memfd.hpp\"\n+#endif // __linux__\n+\n#include \"logging/logging.hpp\"\n#inc...
C++
Apache License 2.0
apache/mesos
Cloned a sealed file of launcher binary. Cloned this binary during mesos containerizer create and command executor launch. This change would copy the mesos-containerizer binary in memory, which helps avoid the binary being overwritten. Review: https://reviews.apache.org/r/69947/
46,129
11.02.2019 12:51:26
28,800
b9970366a988aef6d735766bf770c32f50aa2bfe
Cleaned up command executor redundant command string. Review:
[ { "change_type": "MODIFY", "old_path": "src/launcher/executor.cpp", "new_path": "src/launcher/executor.cpp", "diff": "@@ -515,15 +515,6 @@ protected:\ninitPath = \"/proc/self/fd/\" + stringify(memFd.get());\n#endif // __linux__\n- // TODO(tillt): Consider using a flag allowing / disallowing the\n- /...
C++
Apache License 2.0
apache/mesos
Cleaned up command executor redundant command string. Review: https://reviews.apache.org/r/69948/
46,053
11.02.2019 12:51:27
28,800
c97d50e2b0b3bdbcb6dde58395a21c819d56194a
Added `--enable-launcher-sealing` compiler flag. This flag enables sealing of launcher binary during initialization of Mesos containerizer. It's disabled by default because sealing requires Linux kernel 3.17+. Review:
[ { "change_type": "MODIFY", "old_path": "cmake/CompilationConfigure.cmake", "new_path": "cmake/CompilationConfigure.cmake", "diff": "@@ -433,6 +433,10 @@ if (LINUX)\n\"The XFS disk isolator is not yet supported, see MESOS-9117.\")\nendif ()\n+ option(ENABLE_LAUNCHER_SEALING\n+ \"Whether to enable con...
C++
Apache License 2.0
apache/mesos
Added `--enable-launcher-sealing` compiler flag. This flag enables sealing of launcher binary during initialization of Mesos containerizer. It's disabled by default because sealing requires Linux kernel 3.17+. Review: https://reviews.apache.org/r/69949/
46,053
11.02.2019 12:51:28
28,800
d1bff48a677771f77dbcbdd55acfaeae2afa6b9a
Enabled launcher sealing depending on corresponding compiler flag. This patch enables containerizer launcher sealing when `--enable-launcher-sealing` compiler flag is enabled. By default, this compiler flag is disabled, hence launcher sealing is disabled. Review:
[ { "change_type": "MODIFY", "old_path": "src/launcher/executor.cpp", "new_path": "src/launcher/executor.cpp", "diff": "#include \"internal/devolve.hpp\"\n#include \"internal/evolve.hpp\"\n-#ifdef __linux__\n+#ifdef ENABLE_LAUNCHER_SEALING\n#include \"linux/memfd.hpp\"\n-#endif // __linux__\n+#endif /...
C++
Apache License 2.0
apache/mesos
Enabled launcher sealing depending on corresponding compiler flag. This patch enables containerizer launcher sealing when `--enable-launcher-sealing` compiler flag is enabled. By default, this compiler flag is disabled, hence launcher sealing is disabled. Review: https://reviews.apache.org/r/69950/
46,053
11.02.2019 12:51:31
28,800
b0b5e3d89542ce2b958953326ab6b94f718d134e
Fixed `ROOT_PidNamespace` test after enabling launcher sealing. Previously, this test accessed `comm` file of `init` process to find out the name of the containerizer launcher binary. After we introduced launcher sealing, this file does not represent binary name anymore, so we are accessing `cmdline` file instead. Revi...
[ { "change_type": "MODIFY", "old_path": "src/tests/containerizer/isolator_tests.cpp", "new_path": "src/tests/containerizer/isolator_tests.cpp", "diff": "@@ -120,7 +120,7 @@ TEST_F(NamespacesIsolatorTest, ROOT_PidNamespace)\n// Write the command's pid namespace inode and init name to files.\nconst str...
C++
Apache License 2.0
apache/mesos
Fixed `ROOT_PidNamespace` test after enabling launcher sealing. Previously, this test accessed `comm` file of `init` process to find out the name of the containerizer launcher binary. After we introduced launcher sealing, this file does not represent binary name anymore, so we are accessing `cmdline` file instead. Re...