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,062 | 27.02.2017 10:40:58 | 28,800 | ca5642cf0986507884a3a94b6c500e2c48e81121 | Updated a few functions in the master to be declared `const`.
Review: | [
{
"change_type": "MODIFY",
"old_path": "src/master/master.cpp",
"new_path": "src/master/master.cpp",
"diff": "@@ -3306,7 +3306,7 @@ void Master::suppress(\n}\n-bool Master::isWhitelistedRole(const string& name)\n+bool Master::isWhitelistedRole(const string& name) const\n{\nif (roleWhitelist.isNone()... | C++ | Apache License 2.0 | apache/mesos | Updated a few functions in the master to be declared `const`.
Review: https://reviews.apache.org/r/57105 |
46,177 | 01.03.2017 16:46:40 | 28,800 | 66cff9f4706859763a8bd4b099c403a13e231a75 | CMake: Fixed build when '$USER' is not in the environment. | [
{
"change_type": "MODIFY",
"old_path": "src/common/build.cpp",
"new_path": "src/common/build.cpp",
"diff": "@@ -38,7 +38,13 @@ namespace build {\nconst std::string DATE = BUILD_DATE;\nconst double TIME = atof(BUILD_TIME);\n+\n+#ifdef BUILD_USER\nconst std::string USER = BUILD_USER;\n+#else\n+const s... | C++ | Apache License 2.0 | apache/mesos | CMake: Fixed build when '$USER' is not in the environment. |
46,157 | 01.03.2017 18:08:21 | 28,800 | cc15db4b10af343d7aefc838bb626f4579289375 | Updated WebUI to display role information of tasks in homepage.
Review: | [
{
"change_type": "MODIFY",
"old_path": "src/webui/master/static/home.html",
"new_path": "src/webui/master/static/home.html",
"diff": "<th data-key=\"framework_id\">Framework ID</th>\n<th data-key=\"id\">Task ID</th>\n<th data-key=\"name\">Task Name</th>\n+ <th data-key=\"role\">Role</th>\n<th data-k... | C++ | Apache License 2.0 | apache/mesos | Updated WebUI to display role information of tasks in homepage.
Review: https://reviews.apache.org/r/57195/ |
46,157 | 02.03.2017 12:25:26 | 28,800 | abfabb9e7b4ab9d043a2162ceec5826997a78d68 | Updated WebUI to display role information under tab 'Agents'.
Review: | [
{
"change_type": "MODIFY",
"old_path": "src/webui/master/static/agent.html",
"new_path": "src/webui/master/static/agent.html",
"diff": "<th data-key=\"id\">ID</th>\n<th data-key=\"user\">User</th>\n<th data-key=\"name\">Name</th>\n+ <th data-key=\"roles\">Roles</th>\n<th data-key=\"num_tasks\">Activ... | C++ | Apache License 2.0 | apache/mesos | Updated WebUI to display role information under tab 'Agents'.
Review: https://reviews.apache.org/r/57193/ |
46,157 | 02.03.2017 12:25:42 | 28,800 | 1e2b2ad1b70480a7932ca5d6f9418ac7bc9e1cb3 | Updated WebUI to display role information under tab 'Frameworks'.
Review: | [
{
"change_type": "MODIFY",
"old_path": "src/webui/master/static/framework.html",
"new_path": "src/webui/master/static/framework.html",
"diff": "<dd ng-show=\"framework.webui_url\"><a href=\"{{framework.webui_url}}\">{{framework.webui_url}}</a></dd>\n<dt>User:</dt>\n<dd>{{framework.user}}</dd>\n- <dt... | C++ | Apache License 2.0 | apache/mesos | Updated WebUI to display role information under tab 'Frameworks'.
Review: https://reviews.apache.org/r/57192/ |
46,157 | 02.03.2017 15:24:53 | 28,800 | 8f487beb9f8aaed8f27b0404279b1a2f97672ba1 | Fixed a typo in the comment of master.cpp.
Review: | [
{
"change_type": "MODIFY",
"old_path": "src/master/master.cpp",
"new_path": "src/master/master.cpp",
"diff": "@@ -2172,7 +2172,7 @@ Future<bool> Master::authorizeFramework(\n// via the request's `value` field. This is purely for backwards\n// compatibility as the `value` field is deprecated. Note th... | C++ | Apache License 2.0 | apache/mesos | Fixed a typo in the comment of master.cpp.
Review: https://reviews.apache.org/r/57235/ |
46,078 | 02.03.2017 17:19:28 | 28,800 | 61777fdaa75982571a7a7982b8a6f0c3b9b39d7d | Fixed ProvisionerDockerPullerTest.ROOT_RecoverNestedOnReboot.
Review: | [
{
"change_type": "MODIFY",
"old_path": "src/tests/containerizer/provisioner_docker_tests.cpp",
"new_path": "src/tests/containerizer/provisioner_docker_tests.cpp",
"diff": "@@ -883,6 +883,8 @@ TEST_F(ProvisionerDockerPullerTest, ROOT_RecoverNestedOnReboot)\nslave::Flags flags = CreateSlaveFlags();\nf... | C++ | Apache License 2.0 | apache/mesos | Fixed ProvisionerDockerPullerTest.ROOT_RecoverNestedOnReboot.
Review: https://reviews.apache.org/r/57264 |
46,062 | 12.02.2017 17:03:29 | 28,800 | 60577e7730315f0e591527aac7abdf73aa50de5f | Added `FrameworkInfo` to `UpdateFrameworkMessage`.
Review: | [
{
"change_type": "MODIFY",
"old_path": "src/messages/messages.proto",
"new_path": "src/messages/messages.proto",
"diff": "@@ -568,6 +568,9 @@ message UpdateFrameworkMessage {\n// See the comment on RunTaskMessage.pid.\noptional string pid = 2;\n+\n+ // Updated framework info.\n+ optional FrameworkIn... | C++ | Apache License 2.0 | apache/mesos | Added `FrameworkInfo` to `UpdateFrameworkMessage`.
Review: https://reviews.apache.org/r/57106 |
46,062 | 12.02.2017 17:36:32 | 28,800 | 4912f341dce12f10b43fe82db20086032391e95a | Handled the `FrameworkInfo` field added to the `UpdateFrameworkMessage`.
Review: | [
{
"change_type": "MODIFY",
"old_path": "src/master/master.cpp",
"new_path": "src/master/master.cpp",
"diff": "@@ -2676,12 +2676,13 @@ void Master::_subscribe(\n// it currently isn't running any tasks.\nforeachvalue (Slave* slave, slaves.registered) {\nUpdateFrameworkMessage message;\n- message.mutab... | C++ | Apache License 2.0 | apache/mesos | Handled the `FrameworkInfo` field added to the `UpdateFrameworkMessage`.
Review: https://reviews.apache.org/r/57108 |
46,062 | 13.02.2017 14:38:49 | 28,800 | ed52037457e471a26e00888bd11efda12c0593d2 | Re-checkpointed the `Executor`s and `Task`s during agent recovery.
Review: | [
{
"change_type": "MODIFY",
"old_path": "src/slave/slave.cpp",
"new_path": "src/slave/slave.cpp",
"diff": "@@ -5295,6 +5295,7 @@ Future<Nothing> Slave::recover(const Try<state::State>& state)\nconst FrameworkInfo& frameworkInfo) {\nset<string> roles = protobuf::framework::getRoles(frameworkInfo);\n+ ... | C++ | Apache License 2.0 | apache/mesos | Re-checkpointed the `Executor`s and `Task`s during agent recovery.
Review: https://reviews.apache.org/r/57109 |
46,062 | 03.03.2017 18:52:10 | 28,800 | 882f65ad37fccb5eb2d0deeae760f25df1c2f996 | Removed `std::` in `src/master/master.cpp`. | [
{
"change_type": "MODIFY",
"old_path": "src/master/master.cpp",
"new_path": "src/master/master.cpp",
"diff": "@@ -2248,7 +2248,7 @@ void Master::drop(\nvoid Master::drop(\nFramework* framework,\nconst scheduler::Call& call,\n- const std::string& message)\n+ const string& message)\n{\nCHECK_NOTNULL(f... | C++ | Apache License 2.0 | apache/mesos | Removed `std::` in `src/master/master.cpp`. |
46,062 | 03.03.2017 03:49:28 | 28,800 | 80a2e24b78f21c0c41a12787eced85fd42e4dce0 | Sent `UpdateFrameworkMessage` even to disconnected frameworks.
We used to only send `UpdateFrameworkMessage` to connected frameworks
because it only included `PID`s. However, since now it also includes
updates to the `FrameworkInfo`, we choose to lift this optimization and
send it to all agents for (dis)connected frame... | [
{
"change_type": "MODIFY",
"old_path": "src/master/master.cpp",
"new_path": "src/master/master.cpp",
"diff": "@@ -5958,18 +5958,15 @@ void Master::__reregisterSlave(\nforeach (const FrameworkID& frameworkId, ids) {\nFramework* framework = getFramework(frameworkId);\n-\n- // We don't need to send the... | C++ | Apache License 2.0 | apache/mesos | Sent `UpdateFrameworkMessage` even to disconnected frameworks.
We used to only send `UpdateFrameworkMessage` to connected frameworks
because it only included `PID`s. However, since now it also includes
updates to the `FrameworkInfo`, we choose to lift this optimization and
send it to all agents for (dis)connected fram... |
46,077 | 06.03.2017 00:56:39 | -28,800 | 5ac6e156390717c34586e6e19fee4bc4cb6b01d5 | Included `maintenance.html` when `make dist`.
`maintenance.html` is introduced in `3ee57de6`, but it is missing in
the tarball after `make dist`. This commit fixed this problem. | [
{
"change_type": "MODIFY",
"old_path": "src/Makefile.am",
"new_path": "src/Makefile.am",
"diff": "@@ -1570,6 +1570,7 @@ nobase_dist_pkgdata_DATA += \\\nwebui/master/static/frameworks.html \\\nwebui/master/static/home.html \\\nwebui/master/static/index.html \\\n+ webui/master/static/maintenance.html ... | C++ | Apache License 2.0 | apache/mesos | Included `maintenance.html` when `make dist`.
`maintenance.html` is introduced in `3ee57de6`, but it is missing in
the tarball after `make dist`. This commit fixed this problem. |
46,128 | 06.03.2017 12:38:52 | 28,800 | 81cbc395295fe9922473b12b1c966d01fe298341 | Implemented the 'Principal' type in libprocess.
This patch adds a new struct, `Principal`, to libprocess
to represent an authenticated entity in the system.
The new type contains a string `value` and a map containing
arbitrary key-value pairs.
Review: | [
{
"change_type": "MODIFY",
"old_path": "3rdparty/libprocess/include/process/authenticator.hpp",
"new_path": "3rdparty/libprocess/include/process/authenticator.hpp",
"diff": "#ifndef __PROCESS_AUTHENTICATOR_HPP__\n#define __PROCESS_AUTHENTICATOR_HPP__\n+#include <iosfwd>\n#include <string>\n#include ... | C++ | Apache License 2.0 | apache/mesos | Implemented the 'Principal' type in libprocess.
This patch adds a new struct, `Principal`, to libprocess
to represent an authenticated entity in the system.
The new type contains a string `value` and a map containing
arbitrary key-value pairs.
Review: https://reviews.apache.org/r/56623/ |
46,128 | 06.03.2017 12:39:00 | 28,800 | 66193c882356c03f2cb8342b4cab98644dfa46a2 | Updated libprocess handlers to use the 'Principal' type.
This patch updates the HTTP endpoint handlers in libprocess
to make use of the `Principal` type instead of an
`Option<string>& principal`.
Review: | [
{
"change_type": "MODIFY",
"old_path": "3rdparty/libprocess/include/process/logging.hpp",
"new_path": "3rdparty/libprocess/include/process/logging.hpp",
"diff": "@@ -58,7 +58,7 @@ protected:\nprivate:\nFuture<http::Response> toggle(\nconst http::Request& request,\n- const Option<std::string>& /* pri... | C++ | Apache License 2.0 | apache/mesos | Updated libprocess handlers to use the 'Principal' type.
This patch updates the HTTP endpoint handlers in libprocess
to make use of the `Principal` type instead of an
`Option<string>& principal`.
Review: https://reviews.apache.org/r/56617/ |
46,128 | 06.03.2017 12:39:04 | 28,800 | 1b4f33fa2cdc0cfeab4cba1795e9d89e4bdae71e | Updated common Mesos code to use the 'Principal' type.
This patch updates common Mesos HTTP-related helpers,
as well as the `authorization::Subject` protobuf
message, to make use of the `Principal` type instead
of an `Option<string> principal`.
Review: | [
{
"change_type": "MODIFY",
"old_path": "include/mesos/authorizer/authorizer.proto",
"new_path": "include/mesos/authorizer/authorizer.proto",
"diff": "@@ -26,11 +26,14 @@ option java_outer_classname = \"Protos\";\n// A `Subject` is the entity which desires to execute an `Action` on\n-// an `Object`. ... | C++ | Apache License 2.0 | apache/mesos | Updated common Mesos code to use the 'Principal' type.
This patch updates common Mesos HTTP-related helpers,
as well as the `authorization::Subject` protobuf
message, to make use of the `Principal` type instead
of an `Option<string> principal`.
Review: https://reviews.apache.org/r/56618/ |
46,128 | 06.03.2017 12:39:09 | 28,800 | 91d0ce45dfb9f97130d99e4bff90044fe2225033 | Updated master validation code to use the 'Principal' type.
This patch updates master validation code to
make use of the `Principal` type instead of an
`Option<string> principal`.
Review: | [
{
"change_type": "MODIFY",
"old_path": "src/master/validation.cpp",
"new_path": "src/master/validation.cpp",
"diff": "#include <mesos/roles.hpp>\n#include <mesos/type_utils.hpp>\n+#include <process/authenticator.hpp>\n+\n#include <stout/foreach.hpp>\n#include <stout/hashmap.hpp>\n#include <stout/has... | C++ | Apache License 2.0 | apache/mesos | Updated master validation code to use the 'Principal' type.
This patch updates master validation code to
make use of the `Principal` type instead of an
`Option<string> principal`.
Review: https://reviews.apache.org/r/56901/ |
46,128 | 06.03.2017 12:39:20 | 28,800 | dc202578a6ba8dd096a1f0a6ad9f3af4d6247819 | Removed unnecessary 'using' statement in master HTTP code.
`MetricsProcess` was previously declared in 'src/master/http.cpp',
but it is not currently used in that file. This patch removes the
declaration.
Review: | [
{
"change_type": "MODIFY",
"old_path": "src/master/http.cpp",
"new_path": "src/master/http.cpp",
"diff": "@@ -112,8 +112,6 @@ using process::http::TemporaryRedirect;\nusing process::http::UnsupportedMediaType;\nusing process::http::URL;\n-using process::metrics::internal::MetricsProcess;\n-\nusing s... | C++ | Apache License 2.0 | apache/mesos | Removed unnecessary 'using' statement in master HTTP code.
`MetricsProcess` was previously declared in 'src/master/http.cpp',
but it is not currently used in that file. This patch removes the
declaration.
Review: https://reviews.apache.org/r/57153/ |
46,128 | 06.03.2017 12:39:25 | 28,800 | a7a84a87ff4fef8e3062b72bf795fa9540ab5325 | Updated 'Files' handlers to use the 'Principal' type.
This patch updates the HTTP endpoint handlers in the
Mesos `Files` process to accept the `Principal` type
instead of an `Option<string>& principal`.
Review: | [
{
"change_type": "MODIFY",
"old_path": "src/files/files.cpp",
"new_path": "src/files/files.cpp",
"diff": "@@ -83,6 +83,8 @@ using process::Process;\nusing process::TLDR;\nusing process::wait; // Necessary on some OS's to disambiguate.\n+using process::http::authentication::Principal;\n+\nusing std::... | C++ | Apache License 2.0 | apache/mesos | Updated 'Files' handlers to use the 'Principal' type.
This patch updates the HTTP endpoint handlers in the
Mesos `Files` process to accept the `Principal` type
instead of an `Option<string>& principal`.
Review: https://reviews.apache.org/r/56619/ |
46,128 | 06.03.2017 12:39:29 | 28,800 | 8da4d6ff4adfd72dc33d56302af1eeb0d13e83f1 | Updated agent handlers to use the 'Principal' type.
This patch updates the HTTP endpoint handlers in the
agent process to accept the `Principal` type instead
of an `Option<string>& principal`.
Review: | [
{
"change_type": "MODIFY",
"old_path": "src/slave/http.cpp",
"new_path": "src/slave/http.cpp",
"diff": "using mesos::agent::ProcessIO;\n+using mesos::authorization::createSubject;\n+\nusing mesos::internal::recordio::Reader;\nusing mesos::slave::ContainerClass;\n@@ -107,6 +109,8 @@ using process::ht... | C++ | Apache License 2.0 | apache/mesos | Updated agent handlers to use the 'Principal' type.
This patch updates the HTTP endpoint handlers in the
agent process to accept the `Principal` type instead
of an `Option<string>& principal`.
Review: https://reviews.apache.org/r/56812/ |
46,128 | 06.03.2017 12:39:55 | 28,800 | 602c9db732faa85d73987f3f51ab0e376ba3d18f | Updated libprocess tests to use the 'Principal' type.
This patch updates the HTTP-related libprocess
tests to use authenticated handlers which accept
the `Principal` type instead of an
`Option<string> principal`.
Review: | [
{
"change_type": "MODIFY",
"old_path": "3rdparty/libprocess/src/tests/http_tests.cpp",
"new_path": "3rdparty/libprocess/src/tests/http_tests.cpp",
"diff": "@@ -60,6 +60,7 @@ namespace unix = process::network::unix;\nusing authentication::Authenticator;\nusing authentication::AuthenticationResult;\nu... | C++ | Apache License 2.0 | apache/mesos | Updated libprocess tests to use the 'Principal' type.
This patch updates the HTTP-related libprocess
tests to use authenticated handlers which accept
the `Principal` type instead of an
`Option<string> principal`.
Review: https://reviews.apache.org/r/56624/ |
46,128 | 06.03.2017 12:40:01 | 28,800 | e71f957a15c2d4e126e987bacfe64aae7f37a7dd | Added a new libprocess test for invalid principals.
This patch adds `HttpAuthenticationTest.InvalidPrincipal` to
libprocess to verify that requests return a 500 status code
when the authenticator fails to return a valid principal.
Review: | [
{
"change_type": "MODIFY",
"old_path": "3rdparty/libprocess/src/tests/http_tests.cpp",
"new_path": "3rdparty/libprocess/src/tests/http_tests.cpp",
"diff": "@@ -1858,6 +1858,31 @@ TEST_F(HttpAuthenticationTest, Authenticated)\n}\n+// Tests that if an authenticator returns an invalid principal, the re... | C++ | Apache License 2.0 | apache/mesos | Added a new libprocess test for invalid principals.
This patch adds `HttpAuthenticationTest.InvalidPrincipal` to
libprocess to verify that requests return a 500 status code
when the authenticator fails to return a valid principal.
Review: https://reviews.apache.org/r/57298/ |
46,128 | 06.03.2017 12:40:06 | 28,800 | 17ef4ddf9b10ec0e86782489bf8dcbb1b47f020b | Updated Mesos tests to use the 'Principal' type.
This patch updates the Mesos tests to use authenticated
handlers which accept the `Principal` type instead of an
`Option<string> principal`.
Review: | [
{
"change_type": "MODIFY",
"old_path": "src/tests/files_tests.cpp",
"new_path": "src/tests/files_tests.cpp",
"diff": "@@ -52,6 +52,8 @@ using process::http::OK;\nusing process::http::Response;\nusing process::http::Unauthorized;\n+using process::http::authentication::Principal;\n+\nusing std::string... | C++ | Apache License 2.0 | apache/mesos | Updated Mesos tests to use the 'Principal' type.
This patch updates the Mesos tests to use authenticated
handlers which accept the `Principal` type instead of an
`Option<string> principal`.
Review: https://reviews.apache.org/r/56621/ |
46,128 | 06.03.2017 12:40:11 | 28,800 | 072638d252bff6df6d89c2d3d0cf2220c98e677f | Added default parameter value to master validation function.
The master's validation function for RESERVE operations previously
did not set a default parameter value for its final optional
parameter, requiring callsites to explicitly specify `None()`. This
patch adds the default value.
Review: | [
{
"change_type": "MODIFY",
"old_path": "src/master/http.cpp",
"new_path": "src/master/http.cpp",
"diff": "@@ -2279,7 +2279,7 @@ Future<Response> Master::Http::_reserve(\noperation.mutable_reserve()->mutable_resources()->CopyFrom(resources);\nOption<Error> error = validation::operation::validate(\n- ... | C++ | Apache License 2.0 | apache/mesos | Added default parameter value to master validation function.
The master's validation function for RESERVE operations previously
did not set a default parameter value for its final optional
parameter, requiring callsites to explicitly specify `None()`. This
patch adds the default value.
Review: https://reviews.apache.... |
46,129 | 06.03.2017 15:04:31 | 28,800 | 09f5c3916c377bb64ca48c93a97dac685c034290 | Fixed bugs in tests/mesos.hpp helpers.
Segfault may occur on two function with v1 scenario:
1. createPersistentVolume().
2. createDiskResource().
These are due to the use of common 'Resources::parse()'. This patch
fixes this issue by replacing with 'TResources::parse()'.
Review: | [
{
"change_type": "MODIFY",
"old_path": "src/tests/mesos.hpp",
"new_path": "src/tests/mesos.hpp",
"diff": "@@ -810,7 +810,7 @@ inline typename TResource::DiskInfo::Source createDiskSourceMount(\n// Helper for creating a disk resource.\n-template <typename TResource, typename TVolume>\n+template <type... | C++ | Apache License 2.0 | apache/mesos | Fixed bugs in tests/mesos.hpp helpers.
Segfault may occur on two function with v1 scenario:
1. createPersistentVolume().
2. createDiskResource().
These are due to the use of common 'Resources::parse()'. This patch
fixes this issue by replacing with 'TResources::parse()'.
Review: https://reviews.apache.org/r/57184/ |
46,129 | 06.03.2017 15:04:41 | 28,800 | 93ea4f6737c93b2f49a25ff223188b54f43e966c | Support 'v1::createCallAccept()' helper with multi operations.
Multiple offer operations should be supported for 'Accept' call.
Review: | [
{
"change_type": "MODIFY",
"old_path": "src/tests/containerizer/runtime_isolator_tests.cpp",
"new_path": "src/tests/containerizer/runtime_isolator_tests.cpp",
"diff": "@@ -408,12 +408,11 @@ TEST_F(DockerRuntimeIsolatorTest, ROOT_INTERNET_CURL_NestedSimpleCommand)\nframeworkId,\noffer.agent_id())));\... | C++ | Apache License 2.0 | apache/mesos | Support 'v1::createCallAccept()' helper with multi operations.
Multiple offer operations should be supported for 'Accept' call.
Review: https://reviews.apache.org/r/57185/ |
46,062 | 04.03.2017 19:19:03 | 28,800 | 3e2f78246d3f7a1c5d329e48a6a0d2231bff88fc | Fixed a bug around temporaries in `src/master/http.cpp`.
Review: | [
{
"change_type": "MODIFY",
"old_path": "src/master/http.cpp",
"new_path": "src/master/http.cpp",
"diff": "@@ -3411,15 +3411,14 @@ Future<vector<string>> Master::Http::_roles(\nconst hashset<string>& whitelist = master->roleWhitelist.get();\nroleList.insert(whitelist.begin(), whitelist.end());\n} els... | C++ | Apache License 2.0 | apache/mesos | Fixed a bug around temporaries in `src/master/http.cpp`.
Review: https://reviews.apache.org/r/57319 |
46,062 | 05.03.2017 19:11:40 | 28,800 | 63dd6b41562a179543ecf4678b5dffb136b5473d | Renamed `source` to `newInfo` for `Framework::updateFrameworkInfo`.
Review: | [
{
"change_type": "MODIFY",
"old_path": "src/master/master.hpp",
"new_path": "src/master/master.hpp",
"diff": "@@ -2455,13 +2455,13 @@ struct Framework\nconst FrameworkID id() const { return info.id(); }\n- // Update fields in 'info' using those in 'source'. Currently this\n+ // Update fields in 'inf... | C++ | Apache License 2.0 | apache/mesos | Renamed `source` to `newInfo` for `Framework::updateFrameworkInfo`.
Review: https://reviews.apache.org/r/57330 |
46,062 | 05.03.2017 23:35:59 | 28,800 | 98c772280d352f03e3bb0a69d30814ced3f4434a | Used `at` rather than `operator[]` in a few instances.
Review: | [
{
"change_type": "MODIFY",
"old_path": "src/master/http.cpp",
"new_path": "src/master/http.cpp",
"diff": "@@ -3470,7 +3470,7 @@ Future<Response> Master::Http::roles(\nOption<Role*> role = None();\nif (master->roles.contains(name)) {\n- role = master->roles[name];\n+ role = master->roles.at(name);\n}... | C++ | Apache License 2.0 | apache/mesos | Used `at` rather than `operator[]` in a few instances.
Review: https://reviews.apache.org/r/57331 |
46,062 | 05.03.2017 19:01:29 | 28,800 | 68bb8d1f0eb13e910906fde2879900ac433b3500 | Updated the master to handle frameworks that changes its roles.
Review: | [
{
"change_type": "MODIFY",
"old_path": "src/master/master.cpp",
"new_path": "src/master/master.cpp",
"diff": "@@ -382,6 +382,56 @@ struct BoundedRateLimiter\n};\n+bool Framework::isTrackedUnderRole(const std::string& role) const\n+{\n+ CHECK(master->isWhitelistedRole(role))\n+ << \"Unknown role '\" ... | C++ | Apache License 2.0 | apache/mesos | Updated the master to handle frameworks that changes its roles.
Review: https://reviews.apache.org/r/57110 |
46,062 | 04.03.2017 10:53:28 | 28,800 | 2a7b912e0b1c5b52862660209c34fec65c536c46 | Updated the allocator to handle frameworks that change its roles.
Review: | [
{
"change_type": "MODIFY",
"old_path": "src/master/allocator/mesos/hierarchical.cpp",
"new_path": "src/master/allocator/mesos/hierarchical.cpp",
"diff": "@@ -242,20 +242,7 @@ void HierarchicalAllocatorProcess::addFramework(\nconst Framework& framework = frameworks.at(frameworkId);\nforeach (const st... | C++ | Apache License 2.0 | apache/mesos | Updated the allocator to handle frameworks that change its roles.
Review: https://reviews.apache.org/r/57111 |
46,062 | 27.02.2017 09:14:24 | 28,800 | 0bb1f4496d171b25193af2a293129e8cb4a7dc72 | Updated existing test cases to allow for frameworks to change its roles.
Review: | [
{
"change_type": "MODIFY",
"old_path": "src/tests/master_validation_tests.cpp",
"new_path": "src/tests/master_validation_tests.cpp",
"diff": "@@ -3474,9 +3474,9 @@ TEST_F(FrameworkInfoValidationTest, UpgradeToMultiRole)\n}\n-// This tests verifies that when a multi-role capable framework\n-// downgr... | C++ | Apache License 2.0 | apache/mesos | Updated existing test cases to allow for frameworks to change its roles.
Review: https://reviews.apache.org/r/57112 |
46,077 | 07.03.2017 11:43:40 | -28,800 | 5cbd5a7167ccc368db3ee66860e1bfd91e1de872 | Implemented 'GetAgent' call in v1 agent API.
Review: | [
{
"change_type": "MODIFY",
"old_path": "include/mesos/agent/agent.proto",
"new_path": "include/mesos/agent/agent.proto",
"diff": "@@ -56,6 +56,7 @@ message Call {\nGET_FRAMEWORKS = 11; // Retrieves the information about known frameworks.\nGET_EXECUTORS = 12; // Retrieves the information about known ... | C++ | Apache License 2.0 | apache/mesos | Implemented 'GetAgent' call in v1 agent API.
Review: https://reviews.apache.org/r/51624 |
46,062 | 06.03.2017 04:06:57 | 28,800 | 3cf8c2ff9a552d9bf2e304625bea0d166e579bd2 | Migrated `MultiRoleSchedulerUpgrade` from `MasterTest` to `UpgradeTest`.
Review: | [
{
"change_type": "MODIFY",
"old_path": "src/tests/master_tests.cpp",
"new_path": "src/tests/master_tests.cpp",
"diff": "@@ -6627,107 +6627,6 @@ TEST_F(MasterTest, MultiRoleFrameworkReceivesOffers)\ndriver.join();\n}\n-\n-// This test ensures that scheduler can upgrade to MULTI_ROLE\n-// without affe... | C++ | Apache License 2.0 | apache/mesos | Migrated `MultiRoleSchedulerUpgrade` from `MasterTest` to `UpgradeTest`.
Review: https://reviews.apache.org/r/57335 |
46,143 | 24.02.2017 15:54:55 | 28,800 | f38a3f187b7e6c53a8dc0d9c105dc83dd228382c | Updated default executor tests to exclusively use v1 protos.
Now all the tests in this file use v1 protos.
Review: | [
{
"change_type": "MODIFY",
"old_path": "src/tests/default_executor_tests.cpp",
"new_path": "src/tests/default_executor_tests.cpp",
"diff": "@@ -107,15 +107,15 @@ TEST_P(DefaultExecutorTest, TaskRunning)\nauto scheduler = std::make_shared<v1::MockHTTPScheduler>();\n- Resources resources =\n- Resource... | C++ | Apache License 2.0 | apache/mesos | Updated default executor tests to exclusively use v1 protos.
Now all the tests in this file use v1 protos.
Review: https://reviews.apache.org/r/57058 |
46,143 | 24.02.2017 17:59:48 | 28,800 | 499173d395db40e753e86ec5847b2e3944b87c35 | Updated default executor tests.
Reorganized so that objects are defined closer to their usage.
Review: | [
{
"change_type": "MODIFY",
"old_path": "src/tests/default_executor_tests.cpp",
"new_path": "src/tests/default_executor_tests.cpp",
"diff": "@@ -105,19 +105,6 @@ TEST_P(DefaultExecutorTest, TaskRunning)\nTry<Owned<cluster::Master>> master = StartMaster();\nASSERT_SOME(master);\n- auto scheduler = std... | C++ | Apache License 2.0 | apache/mesos | Updated default executor tests.
Reorganized so that objects are defined closer to their usage.
Review: https://reviews.apache.org/r/57059 |
46,103 | 08.03.2017 14:54:47 | -3,600 | a310bcc10b872b44fe6083756030daa96c21d141 | Removed unused lambda captures.
This commit removes unused lambda captures of pointer and reference
types which do not extend any lifetimes.
Review: | [
{
"change_type": "MODIFY",
"old_path": "src/master/http.cpp",
"new_path": "src/master/http.cpp",
"diff": "@@ -2853,7 +2853,7 @@ Future<Response> Master::Http::state(\n//\n// TODO(neilc): Remove this once we break compatibility with\n// pre-1.0 agents.\n- writer->field(\"orphan_tasks\", [this, &tasks... | C++ | Apache License 2.0 | apache/mesos | Removed unused lambda captures.
This commit removes unused lambda captures of pointer and reference
types which do not extend any lifetimes.
Review: https://reviews.apache.org/r/57382/ |
46,181 | 08.03.2017 10:54:08 | 18,000 | b8b21633199f23d78f2275f70b687d5db1dd7692 | Removed misleading comment from protobuf file.
Review: | [
{
"change_type": "MODIFY",
"old_path": "include/mesos/mesos.proto",
"new_path": "include/mesos/mesos.proto",
"diff": "@@ -100,8 +100,6 @@ message ContainerID {\n*/\nmessage TimeInfo {\nrequired int64 nanoseconds = 1;\n-\n- // TODO(josephw): Add time zone information, if necessary.\n}\n"
},
{
... | C++ | Apache License 2.0 | apache/mesos | Removed misleading comment from protobuf file.
Review: https://reviews.apache.org/r/57422 |
46,157 | 09.03.2017 11:03:32 | 18,000 | 009963d9d2f1fbc130e20dc696010c9b5eede52f | Fixed flaky test FaultToleranceTest.FrameworkReregister.
Review: | [
{
"change_type": "MODIFY",
"old_path": "src/tests/fault_tolerance_tests.cpp",
"new_path": "src/tests/fault_tolerance_tests.cpp",
"diff": "@@ -785,6 +785,9 @@ TEST_F_TEMP_DISABLED_ON_WINDOWS(\n}\n+// This test ensures framework re-registers with master after failover.\n+// Previous offers are rescind... | C++ | Apache License 2.0 | apache/mesos | Fixed flaky test FaultToleranceTest.FrameworkReregister.
Review: https://reviews.apache.org/r/57364/ |
46,181 | 09.03.2017 11:47:17 | 18,000 | a0eb3794805f0df7bd78baf4141704d33ea060f2 | Minor cleanup for slave tests.
Review: | [
{
"change_type": "MODIFY",
"old_path": "src/tests/slave_tests.cpp",
"new_path": "src/tests/slave_tests.cpp",
"diff": "@@ -2627,7 +2627,7 @@ TEST_F(SlaveTest, ContainerUpdatedBeforeTaskReachesExecutor)\nEXPECT_CALL(sched, registered(_, _, _));\nEXPECT_CALL(sched, resourceOffers(&driver, _))\n- .WillO... | C++ | Apache License 2.0 | apache/mesos | Minor cleanup for slave tests.
Review: https://reviews.apache.org/r/57162/ |
46,181 | 09.03.2017 11:47:20 | 18,000 | d686f616346f10ddf9d7840b59b23c680bb45c2c | Cleaned up sorter test cases.
Review: | [
{
"change_type": "MODIFY",
"old_path": "src/tests/sorter_tests.cpp",
"new_path": "src/tests/sorter_tests.cpp",
"diff": "@@ -438,10 +438,7 @@ TEST(SorterTest, UpdateTotal)\nsorter.allocated(\n\"b\", slaveId, Resources::parse(\"cpus:1;mem:2\").get());\n- vector<string> sorted = sorter.sort();\n- ASSER... | C++ | Apache License 2.0 | apache/mesos | Cleaned up sorter test cases.
Review: https://reviews.apache.org/r/57163/ |
46,181 | 09.03.2017 11:47:25 | 18,000 | 2d7f284868b90cf9f36c39ede1af63970fde6f52 | Minor cleanup for quota validation code.
Review: | [
{
"change_type": "MODIFY",
"old_path": "src/master/quota.cpp",
"new_path": "src/master/quota.cpp",
"diff": "@@ -110,15 +110,10 @@ Option<Error> quotaInfo(const QuotaInfo& quotaInfo)\nreturn Error(\"QuotaInfo must specify a role\");\n}\n- if (quotaInfo.role().empty()) {\n- return Error(\"QuotaInfo mu... | C++ | Apache License 2.0 | apache/mesos | Minor cleanup for quota validation code.
Review: https://reviews.apache.org/r/57165/ |
46,177 | 02.03.2017 14:03:50 | 28,800 | 5d1df5d98e9faea542ca95f51fe1a3ccc2da6457 | CMake: Normalized some function capitalization.
CMake isn't case sensitive about many of its functions,
but our codebase generally uses lowercase when calling
built-in CMake functions. | [
{
"change_type": "MODIFY",
"old_path": "CMakeLists.txt",
"new_path": "CMakeLists.txt",
"diff": "@@ -127,7 +127,7 @@ option(CPACK_BINARY_TGZ \"Enable to build TGZ packages\" OFF)\noption(CPACK_BINARY_TXZ \"Enable to build TXZ packages\" OFF)\n# Output a gzip'd tarball for the `package_source` target.... | C++ | Apache License 2.0 | apache/mesos | CMake: Normalized some function capitalization.
CMake isn't case sensitive about many of its functions,
but our codebase generally uses lowercase when calling
built-in CMake functions. |
46,177 | 02.03.2017 14:04:53 | 28,800 | a95abd0e61e37c4db6d84616c0fef51c9fa201fe | CMake: Removed unused FindCurl.cmake file. | [
{
"change_type": "DELETE",
"old_path": "src/slave/cmake/FindCurl.cmake",
"new_path": null,
"diff": "-# Licensed to the Apache Software Foundation (ASF) under one\n-# or more contributor license agreements. See the NOTICE file\n-# distributed with this work for additional information\n-# regarding co... | C++ | Apache License 2.0 | apache/mesos | CMake: Removed unused FindCurl.cmake file. |
46,177 | 03.03.2017 14:01:20 | 28,800 | 0eee031f90e8896f297bfe96751868dee61930ef | CMake: Changed usage of `get_filename_component` function.
The built-in function `get_filename_component` has a legacy argument
'PATH' which is used for CMake versions <= 2.8.11. The argument is
renamed to 'DIRECTORY' in later versions of CMake.
Since we support CMake down to 2.8.10, we need to use the legacy
argument... | [
{
"change_type": "MODIFY",
"old_path": "3rdparty/stout/cmake/GroupSource.cmake",
"new_path": "3rdparty/stout/cmake/GroupSource.cmake",
"diff": "@@ -71,10 +71,15 @@ function(GROUP_SOURCE GROUP_NAME ROOT_DIRECTORY RELATIVE_TO SOURCE_PATTERN)\n# Get relative directory of source file, use to generate a ... | C++ | Apache License 2.0 | apache/mesos | CMake: Changed usage of `get_filename_component` function.
The built-in function `get_filename_component` has a legacy argument
'PATH' which is used for CMake versions <= 2.8.11. The argument is
renamed to 'DIRECTORY' in later versions of CMake.
Since we support CMake down to 2.8.10, we need to use the legacy
argume... |
46,177 | 06.03.2017 11:03:32 | 28,800 | 7bd4349d48704782e1fecac81aa7ff9e09774610 | Windows: Reworked error messages in subprocess.
This commit clarifies a few error messages when launching subprocesses
on Windows (via libprocess). The most substantial change is the
addition of the `command` string to each of the possible error messages. | [
{
"change_type": "MODIFY",
"old_path": "3rdparty/libprocess/include/process/windows/subprocess.hpp",
"new_path": "3rdparty/libprocess/include/process/windows/subprocess.hpp",
"diff": "@@ -207,7 +207,8 @@ inline Try<PROCESS_INFORMATION> createChildProcess(\n&processInfo); // PROCESS_INFORMATION point... | C++ | Apache License 2.0 | apache/mesos | Windows: Reworked error messages in subprocess.
This commit clarifies a few error messages when launching subprocesses
on Windows (via libprocess). The most substantial change is the
addition of the `command` string to each of the possible error messages. |
46,129 | 09.03.2017 12:42:40 | 28,800 | e2f46f1c5e0fda4c2bf152a5ccb904f6d1af4b09 | Removed redundant 'root' user set in containerizer::launch().
The 'user' in launch command is ignored, so it is not necessary to
explicitly set 'root' user to 'CommandInfo' in the case of command
task.
Review: | [
{
"change_type": "MODIFY",
"old_path": "src/slave/containerizer/mesos/containerizer.cpp",
"new_path": "src/slave/containerizer/mesos/containerizer.cpp",
"diff": "@@ -1011,13 +1011,6 @@ Future<bool> MesosContainerizerProcess::launch(\nif (taskInfo->has_container()) {\nContainerInfo* containerInfo = c... | C++ | Apache License 2.0 | apache/mesos | Removed redundant 'root' user set in containerizer::launch().
The 'user' in launch command is ignored, so it is not necessary to
explicitly set 'root' user to 'CommandInfo' in the case of command
task.
Review: https://reviews.apache.org/r/57401/ |
46,129 | 09.03.2017 12:42:48 | 28,800 | 4f50c575f17150ddadb24e3092dcc4453c20bff8 | Added unit test for verifying user in command task with image specified.
Review: | [
{
"change_type": "MODIFY",
"old_path": "src/tests/containerizer/provisioner_docker_tests.cpp",
"new_path": "src/tests/containerizer/provisioner_docker_tests.cpp",
"diff": "@@ -868,6 +868,91 @@ TEST_F(ProvisionerDockerPullerTest, ROOT_INTERNET_CURL_ImageDigest)\n}\n+// This test verifies that if a co... | C++ | Apache License 2.0 | apache/mesos | Added unit test for verifying user in command task with image specified.
Review: https://reviews.apache.org/r/57403/ |
46,062 | 06.03.2017 17:12:30 | 28,800 | 1bab64fce462177651f7fc25a882522a9c3b681c | Added `initializer_list` constructors for `JSON::(Object|Array)`.
This improves test cleanliness, as it allows inline construction of
expected values with which to perform tests.
Refer to to see how this is used.
Review: | [
{
"change_type": "MODIFY",
"old_path": "3rdparty/stout/include/stout/json.hpp",
"new_path": "3rdparty/stout/include/stout/json.hpp",
"diff": "@@ -152,6 +152,11 @@ private:\nstruct Object\n{\n+ Object() = default;\n+\n+ Object(std::initializer_list<std::pair<const std::string, Value>> values_)\n+ : v... | C++ | Apache License 2.0 | apache/mesos | Added `initializer_list` constructors for `JSON::(Object|Array)`.
This improves test cleanliness, as it allows inline construction of
expected values with which to perform tests.
Refer to https://reviews.apache.org/r/57336 to see how this is used.
Review: https://reviews.apache.org/r/57354 |
46,062 | 06.03.2017 05:11:16 | 28,800 | 339d9f837e365e5b7f11d3cc3863314680248852 | Updated `MultiRoleSchedulerUpgrade` to test framework updates.
Review: | [
{
"change_type": "MODIFY",
"old_path": "src/tests/upgrade_tests.cpp",
"new_path": "src/tests/upgrade_tests.cpp",
"diff": "#include <unistd.h>\n+#include <initializer_list>\n#include <memory>\n#include <string>\n#include <vector>\n@@ -59,10 +60,12 @@ using process::Message;\nusing process::Owned;\nus... | C++ | Apache License 2.0 | apache/mesos | Updated `MultiRoleSchedulerUpgrade` to test framework updates.
Review: https://reviews.apache.org/r/57336 |
46,188 | 09.03.2017 14:29:34 | 28,800 | 0600c58975922eb7b68123f7c2b782be3f49ed1a | Added placeholder in CHANGELOG for 1.2.1. | [
{
"change_type": "MODIFY",
"old_path": "CHANGELOG",
"new_path": "CHANGELOG",
"diff": "+Release Notes - Mesos - Version 1.2.1 (WIP)\n+-------------------------------------------\n+* This is a bug fix release.\n+\n+All Issues:\n+** Bug\n+\n+\nRelease Notes - Mesos - Version 1.2.0\n--------------------... | C++ | Apache License 2.0 | apache/mesos | Added placeholder in CHANGELOG for 1.2.1. |
46,128 | 09.03.2017 15:31:08 | 28,800 | ff4bdbbe8e69f9ec92ce0ac5d42a7fb694437be8 | Clarified a comment for 'Principal' in libprocess.
This patch fixes a comment to correctly assert that at least
one of the two members of the `Principal` struct _must_ be set.
Review: | [
{
"change_type": "MODIFY",
"old_path": "3rdparty/libprocess/include/process/authenticator.hpp",
"new_path": "3rdparty/libprocess/include/process/authenticator.hpp",
"diff": "@@ -31,7 +31,7 @@ class BasicAuthenticatorProcess;\n/**\n* Contains information associated with an authenticated principal.\n*... | C++ | Apache License 2.0 | apache/mesos | Clarified a comment for 'Principal' in libprocess.
This patch fixes a comment to correctly assert that at least
one of the two members of the `Principal` struct _must_ be set.
Review: https://reviews.apache.org/r/57479/ |
46,110 | 09.03.2017 16:22:19 | 28,800 | 487c667260ec89127e18c77b9e8c8c243cf6ec57 | Update website for Mesos 1.2.0 release.
Review: | [
{
"change_type": "MODIFY",
"old_path": "docs/getting-started.md",
"new_path": "docs/getting-started.md",
"diff": "@@ -11,8 +11,8 @@ There are different ways you can get Mesos:\n1\\. Download the latest stable release from [Apache](http://mesos.apache.org/downloads/) (***Recommended***)\n- $ wget htt... | C++ | Apache License 2.0 | apache/mesos | Update website for Mesos 1.2.0 release.
Review: https://reviews.apache.org/r/57442/ |
46,128 | 10.03.2017 10:32:31 | 28,800 | cfb2c1660ebb24213831cb27efb30cea399c1c47 | Fixed a typo in libprocess 'Socket' comment.
Review: | [
{
"change_type": "MODIFY",
"old_path": "3rdparty/libprocess/include/process/socket.hpp",
"new_path": "3rdparty/libprocess/include/process/socket.hpp",
"diff": "@@ -395,7 +395,7 @@ public:\n};\n// TODO(benh): Replace the default to Shutdown::READ_WRITE or remove\n- // all together since it's unclear ... | C++ | Apache License 2.0 | apache/mesos | Fixed a typo in libprocess 'Socket' comment.
Review: https://reviews.apache.org/r/57395/ |
46,108 | 12.03.2017 17:25:40 | 25,200 | ec319931cd6ab4af2f9d32a1d0985f6b4af24648 | Added ability to dynamically load '/dev/nvidia-uvm' in GPU isolator.
Review: | [
{
"change_type": "MODIFY",
"old_path": "src/slave/containerizer/mesos/isolators/gpu/isolator.cpp",
"new_path": "src/slave/containerizer/mesos/isolators/gpu/isolator.cpp",
"diff": "@@ -157,6 +157,23 @@ Try<Isolator*> NvidiaGpuIsolatorProcess::create(\ndeviceEntries[Path(\"/dev/nvidiactl\")] = entry;\... | C++ | Apache License 2.0 | apache/mesos | Added ability to dynamically load '/dev/nvidia-uvm' in GPU isolator.
Review: https://reviews.apache.org/r/57539/ |
46,066 | 13.03.2017 16:45:54 | -3,600 | f1d0a1c2beeb20a26f1ccab1ceb2fab1546249bf | Added a HMAC SHA256 generator.
HMAC SHA256 can be used to create or verify message signatures.
Review: | [
{
"change_type": "MODIFY",
"old_path": "3rdparty/libprocess/include/process/ssl/utilities.hpp",
"new_path": "3rdparty/libprocess/include/process/ssl/utilities.hpp",
"diff": "@@ -110,6 +110,20 @@ Try<Nothing> write_key_file(EVP_PKEY* private_key, const Path& path);\n*/\nTry<Nothing> write_certificate... | C++ | Apache License 2.0 | apache/mesos | Added a HMAC SHA256 generator.
HMAC SHA256 can be used to create or verify message signatures.
Review: https://reviews.apache.org/r/56666/ |
46,066 | 13.03.2017 16:46:03 | -3,600 | b4a16030ffc000323cdcd2d22f9c29d4e6c061d0 | Implemented the JWT authenticator.
This HTTP authenticator extracts a JWT from the requests' authorization
header using the 'Bearer' schema and validates it against a secret using
HMAC SHA256. The 'sub' claim of the JWT is the extracted principal, all
other claims will be additional labels of the 'Principal'.
Review: | [
{
"change_type": "MODIFY",
"old_path": "3rdparty/libprocess/Makefile.am",
"new_path": "3rdparty/libprocess/Makefile.am",
"diff": "@@ -182,6 +182,7 @@ libprocess_la_SOURCES = \\\nif ENABLE_SSL\nlibprocess_la_SOURCES += \\\nsrc/jwt.cpp \\\n+ src/jwt_authenticator.cpp \\\nsrc/libevent_ssl_socket.cpp \\... | C++ | Apache License 2.0 | apache/mesos | Implemented the JWT authenticator.
This HTTP authenticator extracts a JWT from the requests' authorization
header using the 'Bearer' schema and validates it against a secret using
HMAC SHA256. The 'sub' claim of the JWT is the extracted principal, all
other claims will be additional labels of the 'Principal'.
Review:... |
46,066 | 13.03.2017 16:46:09 | -3,600 | 686733dd7b97b2d0623eabbb49242d4900baa523 | Added the SecretGenerator module interface.
This interface will be used by agents to create credentials for the
default executor.
Review: | [
{
"change_type": "ADD",
"old_path": null,
"new_path": "include/mesos/authentication/secret_generator.hpp",
"diff": "+// Licensed to the Apache Software Foundation (ASF) under one\n+// or more contributor license agreements. See the NOTICE file\n+// distributed with this work for additional informati... | C++ | Apache License 2.0 | apache/mesos | Added the SecretGenerator module interface.
This interface will be used by agents to create credentials for the
default executor.
Review: https://reviews.apache.org/r/56757/ |
46,066 | 13.03.2017 16:46:14 | -3,600 | f37c51dfb86cb4065c464c37eba303ff64450666 | Implemented a JWT secret generator.
This can be used to create a 'Secret' from a 'Principal'.
The resulting secret will provide a JWT.
Review: | [
{
"change_type": "MODIFY",
"old_path": "src/Makefile.am",
"new_path": "src/Makefile.am",
"diff": "@@ -1281,6 +1281,12 @@ else\nEXTRA_DIST += $(MESOS_NETWORK_ISOLATOR_FILES)\nendif\n+if ENABLE_SSL\n+libmesos_no_3rdparty_la_SOURCES += \\\n+ authentication/executor/jwt_secret_generator.cpp \\\n+ authen... | C++ | Apache License 2.0 | apache/mesos | Implemented a JWT secret generator.
This can be used to create a 'Secret' from a 'Principal'.
The resulting secret will provide a JWT.
Review: https://reviews.apache.org/r/56754/ |
46,066 | 13.03.2017 17:35:17 | -3,600 | a52dfcb82f488ae8dabb065d55b2103e6a546153 | Added a missing header to fix 'make distcheck'.
process/jwt.hpp was missing.
Review: | [
{
"change_type": "MODIFY",
"old_path": "3rdparty/libprocess/include/Makefile.am",
"new_path": "3rdparty/libprocess/include/Makefile.am",
"diff": "@@ -35,6 +35,7 @@ nobase_include_HEADERS = \\\nprocess/http.hpp \\\nprocess/id.hpp \\\nprocess/io.hpp \\\n+ process/jwt.hpp \\\nprocess/latch.hpp \\\nproc... | C++ | Apache License 2.0 | apache/mesos | Added a missing header to fix 'make distcheck'.
process/jwt.hpp was missing.
Review: https://reviews.apache.org/r/57562/ |
46,139 | 13.03.2017 18:22:26 | -3,600 | cbc88cfa9a412015d91aeca0894b9e7bb463c400 | Added `Containerizer::remove`.
This new method removes the sandbox and runtime directories of a
terminated nested container.
Review: | [
{
"change_type": "MODIFY",
"old_path": "src/slave/containerizer/containerizer.hpp",
"new_path": "src/slave/containerizer/containerizer.hpp",
"diff": "@@ -151,6 +151,18 @@ public:\nvirtual process::Future<bool> destroy(const ContainerID& containerId) = 0;\nvirtual process::Future<hashset<ContainerID>... | C++ | Apache License 2.0 | apache/mesos | Added `Containerizer::remove`.
This new method removes the sandbox and runtime directories of a
terminated nested container.
Review: https://reviews.apache.org/r/57384/ |
46,139 | 13.03.2017 18:22:37 | -3,600 | c1963898e07180531b3a2d5fced182ddb3239854 | Introduced proto changes needed for the RemoveNestedContainer API call.
This new Agent API call will make it possible to destroy the sandbox and
runtime directories of a terminated nested container.
Review: | [
{
"change_type": "MODIFY",
"old_path": "include/mesos/agent/agent.proto",
"new_path": "include/mesos/agent/agent.proto",
"diff": "@@ -62,13 +62,13 @@ message Call {\nLAUNCH_NESTED_CONTAINER = 14; // See 'LaunchNestedContainer' below.\nWAIT_NESTED_CONTAINER = 15; // See 'WaitNestedContainer' below.\n... | C++ | Apache License 2.0 | apache/mesos | Introduced proto changes needed for the RemoveNestedContainer API call.
This new Agent API call will make it possible to destroy the sandbox and
runtime directories of a terminated nested container.
Review: https://reviews.apache.org/r/57385/ |
46,139 | 13.03.2017 18:22:47 | -3,600 | 81a5fbdc2fc7b3c66a5cdd950c4a27cc81784181 | Introduced changes to the authz protos needed for RemoveNestedContainer.
Review: | [
{
"change_type": "MODIFY",
"old_path": "include/mesos/authorizer/acls.proto",
"new_path": "include/mesos/authorizer/acls.proto",
"diff": "@@ -359,6 +359,17 @@ message ACL {\nrequired Entity users = 2;\n}\n+ // Which principals are authorized to remove a nested container under a top\n+ // level conta... | C++ | Apache License 2.0 | apache/mesos | Introduced changes to the authz protos needed for RemoveNestedContainer.
Review: https://reviews.apache.org/r/57386/ |
46,139 | 13.03.2017 18:23:01 | -3,600 | 92c92365c3c22b2286885e2d75e5a36e1a5ba5d9 | Made the usage of C++ namespaces in "slave/http.cpp" consistent.
Follow the convention in "master/http.cpp" and explicitly use the
'mesos::' prefix.
Review: | [
{
"change_type": "MODIFY",
"old_path": "src/slave/http.cpp",
"new_path": "src/slave/http.cpp",
"diff": "@@ -418,7 +418,7 @@ Future<Response> Slave::Http::api(\n// This lambda deserializes a string into a valid `Call`\n// based on the content type.\nauto deserializer = [](const string& body, ContentT... | C++ | Apache License 2.0 | apache/mesos | Made the usage of C++ namespaces in "slave/http.cpp" consistent.
Follow the convention in "master/http.cpp" and explicitly use the
'mesos::' prefix.
Review: https://reviews.apache.org/r/57341/ |
46,139 | 13.03.2017 18:23:35 | -3,600 | 74106898edc6b5022a02a3f9e6acc93de57d896e | Implemented the Agent API call `RemoveNestedContainer`.
This new Agent API call makes it possible to destroy the sandbox and
runtime directories of a terminated nested container.
Review: | [
{
"change_type": "MODIFY",
"old_path": "src/authorizer/local/authorizer.cpp",
"new_path": "src/authorizer/local/authorizer.cpp",
"diff": "@@ -355,6 +355,7 @@ public:\n}\ncase authorization::ATTACH_CONTAINER_INPUT:\ncase authorization::ATTACH_CONTAINER_OUTPUT:\n+ case authorization::REMOVE_NESTED_CON... | C++ | Apache License 2.0 | apache/mesos | Implemented the Agent API call `RemoveNestedContainer`.
This new Agent API call makes it possible to destroy the sandbox and
runtime directories of a terminated nested container.
Review: https://reviews.apache.org/r/57387/ |
46,139 | 13.03.2017 18:27:27 | -3,600 | 702b2dd1b682cf74399ba74aee66f0d69649e23f | Added documentation for the 'RemoveNestedContainer' Agent API call.
Review: | [
{
"change_type": "MODIFY",
"old_path": "docs/operator-http-api.md",
"new_path": "docs/operator-http-api.md",
"diff": "@@ -3574,3 +3574,37 @@ Message-Content-Type: application/json\n...\n```\n+\n+### REMOVE_NESTED_CONTAINER\n+\n+This call triggers the removal of a nested container and its artifacts\n... | C++ | Apache License 2.0 | apache/mesos | Added documentation for the 'RemoveNestedContainer' Agent API call.
Review: https://reviews.apache.org/r/57388/ |
46,139 | 13.03.2017 18:27:43 | -3,600 | 4d6b730852dd079f94d8babd36a0705da97b72ad | Removed unnecessary curly braces wrapping case statements.
Review: | [
{
"change_type": "MODIFY",
"old_path": "src/authorizer/local/authorizer.cpp",
"new_path": "src/authorizer/local/authorizer.cpp",
"diff": "@@ -223,7 +223,7 @@ public:\nswitch (action_) {\n// All actions using `object.value` for authorization.\ncase authorization::VIEW_ROLE:\n- case authorization::GET... | C++ | Apache License 2.0 | apache/mesos | Removed unnecessary curly braces wrapping case statements.
Review: https://reviews.apache.org/r/57560/ |
46,177 | 28.02.2017 17:06:36 | 28,800 | 08a84b6ca88b318e399d286d858389b2e2f5623f | CMake: Added configuration options for SSL builds.
This adds the option `ENABLE_SSL` to the CMake build. A subsequent
commit will add logic to search for SSL libraries and add the
necessary build flags.
Review: | [
{
"change_type": "MODIFY",
"old_path": "3rdparty/CMakeLists.txt",
"new_path": "3rdparty/CMakeLists.txt",
"diff": "@@ -138,6 +138,18 @@ set(LIBEVENT_CMAKE_ARGS\n-DBUILD_SHARED_LIBS=${BUILD_SHARED_LIBS}\n)\n+if (ENABLE_SSL)\n+ set(LIBEVENT_CMAKE_ARGS\n+ ${LIBEVENT_CMAKE_ARGS}\n+ -DEVENT__DISABLE_OPENS... | C++ | Apache License 2.0 | apache/mesos | CMake: Added configuration options for SSL builds.
This adds the option `ENABLE_SSL` to the CMake build. A subsequent
commit will add logic to search for SSL libraries and add the
necessary build flags.
Review: https://reviews.apache.org/r/57261 |
46,177 | 02.03.2017 15:22:02 | 28,800 | fa36173e7e04dc2cf824b92fbfbec03c38fe889a | CMake: Added support for SSL-enabled builds.
This adds SSL-related files to the libprocess build, including tests.
The SSL libraries/headers are found using the built-in CMake
module `FindOpenSSL.cmake`.
Review: | [
{
"change_type": "MODIFY",
"old_path": "3rdparty/libprocess/cmake/ProcessConfigure.cmake",
"new_path": "3rdparty/libprocess/cmake/ProcessConfigure.cmake",
"diff": "# limitations under the License.\n###############################################################\n-# This file exports variables needed... | C++ | Apache License 2.0 | apache/mesos | CMake: Added support for SSL-enabled builds.
This adds SSL-related files to the libprocess build, including tests.
The SSL libraries/headers are found using the built-in CMake
module `FindOpenSSL.cmake`.
Review: https://reviews.apache.org/r/57262 |
46,177 | 13.03.2017 12:26:43 | 25,200 | 59401ab3a36767dccf5a8d3587683e80df77df9d | CMake: Added JWT helpers and authenticator to SSL build. | [
{
"change_type": "MODIFY",
"old_path": "3rdparty/libprocess/src/CMakeLists.txt",
"new_path": "3rdparty/libprocess/src/CMakeLists.txt",
"diff": "@@ -80,6 +80,8 @@ endif (ENABLE_LIBEVENT)\nif (ENABLE_SSL)\nset(PROCESS_SRC\n${PROCESS_SRC}\n+ jwt.cpp\n+ jwt_authenticator.cpp\nopenssl.cpp\nssl/utilities.... | C++ | Apache License 2.0 | apache/mesos | CMake: Added JWT helpers and authenticator to SSL build. |
46,177 | 13.03.2017 12:29:11 | 25,200 | f153035c87e66cccba6a9cdcca002bc4f8d7ea37 | CMake: Added JWT secret generator to SSL build. | [
{
"change_type": "MODIFY",
"old_path": "src/CMakeLists.txt",
"new_path": "src/CMakeLists.txt",
"diff": "@@ -221,6 +221,13 @@ if (NOT WIN32)\n)\nendif (NOT WIN32)\n+if (ENABLE_SSL)\n+ set(AUTHENTICATION_SRC\n+ ${AUTHENTICATION_SRC}\n+ authentication/executor/jwt_secret_generator.cpp\n+ )\n+endif (ENA... | C++ | Apache License 2.0 | apache/mesos | CMake: Added JWT secret generator to SSL build. |
46,157 | 13.03.2017 15:31:42 | 25,200 | fa7f4090a80b352dbc8bb9c5ee5053970e817826 | Added a test to ensure allocation roles are exposed in master API.
This test ensures that allocation roles of tasks and executors are
exposed via `/state` endpoint of master v0 API.
Review: | [
{
"change_type": "MODIFY",
"old_path": "src/tests/master_tests.cpp",
"new_path": "src/tests/master_tests.cpp",
"diff": "@@ -4289,6 +4289,111 @@ TEST_F(MasterTest, StateEndpointAgentCapabilities)\n}\n+// This ensures allocation role of task and its executor is exposed\n+// in master's /state endpoint... | C++ | Apache License 2.0 | apache/mesos | Added a test to ensure allocation roles are exposed in master API.
This test ensures that allocation roles of tasks and executors are
exposed via `/state` endpoint of master v0 API.
Review: https://reviews.apache.org/r/57269/ |
46,139 | 14.03.2017 12:36:02 | -3,600 | cd40c419acaafffb1e344be1ac4a0837591cc96b | Sorted enum values in `authorizer.proto` by numerical order.
Aliasing is allowed in `org.apache.mesos.authorization.Actions`, so the
values have to be kept in numerical order in order to prevent accidental
aliasing.
Review: | [
{
"change_type": "MODIFY",
"old_path": "include/mesos/authorizer/authorizer.proto",
"new_path": "include/mesos/authorizer/authorizer.proto",
"diff": "@@ -170,9 +170,6 @@ enum Action {\n// This action will set objects of type `ExecutorInfo` and `FrameworkInfo`.\nWAIT_NESTED_CONTAINER = 21;\n- // This... | C++ | Apache License 2.0 | apache/mesos | Sorted enum values in `authorizer.proto` by numerical order.
Aliasing is allowed in `org.apache.mesos.authorization.Actions`, so the
values have to be kept in numerical order in order to prevent accidental
aliasing.
Review: https://reviews.apache.org/r/57593/ |
46,056 | 14.03.2017 22:05:07 | -3,600 | 4c7f33bafe190f64ee7e7c5b7e03ad5328f6ab86 | Updated releases.yml with 1.1.1 release. | [
{
"change_type": "MODIFY",
"old_path": "site/data/releases.yml",
"new_path": "site/data/releases.yml",
"diff": "@@ -110,6 +110,8 @@ versions:\n## At here, 12335359 is the jira_version of 0.28.1.\n- version: 1.2.0\njira_version: 12338394\n+ - version: 1.1.1\n+ jira_version: 12338395\n- version: 1.1.0... | C++ | Apache License 2.0 | apache/mesos | Updated releases.yml with 1.1.1 release. |
46,089 | 14.03.2017 17:00:43 | 25,200 | c7817fb461b21aa3eaca5721521e22dbab01df24 | Test to ensure non-authorized users cannot launch tasks on agents.
Review: | [
{
"change_type": "MODIFY",
"old_path": "src/tests/slave_authorization_tests.cpp",
"new_path": "src/tests/slave_authorization_tests.cpp",
"diff": "@@ -479,6 +479,116 @@ TYPED_TEST(SlaveAuthorizerTest, AuthorizeRunTaskOnAgent)\n}\n+// This test verifies that a task is launched on the agent if the task... | C++ | Apache License 2.0 | apache/mesos | Test to ensure non-authorized users cannot launch tasks on agents.
Review: https://reviews.apache.org/r/55888/ |
46,078 | 14.03.2017 17:07:40 | 25,200 | 5abaeec1ca53642bad329fce89fb3a03fbebc079 | Fixed a duplicate `AuthorizeRunTaskOnAgent` due to merge error. | [
{
"change_type": "MODIFY",
"old_path": "src/tests/slave_authorization_tests.cpp",
"new_path": "src/tests/slave_authorization_tests.cpp",
"diff": "@@ -479,116 +479,6 @@ TYPED_TEST(SlaveAuthorizerTest, AuthorizeRunTaskOnAgent)\n}\n-// This test verifies that a task is launched on the agent if the task... | C++ | Apache License 2.0 | apache/mesos | Fixed a duplicate `AuthorizeRunTaskOnAgent` due to merge error. |
46,136 | 15.03.2017 09:28:51 | 25,200 | 306e379be8e6518433ec835aa2cfaa50367224e3 | Modified an erroneous comment in the Master API proto.
The `AGENT_REMOVED` event is not sent when the agent does not
reregister within the timeout. In the future, we would introduce
a new event that is sent when an agent is marked as unreachable.
Review: | [
{
"change_type": "MODIFY",
"old_path": "include/mesos/master/master.proto",
"new_path": "include/mesos/master/master.proto",
"diff": "@@ -518,10 +518,8 @@ message Event {\nrequired Response.GetAgents.Agent agent = 1;\n}\n- // Forwarded by the master when an agent is removed.\n- // This can happen wh... | C++ | Apache License 2.0 | apache/mesos | Modified an erroneous comment in the Master API proto.
The `AGENT_REMOVED` event is not sent when the agent does not
reregister within the timeout. In the future, we would introduce
a new event that is sent when an agent is marked as unreachable.
Review: https://reviews.apache.org/r/57624/ |
46,128 | 15.03.2017 19:35:45 | -3,600 | 0804be3164273a4f71dc0623c18b218290635266 | Added the 'CombinedAuthenticator'.
This patch adds a new default authenticator, the
`CombinedAuthenticator`, which can load multiple authenticators.
It calls installed authenticators serially, returning the first
successful result. When no results are successful, it returns a
single result obtained by merging all unsuc... | [
{
"change_type": "ADD",
"old_path": null,
"new_path": "include/mesos/authentication/http/combined_authenticator.hpp",
"diff": "+// Licensed to the Apache Software Foundation (ASF) under one\n+// or more contributor license agreements. See the NOTICE file\n+// distributed with this work for additiona... | C++ | Apache License 2.0 | apache/mesos | Added the 'CombinedAuthenticator'.
This patch adds a new default authenticator, the
`CombinedAuthenticator`, which can load multiple authenticators.
It calls installed authenticators serially, returning the first
successful result. When no results are successful, it returns a
single result obtained by merging all unsu... |
46,128 | 15.03.2017 19:35:55 | -3,600 | af5af3f9f8e2d736f3aaa244a4e254230a8467f0 | Enabled loading multiple HTTP authenticators in Mesos.
This patch updates the Mesos code to allow master and agent
to load multiple HTTP authenticator modules.
Review: | [
{
"change_type": "MODIFY",
"old_path": "src/common/http.cpp",
"new_path": "src/common/http.cpp",
"diff": "#include <mesos/resources.hpp>\n#include <mesos/authentication/http/basic_authenticator_factory.hpp>\n+#include <mesos/authentication/http/combined_authenticator.hpp>\n#include <mesos/authorizer... | C++ | Apache License 2.0 | apache/mesos | Enabled loading multiple HTTP authenticators in Mesos.
This patch updates the Mesos code to allow master and agent
to load multiple HTTP authenticator modules.
Review: https://reviews.apache.org/r/56476/ |
46,128 | 15.03.2017 19:36:01 | -3,600 | a68e1f28d92e2f9b0c1ea3a6701b041709aaad8a | Added a test for the 'CombinedAuthenticator'.
This patch adds a unit test to verify the functionality of
the `CombinedAuthenticator`. The new test is called
`CombinedAuthenticatorTest.MultipleAuthenticators`.
Review: | [
{
"change_type": "MODIFY",
"old_path": "src/tests/http_authentication_tests.cpp",
"new_path": "src/tests/http_authentication_tests.cpp",
"diff": "#include <vector>\n#include <mesos/authentication/http/basic_authenticator_factory.hpp>\n+#include <mesos/authentication/http/combined_authenticator.hpp>\... | C++ | Apache License 2.0 | apache/mesos | Added a test for the 'CombinedAuthenticator'.
This patch adds a unit test to verify the functionality of
the `CombinedAuthenticator`. The new test is called
`CombinedAuthenticatorTest.MultipleAuthenticators`.
Review: https://reviews.apache.org/r/56475/ |
46,089 | 15.03.2017 11:55:24 | 25,200 | 4575e38792646edfb4e4c4068badd4a660e628c1 | Agent cgroup assignment should precede agent initialization.
This is to ensure that we do not accept traffic on the agent by opening
up libprocess port only after cgroup assigment for the agent is done.
Review: | [
{
"change_type": "MODIFY",
"old_path": "src/slave/main.cpp",
"new_path": "src/slave/main.cpp",
"diff": "#include <stdint.h>\n+#include <set>\n#include <vector>\n#include <utility>\n#include <stout/hashset.hpp>\n#include <stout/nothing.hpp>\n#include <stout/os.hpp>\n+\n+#ifdef __linux__\n+#include <s... | C++ | Apache License 2.0 | apache/mesos | Agent cgroup assignment should precede agent initialization.
This is to ensure that we do not accept traffic on the agent by opening
up libprocess port only after cgroup assigment for the agent is done.
Review: https://reviews.apache.org/r/53369/ |
46,139 | 15.03.2017 21:16:05 | -3,600 | 809b90f1edcc7da588f7e7a0e8e5f47e3a634295 | Implemented 'ComposingContainerizer::remove(const ContainerID&)'.
Review: | [
{
"change_type": "MODIFY",
"old_path": "src/slave/containerizer/composing.cpp",
"new_path": "src/slave/containerizer/composing.cpp",
"diff": "@@ -102,6 +102,8 @@ public:\nFuture<hashset<ContainerID>> containers();\n+ Future<Nothing> remove(const ContainerID& containerId);\n+\nprivate:\n// Continuati... | C++ | Apache License 2.0 | apache/mesos | Implemented 'ComposingContainerizer::remove(const ContainerID&)'.
Review: https://reviews.apache.org/r/57644/ |
46,165 | 14.03.2017 15:23:04 | 25,200 | d085688b9207fd15375a7eb35000ffe5be05f373 | Updated the maintenance tab in the webui to auto-refresh.
This follows the established approach used in the other controllers.
Review: | [
{
"change_type": "MODIFY",
"old_path": "src/webui/master/static/js/controllers.js",
"new_path": "src/webui/master/static/js/controllers.js",
"diff": "mesosApp.controller('OffersCtrl', function() {});\nmesosApp.controller('MaintenanceCtrl', function($scope, $http) {\n+ var update = function() {\n// T... | C++ | Apache License 2.0 | apache/mesos | Updated the maintenance tab in the webui to auto-refresh.
This follows the established approach used in the other controllers.
Review: https://reviews.apache.org/r/57623 |
46,056 | 28.02.2017 11:39:00 | -3,600 | 517607aaea83f8a009f9aa5f5120417764e893c7 | Added a note about task status updates in scheduler and internal API.
Review: | [
{
"change_type": "MODIFY",
"old_path": "include/mesos/scheduler/scheduler.proto",
"new_path": "include/mesos/scheduler/scheduler.proto",
"diff": "@@ -118,6 +118,11 @@ message Event {\n// to the task. It is also the responsibility of the scheduler to\n// explicitly acknowledge the receipt of a status... | C++ | Apache License 2.0 | apache/mesos | Added a note about task status updates in scheduler and internal API.
Review: https://reviews.apache.org/r/56016 |
46,056 | 07.03.2017 17:41:45 | -3,600 | cc6e063a6907a282dac875133e9f328d5a6fd364 | Overloaded `<<` for `CheckInfo::Type`.
Review: | [
{
"change_type": "MODIFY",
"old_path": "include/mesos/type_utils.hpp",
"new_path": "include/mesos/type_utils.hpp",
"diff": "@@ -304,6 +304,9 @@ std::ostream& operator<<(\nconst std::vector<TaskID>& taskIds);\n+std::ostream& operator<<(std::ostream& stream, const CheckInfo::Type& type);\n+\n+\nstd::o... | C++ | Apache License 2.0 | apache/mesos | Overloaded `<<` for `CheckInfo::Type`.
Review: https://reviews.apache.org/r/57394 |
46,056 | 20.01.2017 19:26:45 | -3,600 | 85fbf8fc6465d46b40696f4f1e72822765e8fc1e | Added a helper for building a task status from an existing one.
Review: | [
{
"change_type": "MODIFY",
"old_path": "src/common/protobuf_utils.cpp",
"new_path": "src/common/protobuf_utils.cpp",
"diff": "@@ -206,6 +206,68 @@ StatusUpdate createStatusUpdate(\n}\n+TaskStatus createTaskStatus(\n+ TaskStatus status,\n+ const UUID& uuid,\n+ double timestamp,\n+ const Option<TaskSt... | C++ | Apache License 2.0 | apache/mesos | Added a helper for building a task status from an existing one.
Review: https://reviews.apache.org/r/56017 |
46,056 | 14.03.2017 12:06:07 | -3,600 | bf196f02d65199e69407af834c1a1d0fb0f35266 | Added a helper for building a task status from scratch.
Review: | [
{
"change_type": "MODIFY",
"old_path": "src/common/protobuf_utils.cpp",
"new_path": "src/common/protobuf_utils.cpp",
"diff": "@@ -122,6 +122,8 @@ StatusUpdate createStatusUpdate(\nupdate.mutable_executor_id()->MergeFrom(executorId.get());\n}\n+ // TODO(alexr): Use `createTaskStatus()` instead\n+ // ... | C++ | Apache License 2.0 | apache/mesos | Added a helper for building a task status from scratch.
Review: https://reviews.apache.org/r/57594 |
46,056 | 28.02.2017 14:05:33 | -3,600 | 702562cb9cded3dc86e88f704d650a958b98396c | Added a warning if command executor gets an unknown acknowledgement.
Review: | [
{
"change_type": "MODIFY",
"old_path": "src/launcher/executor.cpp",
"new_path": "src/launcher/executor.cpp",
"diff": "@@ -211,6 +211,12 @@ public:\ncase Event::ACKNOWLEDGED: {\nconst UUID uuid = UUID::fromBytes(event.acknowledged().uuid()).get();\n+ if (!unacknowledgedUpdates.contains(uuid)) {\n+ LO... | C++ | Apache License 2.0 | apache/mesos | Added a warning if command executor gets an unknown acknowledgement.
Review: https://reviews.apache.org/r/57149 |
46,056 | 27.01.2017 17:48:55 | -3,600 | a352bbfb057725429c9851a4d71f9aef07850816 | Reused previous task status for health updates in command executor.
When a new health task status update is generated in the executor, we
have to make sure specific data is duplicated from the previous one to
avoid shadowing of those data during reconciliation.
Review: | [
{
"change_type": "MODIFY",
"old_path": "src/launcher/executor.cpp",
"new_path": "src/launcher/executor.cpp",
"diff": "@@ -143,7 +143,8 @@ public:\ncapabilities(_capabilities),\nframeworkId(_frameworkId),\nexecutorId(_executorId),\n- unacknowledgedTask(None())\n+ unacknowledgedTask(None()),\n+ lastTa... | C++ | Apache License 2.0 | apache/mesos | Reused previous task status for health updates in command executor.
When a new health task status update is generated in the executor, we
have to make sure specific data is duplicated from the previous one to
avoid shadowing of those data during reconciliation.
Review: https://reviews.apache.org/r/56210 |
46,056 | 27.01.2017 18:23:37 | -3,600 | 6b332ade085de92ba0ae29856e2b1990e4ea14b8 | Renamed health checker in command executor for clarity.
Review: | [
{
"change_type": "MODIFY",
"old_path": "src/launcher/executor.cpp",
"new_path": "src/launcher/executor.cpp",
"diff": "@@ -292,6 +292,9 @@ protected:\nvoid taskHealthUpdated(const TaskHealthStatus& healthStatus)\n{\n+ CHECK_SOME(taskId);\n+ CHECK_EQ(taskId.get(), healthStatus.task_id());\n+\n// This ... | C++ | Apache License 2.0 | apache/mesos | Renamed health checker in command executor for clarity.
Review: https://reviews.apache.org/r/56211 |
46,056 | 28.02.2017 16:24:42 | -3,600 | e60b57b438289323f8ab4c91b83c113b066f320b | Simplified task id procurement in command executor.
Review: | [
{
"change_type": "MODIFY",
"old_path": "src/launcher/executor.cpp",
"new_path": "src/launcher/executor.cpp",
"diff": "@@ -375,11 +375,9 @@ protected:\nreturn;\n}\n- // Capture the task.\n+ // Capture `TaskInfo` and `TaskID` of the task.\nCHECK(taskData.isNone());\ntaskData = TaskData(task);\n-\n- //... | C++ | Apache License 2.0 | apache/mesos | Simplified task id procurement in command executor.
Review: https://reviews.apache.org/r/57150 |
46,056 | 28.02.2017 16:14:14 | -3,600 | 11160d6716d03865d2a74bad341d7ed33849385f | Added support for general checks to command executor.
Review: | [
{
"change_type": "MODIFY",
"old_path": "src/launcher/executor.cpp",
"new_path": "src/launcher/executor.cpp",
"diff": "#include <stout/os/kill.hpp>\n#include <stout/os/killtree.hpp>\n+#include \"checks/checker.hpp\"\n#include \"checks/health_checker.hpp\"\n#include \"common/http.hpp\"\n@@ -292,6 +293... | C++ | Apache License 2.0 | apache/mesos | Added support for general checks to command executor.
Review: https://reviews.apache.org/r/56212 |
46,056 | 14.03.2017 14:29:05 | -3,600 | 4f009180730babe782d15bd0bbc289c91e5a5b2e | Added comments regarding exit status on Windows vs. Posix.
Review: | [
{
"change_type": "MODIFY",
"old_path": "include/mesos/mesos.proto",
"new_path": "include/mesos/mesos.proto",
"diff": "@@ -1736,7 +1736,9 @@ enum TaskState {\n*/\nmessage CheckStatusInfo {\nmessage Command {\n- // Exit code of a command check.\n+ // Exit code of a command check. It is the result of c... | C++ | Apache License 2.0 | apache/mesos | Added comments regarding exit status on Windows vs. Posix.
Review: https://reviews.apache.org/r/57597 |
46,056 | 14.03.2017 14:29:27 | -3,600 | 9393c2321eeabcdd31e3df851d2b901a86e39761 | Added comment regarding exit status on Windows vs. Posix in libprocess.
Review: | [
{
"change_type": "MODIFY",
"old_path": "3rdparty/libprocess/include/process/subprocess_base.hpp",
"new_path": "3rdparty/libprocess/include/process/subprocess_base.hpp",
"diff": "@@ -278,14 +278,22 @@ public:\n* Exit status of this subprocess captured as a Future (completed\n* when the subprocess exi... | C++ | Apache License 2.0 | apache/mesos | Added comment regarding exit status on Windows vs. Posix in libprocess.
Review: https://reviews.apache.org/r/57598 |
46,108 | 15.03.2017 15:47:27 | 25,200 | a97b658fddb2cf32ec60808ea56249ef73f98da2 | Updated pylint to rebuild 'virtualenv' when necessary.
Review: | [
{
"change_type": "MODIFY",
"old_path": "support/mesos-style.py",
"new_path": "support/mesos-style.py",
"diff": "@@ -254,26 +254,6 @@ class PyLinter(LinterBase):\ncomment_prefix = '#'\n- def __check_virtualenv(self):\n- cli_dir = os.path.abspath(self.source_dirs[0])\n-\n- if not os.path.isdir(os.path... | C++ | Apache License 2.0 | apache/mesos | Updated pylint to rebuild 'virtualenv' when necessary.
Review: https://reviews.apache.org/r/53074/ |
46,078 | 15.03.2017 16:39:55 | 25,200 | f08754d44912db01d2ce5b2bdfc8e88c16cd561d | Removed logic in test that resets agent cgroups during shutdown.
This is because agent process main method instead of the `Slave`
class does the cgroup assignment after
A followup review will clean up uses of --agent_subsystems in tests. | [
{
"change_type": "MODIFY",
"old_path": "src/tests/cluster.cpp",
"new_path": "src/tests/cluster.cpp",
"diff": "@@ -611,39 +611,6 @@ void Slave::terminate()\nvoid Slave::wait()\n{\nprocess::wait(pid);\n-\n-#ifdef __linux__\n- // Remove all of this processes threads into the root cgroups - this\n- // s... | C++ | Apache License 2.0 | apache/mesos | Removed logic in test that resets agent cgroups during shutdown.
- This is because agent process main method instead of the `Slave`
class does the cgroup assignment after 4575e38.
- A followup review will clean up uses of --agent_subsystems in tests. |
46,188 | 15.03.2017 20:09:47 | 25,200 | e895755804e51cfb80dd0091a9208df5926070a0 | Fixed a compile error in CNI isolator. | [
{
"change_type": "MODIFY",
"old_path": "src/slave/containerizer/mesos/isolators/network/cni/cni.cpp",
"new_path": "src/slave/containerizer/mesos/isolators/network/cni/cni.cpp",
"diff": "#include <stout/net.hpp>\n#include <stout/os.hpp>\n#include <stout/path.hpp>\n+#include <stout/strings.hpp>\n#incl... | C++ | Apache License 2.0 | apache/mesos | Fixed a compile error in CNI isolator. |
46,056 | 16.03.2017 16:53:27 | -3,600 | 505486b77025c49de4e551ed975265b43d9bf07d | Fixed whitespace and namespace prefix in type utils. | [
{
"change_type": "MODIFY",
"old_path": "include/mesos/type_utils.hpp",
"new_path": "include/mesos/type_utils.hpp",
"diff": "@@ -261,8 +261,10 @@ std::ostream& operator<<(\nstd::ostream& stream,\nconst ContainerInfo& containerInfo);\n+\nstd::ostream& operator<<(std::ostream& stream, const Environment... | C++ | Apache License 2.0 | apache/mesos | Fixed whitespace and namespace prefix in type utils. |
46,157 | 16.03.2017 13:28:44 | 25,200 | 74af382d77cec9a48f4ec3b7619f4c9d4061710f | Renamed `adjustOfferOperation` to `injectAllocationInfo`.
Method name `protobuf::adjustOfferOperation` is renamed to
`protobuf::injectAllocationInfo`.
Review: | [
{
"change_type": "MODIFY",
"old_path": "src/common/protobuf_utils.cpp",
"new_path": "src/common/protobuf_utils.cpp",
"diff": "@@ -432,11 +432,11 @@ Label createLabel(const string& key, const Option<string>& value)\n}\n-void adjustOfferOperation(\n+void injectAllocationInfo(\nOffer::Operation* operat... | C++ | Apache License 2.0 | apache/mesos | Renamed `adjustOfferOperation` to `injectAllocationInfo`.
Method name `protobuf::adjustOfferOperation` is renamed to
`protobuf::injectAllocationInfo`.
Review: https://reviews.apache.org/r/57630/ |
46,157 | 16.03.2017 13:37:14 | 25,200 | d205e2862a2f0131d73e1efef965c28f97e74a15 | Remove adjustment code within Resources::apply.
Review: | [
{
"change_type": "MODIFY",
"old_path": "src/common/protobuf_utils.cpp",
"new_path": "src/common/protobuf_utils.cpp",
"diff": "@@ -524,6 +524,80 @@ void injectAllocationInfo(\n}\n+void stripAllocationInfo(Offer::Operation* operation)\n+{\n+ auto strip = [](RepeatedPtrField<Resource>* resources) {\n+ ... | C++ | Apache License 2.0 | apache/mesos | Remove adjustment code within Resources::apply.
Review: https://reviews.apache.org/r/57340/ |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.