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,055
13.07.2019 10:07:55
25,200
82305ea19b4fd1b04bdeb0d6f8bb1792077a6206
Added the test `NamespacesIsolatorTest.ROOT_ShareAgentIPCNamespace`. Review:
[ { "change_type": "MODIFY", "old_path": "src/tests/containerizer/isolator_tests.cpp", "new_path": "src/tests/containerizer/isolator_tests.cpp", "diff": "@@ -743,6 +743,128 @@ TEST_F(NamespacesIsolatorTest, ROOT_PrivateIPCNamespace)\nASSERT_TRUE(termination.get()->has_status());\nEXPECT_WTERMSIG_EQ(SI...
C++
Apache License 2.0
apache/mesos
Added the test `NamespacesIsolatorTest.ROOT_ShareAgentIPCNamespace`. Review: https://reviews.apache.org/r/70852/
46,055
13.07.2019 10:07:57
25,200
c4ce90884e2a93e331a6d1bbbe9ed960c5872d24
Added the test `ROOT_DisallowShareAgentIPCNamespace`. Review:
[ { "change_type": "MODIFY", "old_path": "src/tests/containerizer/isolator_tests.cpp", "new_path": "src/tests/containerizer/isolator_tests.cpp", "diff": "@@ -865,6 +865,36 @@ TEST_F(NamespacesIsolatorTest, ROOT_ShareAgentIPCNamespace)\nASSERT_SOME(os::rm(\"/dev/shm/nest1\"));\nASSERT_SOME(os::rm(\"/de...
C++
Apache License 2.0
apache/mesos
Added the test `ROOT_DisallowShareAgentIPCNamespace`. Review: https://reviews.apache.org/r/70857/
46,055
13.07.2019 10:07:58
25,200
e3b2edb1f3226e9f84e22383153314dc4a212edc
Updated the test `NamespacesIsolatorTest.ROOT_IPCNamespace`. This test is updated to verify the backward compatibility is kept after we implement the configurable IPC namespaces and /dev/shm. Review:
[ { "change_type": "MODIFY", "old_path": "src/tests/containerizer/isolator_tests.cpp", "new_path": "src/tests/containerizer/isolator_tests.cpp", "diff": "@@ -268,17 +268,20 @@ TEST_F(NamespacesIsolatorTest, ROOT_SharePidNamespaceWhenDisallow)\n}\n-// The IPC namespace has its own copy of the svipc(7) ...
C++
Apache License 2.0
apache/mesos
Updated the test `NamespacesIsolatorTest.ROOT_IPCNamespace`. This test is updated to verify the backward compatibility is kept after we implement the configurable IPC namespaces and /dev/shm. Review: https://reviews.apache.org/r/70859/
46,055
13.07.2019 10:07:59
25,200
e04b445f414e256866ba2e1f441bd7e86acc858e
Added the test `ROOT_IPCNamespaceWithIPCIsolatorDisabled`. Review:
[ { "change_type": "MODIFY", "old_path": "src/tests/containerizer/isolator_tests.cpp", "new_path": "src/tests/containerizer/isolator_tests.cpp", "diff": "@@ -406,6 +406,121 @@ TEST_F(NamespacesIsolatorTest, ROOT_IPCNamespaceWithIPCModeUnset)\n}\n+// This test verifies that when `namespaces/ipc` isolat...
C++
Apache License 2.0
apache/mesos
Added the test `ROOT_IPCNamespaceWithIPCIsolatorDisabled`. Review: https://reviews.apache.org/r/70860/
46,128
15.07.2019 10:25:30
25,200
3c959eb769ec4a39721947e7ec173dd9eefc6af4
Added minimal agent handler for 'DrainSlaveMessage'. This patch adds a minimal handler to the agent for the `DrainSlaveMessage`. This handler will later be extended to implement the full functionality. Review:
[ { "change_type": "MODIFY", "old_path": "src/slave/paths.cpp", "new_path": "src/slave/paths.cpp", "diff": "@@ -55,6 +55,7 @@ namespace paths {\n// File names.\nconst char BOOT_ID_FILE[] = \"boot_id\";\nconst char SLAVE_INFO_FILE[] = \"slave.info\";\n+const char DRAIN_CONFIG_FILE[] = \"drain.config\";...
C++
Apache License 2.0
apache/mesos
Added minimal agent handler for 'DrainSlaveMessage'. This patch adds a minimal handler to the agent for the `DrainSlaveMessage`. This handler will later be extended to implement the full functionality. Review: https://reviews.apache.org/r/70834/
46,128
15.07.2019 10:25:35
25,200
7d08b667e446840dc31538d9d40705e3d8fb12a0
Added the DrainConfig to agent API outputs. Review:
[ { "change_type": "MODIFY", "old_path": "include/mesos/agent/agent.proto", "new_path": "include/mesos/agent/agent.proto", "diff": "@@ -569,6 +569,8 @@ message Response {\n// Contains the agent's information.\nmessage GetAgent {\noptional SlaveInfo slave_info = 1;\n+\n+ optional DrainConfig drain_conf...
C++
Apache License 2.0
apache/mesos
Added the DrainConfig to agent API outputs. Review: https://reviews.apache.org/r/70835/
46,128
15.07.2019 10:25:37
25,200
04d25afd70bede23f46463d67ef80c6e2c1f8167
Added test for DrainConfig in agent API outputs. Review:
[ { "change_type": "MODIFY", "old_path": "src/tests/slave_tests.cpp", "new_path": "src/tests/slave_tests.cpp", "diff": "@@ -11791,6 +11791,96 @@ TEST_F(SlaveTest, AgentFailoverHTTPExecutorUsingResourceProviderResources)\nAWAIT_READY(executorSubscribed);\n}\n+\n+// When the agent receives a `DrainSlave...
C++
Apache License 2.0
apache/mesos
Added test for DrainConfig in agent API outputs. Review: https://reviews.apache.org/r/70836/
46,128
15.07.2019 10:25:42
25,200
ef19f297be6c192f4d2cea0f9ed413a1dfaaf882
Refactored the agent's task-killing code. This patch factors the code responsible for killing tasks out into two helper functions. This will facilitate the calling of this common code by the agent-draining handler. Review:
[ { "change_type": "MODIFY", "old_path": "src/slave/slave.cpp", "new_path": "src/slave/slave.cpp", "diff": "@@ -3670,10 +3670,6 @@ void Slave::killTask(\nreturn;\n}\n- CHECK(framework->state == Framework::RUNNING ||\n- framework->state == Framework::TERMINATING)\n- << framework->state;\n-\n// We don't...
C++
Apache License 2.0
apache/mesos
Refactored the agent's task-killing code. This patch factors the code responsible for killing tasks out into two helper functions. This will facilitate the calling of this common code by the agent-draining handler. Review: https://reviews.apache.org/r/70899/
46,128
15.07.2019 10:25:47
25,200
27f0cd3519bafaf058e8347d482475e776d494e1
Updated an equality operator. This patch updates the equality operator for the `Task` message to include two missing conditions. An equality operator for `HealthCheck` is also added to make this possible. Review:
[ { "change_type": "MODIFY", "old_path": "include/mesos/type_utils.hpp", "new_path": "include/mesos/type_utils.hpp", "diff": "@@ -62,6 +62,7 @@ bool operator==(\nbool operator==(const DiscoveryInfo& left, const DiscoveryInfo& right);\nbool operator==(const Environment& left, const Environment& right);...
C++
Apache License 2.0
apache/mesos
Updated an equality operator. This patch updates the equality operator for the `Task` message to include two missing conditions. An equality operator for `HealthCheck` is also added to make this possible. Review: https://reviews.apache.org/r/70900/
46,128
15.07.2019 10:25:49
25,200
3bb8287378bfdbef74288212302d0f2628d51b23
Added kill policy to the 'Task' message. Review:
[ { "change_type": "MODIFY", "old_path": "include/mesos/mesos.proto", "new_path": "include/mesos/mesos.proto", "diff": "@@ -2338,6 +2338,10 @@ message Task {\n// TODO(greggomann): Add the task's `CheckInfo`. See MESOS-8780.\n+ // The kill policy used for this task when it is killed. It's possible for\...
C++
Apache License 2.0
apache/mesos
Added kill policy to the 'Task' message. Review: https://reviews.apache.org/r/70901/
46,128
15.07.2019 10:25:51
25,200
e1c7985e96d84693f3e41d3a50da5f5ea11b6cd8
Killed all tasks on the agent when draining. This patch updates the agent's `DrainSlaveMessage` handler to kill all tasks on the agent when the message is received. Review:
[ { "change_type": "MODIFY", "old_path": "include/mesos/type_utils.hpp", "new_path": "include/mesos/type_utils.hpp", "diff": "@@ -338,6 +338,12 @@ inline bool operator<(const ContainerID& left, const ContainerID& right)\n}\n+inline bool operator<(const DurationInfo& left, const DurationInfo& right)\n+...
C++
Apache License 2.0
apache/mesos
Killed all tasks on the agent when draining. This patch updates the agent's `DrainSlaveMessage` handler to kill all tasks on the agent when the message is received. Review: https://reviews.apache.org/r/70903/
46,128
15.07.2019 10:25:56
25,200
505928a3f51555bd3e45f2fc9787fdf890b28bfb
Added tests for task killing when draining the agent. Review:
[ { "change_type": "MODIFY", "old_path": "src/tests/slave_tests.cpp", "new_path": "src/tests/slave_tests.cpp", "diff": "#include \"tests/resources_utils.hpp\"\n#include \"tests/utils.hpp\"\n+#include \"tests/containerizer/mock_containerizer.hpp\"\n+\nusing namespace mesos::internal::slave;\n#ifdef USE...
C++
Apache License 2.0
apache/mesos
Added tests for task killing when draining the agent. Review: https://reviews.apache.org/r/70904/
46,103
15.07.2019 10:26:01
25,200
1a32b31496600e3ad5d54d8c4e8497e7ef420b18
Fixed pid checkpointing for `TestContainerizer`. In order for a `MockExecutor` to be able to reregister after agent restart a persisted pid is required. This patch adds checkpointing of the pid. Review:
[ { "change_type": "MODIFY", "old_path": "src/tests/containerizer.cpp", "new_path": "src/tests/containerizer.cpp", "diff": "@@ -163,6 +163,18 @@ public:\nContentType::PROTOBUF, executor, fullEnvironment));\n}\n+ // Checkpoint the forked pid if requested by the agent.\n+ if (pidCheckpointPath.isSome())...
C++
Apache License 2.0
apache/mesos
Fixed pid checkpointing for `TestContainerizer`. In order for a `MockExecutor` to be able to reregister after agent restart a persisted pid is required. This patch adds checkpointing of the pid. Review: https://reviews.apache.org/r/70906/
46,103
15.07.2019 10:26:23
25,200
654faf9244b0016f8a17623aca7812923b3a313a
Cleared agent drain state when draining is finished. Once a draining agent has neither frameworks with pending tasks nor any executors with either queued or launched tasks it has finished draining. This patch adds handling of that case which clears both the in-memory and persisted drain configuration. Review:
[ { "change_type": "MODIFY", "old_path": "src/slave/slave.cpp", "new_path": "src/slave/slave.cpp", "diff": "@@ -7067,6 +7067,8 @@ void Slave::removeFramework(Framework* framework)\n// Pass ownership of the framework pointer.\ncompletedFrameworks.set(framework->id(), Owned<Framework>(framework));\n+ up...
C++
Apache License 2.0
apache/mesos
Cleared agent drain state when draining is finished. Once a draining agent has neither frameworks with pending tasks nor any executors with either queued or launched tasks it has finished draining. This patch adds handling of that case which clears both the in-memory and persisted drain configuration. Review: https:/...
46,165
15.07.2019 16:47:02
14,400
d4cb3a34ce00aa6177f6d206c552e309ad250598
Added a test to ensure that roles with only reservations are exposed. This adds a test for to ensure that if a role has only reservations associated with it, it gets exposed from /roles. Review:
[ { "change_type": "MODIFY", "old_path": "src/tests/role_tests.cpp", "new_path": "src/tests/role_tests.cpp", "diff": "#include \"tests/mesos.hpp\"\n#include \"tests/resources_utils.hpp\"\n+#include \"tests/master/mock_master_api_subscriber.hpp\"\n+\nusing mesos::internal::master::Master;\nusing mesos:...
C++
Apache License 2.0
apache/mesos
Added a test to ensure that roles with only reservations are exposed. This adds a test for MESOS-9888, to ensure that if a role has only reservations associated with it, it gets exposed from /roles. Review: https://reviews.apache.org/r/71074
46,165
15.07.2019 17:07:58
14,400
f99e181d34a78ef304f9072a6685f33be99ea07f
Added a test to ensure that ancestor roles are exposed in /roles. This adds a test for to ensure that ancestor roles with no objects directly associated with them get exposed in /roles. Review:
[ { "change_type": "MODIFY", "old_path": "src/tests/role_tests.cpp", "new_path": "src/tests/role_tests.cpp", "diff": "@@ -949,6 +949,105 @@ TEST_F_TEMP_DISABLED_ON_WINDOWS(RoleTest, EndpointImplicitRolesReservations)\n}\n+// This test ensures that ancestor roles are exposed when\n+// there are no dire...
C++
Apache License 2.0
apache/mesos
Added a test to ensure that ancestor roles are exposed in /roles. This adds a test for MESOS-9890, to ensure that ancestor roles with no objects directly associated with them get exposed in /roles. Review: https://reviews.apache.org/r/71077
46,165
15.07.2019 17:10:25
14,400
dcbee1dcdb6dd5915252530fa6b4ffad900fc80f
Minor cleanups in role_tests.cpp. Review:
[ { "change_type": "MODIFY", "old_path": "src/tests/role_tests.cpp", "new_path": "src/tests/role_tests.cpp", "diff": "@@ -287,7 +287,7 @@ TEST_F(RoleTest, ImplicitRoleStaticReservation)\n// This test checks that the \"/roles\" endpoint returns the expected\n-// information when there are no active rol...
C++
Apache License 2.0
apache/mesos
Minor cleanups in role_tests.cpp. Review: https://reviews.apache.org/r/71078
46,055
15.07.2019 23:46:20
25,200
633b1b5d4ef3f08b0abf057a3651f34116e1e45f
Renamed agent flag `--default_shm_size`. Review:
[ { "change_type": "MODIFY", "old_path": "docs/configuration/agent.md", "new_path": "docs/configuration/agent.md", "diff": "@@ -577,17 +577,18 @@ this role. (default: *)\n</td>\n</tr>\n-<tr id=\"default_shm_size\">\n+<tr id=\"default_container_shm_size\">\n<td>\n- --default_shm_size\n+ --default_conta...
C++
Apache License 2.0
apache/mesos
Renamed agent flag `--default_shm_size`. Review: https://reviews.apache.org/r/71072/
46,177
26.06.2019 06:53:20
25,200
6d4a370c699dd67ae44c9e42e08cde4fc52d7930
Modified registry operations for unreachable draining agents. When agents transition from reachable to unreachable, or vice versa, the draining config is now copied too, along with the 'deactivated' boolean. Review:
[ { "change_type": "MODIFY", "old_path": "src/master/registry.proto", "new_path": "src/master/registry.proto", "diff": "@@ -61,6 +61,11 @@ message Registry {\n// The time when the slave was marked unreachable by the master.\nrequired TimeInfo timestamp = 2;\n+\n+ // If the agent returns, these objects...
C++
Apache License 2.0
apache/mesos
Modified registry operations for unreachable draining agents. When agents transition from reachable to unreachable, or vice versa, the draining config is now copied too, along with the 'deactivated' boolean. Review: https://reviews.apache.org/r/70956
46,177
26.06.2019 08:08:36
25,200
fb654756464517e3c15fd014f91dd1d3b6c33793
Added registry operation for marking an agent as drained. This adds an operation purely for transitioning an agent from the DRAINING state to the DRAINED state. The master is expected to validate that the targetted agent is DRAINING, otherwise, the write will fail (which results in the master aborting). Review:
[ { "change_type": "MODIFY", "old_path": "src/master/registry_operations.cpp", "new_path": "src/master/registry_operations.cpp", "diff": "@@ -434,6 +434,60 @@ Try<bool> DrainAgent::perform(Registry* registry, hashset<SlaveID>* slaveIDs)\nreturn found; // Mutation if found.\n}\n+\n+MarkAgentDrained::Ma...
C++
Apache License 2.0
apache/mesos
Added registry operation for marking an agent as drained. This adds an operation purely for transitioning an agent from the DRAINING state to the DRAINED state. The master is expected to validate that the targetted agent is DRAINING, otherwise, the write will fail (which results in the master aborting). Review: http...
46,128
16.07.2019 12:20:56
25,200
a805d278f8874838364fa893e1bf8e1c6ca0a0b3
Added drain and deactivation info to master API output. This adds the drain info and deactivation state of agents to the master's responses for the GET_STATE and GET_AGENTS calls, as well as the '/state' and '/state-summary' endpoints. Review:
[ { "change_type": "MODIFY", "old_path": "include/mesos/master/master.proto", "new_path": "include/mesos/master/master.proto", "diff": "@@ -446,6 +446,7 @@ message Response {\nmessage Agent {\nrequired SlaveInfo agent_info = 1;\nrequired bool active = 2;\n+ optional bool deactivated = 12;\nrequired st...
C++
Apache License 2.0
apache/mesos
Added drain and deactivation info to master API output. This adds the drain info and deactivation state of agents to the master's responses for the GET_STATE and GET_AGENTS calls, as well as the '/state' and '/state-summary' endpoints. Review: https://reviews.apache.org/r/71055/
46,128
16.07.2019 12:21:11
25,200
f81427b743789f1e01e9babeb5080f037319af50
Added end-to-end tests for agent draining. This adds a minimal test for the DRAIN_AGENT scheduler call, including verification of master API results once an agent has been drained. A second test verifies the case where an agent is marked gone when draining is complete. Review:
[ { "change_type": "MODIFY", "old_path": "include/mesos/v1/mesos.hpp", "new_path": "include/mesos/v1/mesos.hpp", "diff": "@@ -52,6 +52,7 @@ bool operator==(\nconst CSIPluginContainerInfo& right);\nbool operator==(const DiscoveryInfo& left, const DiscoveryInfo& right);\n+bool operator==(const DrainInfo...
C++
Apache License 2.0
apache/mesos
Added end-to-end tests for agent draining. This adds a minimal test for the DRAIN_AGENT scheduler call, including verification of master API results once an agent has been drained. A second test verifies the case where an agent is marked gone when draining is complete. Review: https://reviews.apache.org/r/71069/
46,148
16.07.2019 14:20:43
25,200
c55053a5985c3974572ceb066e8b789fae55a1d8
Fixed an issue where master quota state is not updated. Also added a regression test. Review:
[ { "change_type": "MODIFY", "old_path": "src/master/quota_handler.cpp", "new_path": "src/master/quota_handler.cpp", "diff": "@@ -555,6 +555,7 @@ Future<http::Response> Master::QuotaHandler::_update(\nCHECK(result);\nforeach (const QuotaConfig& config, configs) {\n+ master->quotas[config.role()] = Quo...
C++
Apache License 2.0
apache/mesos
Fixed an issue where master quota state is not updated. Also added a regression test. Review: https://reviews.apache.org/r/71086
46,177
15.07.2019 11:57:05
25,200
e1c0cc3041d92661d50e2ad7515f952df23665c8
Windows: Fixed confusing name for command executors. This tweaks the generated name for command executors, specifically for shell commands. The generated name would output `sh -c`, even on Windows where the shell is `cmd /c`. Review:
[ { "change_type": "MODIFY", "old_path": "src/slave/slave.cpp", "new_path": "src/slave/slave.cpp", "diff": "@@ -6481,7 +6481,11 @@ ExecutorInfo Slave::getExecutorInfo(\nif (!task.command().has_value()) {\nname += \"(Command: NO COMMAND)\";\n} else {\n+#ifdef __WINDOWS__\n+ name += \"(Command: cmd /c '...
C++
Apache License 2.0
apache/mesos
Windows: Fixed confusing name for command executors. This tweaks the generated name for command executors, specifically for shell commands. The generated name would output `sh -c`, even on Windows where the shell is `cmd /c`. Review: https://reviews.apache.org/r/71075
46,177
16.07.2019 14:33:37
25,200
e6d160d39c3a76b2f813eda80061fab5b7edc066
Windows: Fixed poll socket connect override. This override was changed along with some SSL improvements in
[ { "change_type": "MODIFY", "old_path": "3rdparty/libprocess/src/windows/poll_socket.cpp", "new_path": "3rdparty/libprocess/src/windows/poll_socket.cpp", "diff": "@@ -136,8 +136,7 @@ Future<std::shared_ptr<SocketImpl>> PollSocketImpl::accept()\nFuture<Nothing> PollSocketImpl::connect(\n- const Addres...
C++
Apache License 2.0
apache/mesos
Windows: Fixed poll socket connect override. This override was changed along with some SSL improvements in MESOS-9878.
46,177
16.07.2019 15:44:31
25,200
af54474e46bc41ec7cf7e3c9e26791fbcdf9e959
Windows: Fixed exclusion of GID and Docker spec headers. These headers and related protobufs are not compiled on Windows because the features using them are not supported on Windows.
[ { "change_type": "MODIFY", "old_path": "src/CMakeLists.txt", "new_path": "src/CMakeLists.txt", "diff": "@@ -260,8 +260,12 @@ set(CSI_SRC\ncsi/volume_manager.cpp)\nset(DOCKER_SRC\n- docker/docker.cpp\n+ docker/docker.cpp)\n+\n+if (NOT WIN32)\n+ list(APPEND DOCKER_SRC\ndocker/spec.cpp)\n+endif ()\nset...
C++
Apache License 2.0
apache/mesos
Windows: Fixed exclusion of GID and Docker spec headers. These headers and related protobufs are not compiled on Windows because the features using them are not supported on Windows.
46,057
18.07.2019 15:09:57
-7,200
2ecbe56a5b2d7a0cc99e5ac1ce5765815d94678a
Updated 1.8.1 CHANGELOG to its final form.
[ { "change_type": "MODIFY", "old_path": "CHANGELOG", "new_path": "CHANGELOG", "diff": "@@ -43,20 +43,19 @@ Release Notes - Mesos - Version 1.8.2 (WIP)\n* [MESOS-9785] - Frameworks recovered from reregistered agents are not reported to master `/api/v1` subscribers.\n-Release Notes - Mesos - Version 1....
C++
Apache License 2.0
apache/mesos
Updated 1.8.1 CHANGELOG to its final form.
46,053
18.07.2019 09:10:40
25,200
5112ab806ca0fdcdbf8a8fa55e87dbf7437e0f9d
Added `IsolatorTracker` for tracking calls of isolator methods. This patch adds a new `IsolatorTracker` class that proxies calls to the real isolator and keeps track of returned futures by employing `PendingFutureTracker` class. Review:
[ { "change_type": "MODIFY", "old_path": "src/CMakeLists.txt", "new_path": "src/CMakeLists.txt", "diff": "@@ -170,6 +170,7 @@ set(AGENT_SRC\nslave/containerizer/fetcher.cpp\nslave/containerizer/mesos/containerizer.cpp\nslave/containerizer/mesos/isolator.cpp\n+ slave/containerizer/mesos/isolator_tracke...
C++
Apache License 2.0
apache/mesos
Added `IsolatorTracker` for tracking calls of isolator methods. This patch adds a new `IsolatorTracker` class that proxies calls to the real isolator and keeps track of returned futures by employing `PendingFutureTracker` class. Review: https://reviews.apache.org/r/70888/
46,053
18.07.2019 09:10:41
25,200
c3964a83a773a43321a7dfa6455482002ed96e64
Wrapped isolators in `IsolatorTracker`. This patch wraps every isolator in instance of `IsolatorTracker` class. If an isolator gets stuck in some operation, `pendingFutures` will return the isolator name, method name along with its arguments such as `containerId`, `pid`, etc. Review:
[ { "change_type": "MODIFY", "old_path": "src/slave/containerizer/containerizer.cpp", "new_path": "src/slave/containerizer/containerizer.cpp", "diff": "@@ -219,7 +219,8 @@ Try<Containerizer*> Containerizer::create(\nFetcher* fetcher,\nGarbageCollector* gc,\nSecretResolver* secretResolver,\n- VolumeGid...
C++
Apache License 2.0
apache/mesos
Wrapped isolators in `IsolatorTracker`. This patch wraps every isolator in instance of `IsolatorTracker` class. If an isolator gets stuck in some operation, `pendingFutures` will return the isolator name, method name along with its arguments such as `containerId`, `pid`, etc. Review: https://reviews.apache.org/r/7088...
46,053
18.07.2019 09:10:44
25,200
5e01feb96874c0f7327ada82c39165900610c1b4
Added `LauncherTracker` for tracking calls of launcher methods. This patch adds a new `LauncherTracker` class that proxies calls to the real `Launcher` and keeps track of returned futures by employing `PendingFutureTracker` class. Review:
[ { "change_type": "MODIFY", "old_path": "src/CMakeLists.txt", "new_path": "src/CMakeLists.txt", "diff": "@@ -173,6 +173,7 @@ set(AGENT_SRC\nslave/containerizer/mesos/isolator_tracker.cpp\nslave/containerizer/mesos/launch.cpp\nslave/containerizer/mesos/launcher.cpp\n+ slave/containerizer/mesos/launche...
C++
Apache License 2.0
apache/mesos
Added `LauncherTracker` for tracking calls of launcher methods. This patch adds a new `LauncherTracker` class that proxies calls to the real `Launcher` and keeps track of returned futures by employing `PendingFutureTracker` class. Review: https://reviews.apache.org/r/70890/
46,053
18.07.2019 09:10:45
25,200
59c2c75d0982385271c3ba86e3cbbf6c21fa7bae
Wrapped launcher in `LauncherTracker`. This patch wraps a container launcher in instance of `LauncherTracker` class. If the launcher gets stuck in some operation, `pendingFutures` will return the method name along with its arguments such as `containerId`, `pid`, etc. Review:
[ { "change_type": "MODIFY", "old_path": "src/slave/containerizer/mesos/containerizer.cpp", "new_path": "src/slave/containerizer/mesos/containerizer.cpp", "diff": "#include \"slave/containerizer/mesos/isolator_tracker.hpp\"\n#include \"slave/containerizer/mesos/launch.hpp\"\n#include \"slave/container...
C++
Apache License 2.0
apache/mesos
Wrapped launcher in `LauncherTracker`. This patch wraps a container launcher in instance of `LauncherTracker` class. If the launcher gets stuck in some operation, `pendingFutures` will return the method name along with its arguments such as `containerId`, `pid`, etc. Review: https://reviews.apache.org/r/70891/
46,053
18.07.2019 09:10:47
25,200
960497728be1d06724b077f73a978d1c798705b7
Added `/containerizer/debug` endpoint. This patch introduces an agent's `/containerizer/debug` endpoint, which exposes the debug info related to Mesos containerizer. Currently, this endpoint returns a list of pending futures related to isolators or containerizer launcher. This endpoint is experimental, and the format o...
[ { "change_type": "MODIFY", "old_path": "docs/authorization.md", "new_path": "docs/authorization.md", "diff": "@@ -366,6 +366,7 @@ The `get_endpoints` action covers:\n* `/logging/toggle`\n* `/metrics/snapshot`\n* `/slave(id)/containers`\n+* `/slave(id)/containerizer/debug`\n* `/slave(id)/monitor/stat...
C++
Apache License 2.0
apache/mesos
Added `/containerizer/debug` endpoint. This patch introduces an agent's `/containerizer/debug` endpoint, which exposes the debug info related to Mesos containerizer. Currently, this endpoint returns a list of pending futures related to isolators or containerizer launcher. This endpoint is experimental, and the format ...
46,053
18.07.2019 09:10:54
25,200
f3b827fa0206715ea1242ab839c3f7c0d7f685f4
Implemented `FutureTrackTest` tests. These tests verify functionality provided by the `PendingFutureTracker` class. Review:
[ { "change_type": "MODIFY", "old_path": "src/Makefile.am", "new_path": "src/Makefile.am", "diff": "@@ -2675,6 +2675,7 @@ mesos_tests_SOURCES = \\\ntests/zookeeper_test_server.hpp \\\ntests/zookeeper_url_tests.cpp \\\ntests/common/command_utils_tests.cpp \\\n+ tests/common/future_tracker_tests.cpp \\\...
C++
Apache License 2.0
apache/mesos
Implemented `FutureTrackTest` tests. These tests verify functionality provided by the `PendingFutureTracker` class. Review: https://reviews.apache.org/r/71065/
46,148
18.07.2019 17:28:42
25,200
95a44e31565624f44d8fc3e1be6c84b747a59c19
Removed unnecessary `stringify` in the master quota tests.
[ { "change_type": "MODIFY", "old_path": "src/tests/master_quota_tests.cpp", "new_path": "src/tests/master_quota_tests.cpp", "diff": "@@ -214,10 +214,7 @@ TEST_F(MasterQuotaTest, UpdateQuota)\n\"/api/v1\",\nheaders,\ncreateUpdateQuotaRequestBody(\n- createQuotaConfig(\n- ROLE1,\n- stringify(\"cpus:1;m...
C++
Apache License 2.0
apache/mesos
Removed unnecessary `stringify` in the master quota tests.
46,148
19.07.2019 11:53:39
25,200
0913f54f611173205d06dfc86588b3b3ab84ba3e
Fixed an UI issue in Roles tab where `Reserved` is incorrect. Review:
[ { "change_type": "MODIFY", "old_path": "src/webui/app/roles/roles.html", "new_path": "src/webui/app/roles/roles.html", "diff": "@@ -118,13 +118,13 @@ Quota Limit\n{{(role.reserved.cpus | decimalFloat) || \"-\"}}\n</td>\n<td ng-show=\"show_reserved\">\n- {{(role.allocated.gpus | decimalFloat) || \"-\...
C++
Apache License 2.0
apache/mesos
Fixed an UI issue in Roles tab where `Reserved` is incorrect. Review: https://reviews.apache.org/r/71128
46,055
19.07.2019 15:06:03
25,200
e58f4b97b5d13ccc18ad9b1632d7e6409bdd0c55
Added two validations in `namespaces/ipc` isolator. 1. Do not support specifying the size of /dev/shm when the IPC mode is not `PRIVATE`. 2. Do not support private IPC mode for debug containers. Review:
[ { "change_type": "MODIFY", "old_path": "docs/isolators/namespaces-ipc.md", "new_path": "docs/isolators/namespaces-ipc.md", "diff": "@@ -55,3 +55,7 @@ flag, if that flag is not set too, the size of the /dev/shm will be half\nof the agent host RAM which is the default behavior of Linux. The\n`Containe...
C++
Apache License 2.0
apache/mesos
Added two validations in `namespaces/ipc` isolator. 1. Do not support specifying the size of /dev/shm when the IPC mode is not `PRIVATE`. 2. Do not support private IPC mode for debug containers. Review: https://reviews.apache.org/r/71120/
46,055
19.07.2019 15:06:06
25,200
5032ea381dd2d532d781ba1d2c9fd3a600e7883a
Added a test `ROOT_NonePrivateIPCModeWithShmSize`. Review:
[ { "change_type": "MODIFY", "old_path": "src/tests/containerizer/isolator_tests.cpp", "new_path": "src/tests/containerizer/isolator_tests.cpp", "diff": "@@ -1072,6 +1072,55 @@ TEST_F(NamespacesIsolatorTest, ROOT_DisallowShareAgentIPCNamespace)\nAWAIT_FAILED(launch);\n}\n+\n+\n+// This test verifies t...
C++
Apache License 2.0
apache/mesos
Added a test `ROOT_NonePrivateIPCModeWithShmSize`. Review: https://reviews.apache.org/r/71121/
46,055
19.07.2019 15:06:08
25,200
02b6467f9e8035166f400e0112015ac56c9281b6
Added a test `ROOT_DebugContainerWithPrivateIPCMode`. Review:
[ { "change_type": "MODIFY", "old_path": "src/tests/containerizer/isolator_tests.cpp", "new_path": "src/tests/containerizer/isolator_tests.cpp", "diff": "@@ -1121,6 +1121,59 @@ TEST_F(NamespacesIsolatorTest, ROOT_NonePrivateIPCModeWithShmSize)\nAWAIT_FAILED(launch);\n}\n+\n+\n+// This test verifies th...
C++
Apache License 2.0
apache/mesos
Added a test `ROOT_DebugContainerWithPrivateIPCMode`. Review: https://reviews.apache.org/r/71122/
46,074
20.07.2019 23:34:12
25,200
4bd3e7023bcbe88c9ad1defdf9a138c8c78b377f
Moved kernelVersion check to common code. Review:
[ { "change_type": "MODIFY", "old_path": "src/CMakeLists.txt", "new_path": "src/CMakeLists.txt", "diff": "@@ -237,6 +237,7 @@ set(COMMON_SRC\ncommon/build.cpp\ncommon/command_utils.cpp\ncommon/http.cpp\n+ common/kernel_version.cpp\ncommon/protobuf_utils.cpp\ncommon/resources.cpp\ncommon/resource_quant...
C++
Apache License 2.0
apache/mesos
Moved kernelVersion check to common code. Review: https://reviews.apache.org/r/71106/
46,074
20.07.2019 23:34:26
25,200
2f9494dc808b948720d318fdfc35dbf16ecd65ce
Added a `linux/nnp` isolator. This adds a `linux/nnp` isolator to set the NO_NEW_PRIVILEGES flag on containerized processes. Review:
[ { "change_type": "MODIFY", "old_path": "include/mesos/slave/containerizer.proto", "new_path": "include/mesos/slave/containerizer.proto", "diff": "@@ -327,6 +327,9 @@ message ContainerLaunchInfo {\n// (POSIX only) The supplementary group IDs specific for command task\n// with its own rootfs.\nrepeate...
C++
Apache License 2.0
apache/mesos
Added a `linux/nnp` isolator. This adds a `linux/nnp` isolator to set the NO_NEW_PRIVILEGES flag on containerized processes. Review: https://reviews.apache.org/r/70757/
46,074
20.07.2019 23:35:31
25,200
d304acbf456577446430a2a2f262c01bd26a0630
Added documentation for the `linux/nnp` isolator. Review:
[ { "change_type": "MODIFY", "old_path": "CHANGELOG", "new_path": "CHANGELOG", "diff": "@@ -18,6 +18,10 @@ This release contains the following highlights:\nadded. This causes the agent to ignore any runtime configuration\npresent in Docker images.\n+ * [MESOS-9770] - Add no-new-privileges isolator. An...
C++
Apache License 2.0
apache/mesos
Added documentation for the `linux/nnp` isolator. Review: https://reviews.apache.org/r/71107/
46,210
22.07.2019 18:00:10
18,000
dfcd31fab6a99940fe1e33c3c6ba780f6b88b29d
Updated configure.ac to correct openssl/libevent setup. Fixes a problem introduced by configure.ac reordering in commit Review:
[ { "change_type": "MODIFY", "old_path": "configure.ac", "new_path": "configure.ac", "diff": "@@ -901,14 +901,6 @@ libcrypto is required for an SSL-enabled build.\nLIBS=\"-lssl -lcrypto $LIBS\"\n- if test \"x$enable_libevent\" = \"xyes\"; then\n- if test \"x$with_bundled_libevent\" != \"xyes\"; then\n...
C++
Apache License 2.0
apache/mesos
Updated configure.ac to correct openssl/libevent setup. Fixes a problem introduced by configure.ac reordering in commit 4df2b62. Review: https://reviews.apache.org/r/71138/
46,128
22.07.2019 18:48:56
25,200
ff8c9a96be6ae1ee47faf9d5b80a518dfb4a3db0
Fixed devolution of 'max_grace_period' field in DRAIN_AGENT call. Review:
[ { "change_type": "MODIFY", "old_path": "src/internal/devolve.cpp", "new_path": "src/internal/devolve.cpp", "diff": "@@ -280,7 +280,19 @@ mesos::agent::Response devolve(const v1::agent::Response& response)\nmesos::master::Call devolve(const v1::master::Call& call)\n{\n- return devolve<mesos::master::...
C++
Apache License 2.0
apache/mesos
Fixed devolution of 'max_grace_period' field in DRAIN_AGENT call. Review: https://reviews.apache.org/r/71140
46,148
17.07.2019 15:35:05
25,200
e9de5e945843649ac2a7a2a08463b70760370e7a
Added helpers to return resources allocated/reserved to a role subtree. Review:
[ { "change_type": "MODIFY", "old_path": "include/mesos/resources.hpp", "new_path": "include/mesos/resources.hpp", "diff": "@@ -348,6 +348,16 @@ public:\n// Tests if the given Resource object is shared.\nstatic bool isShared(const Resource& resource);\n+ // Returns true if the resource is allocated to...
C++
Apache License 2.0
apache/mesos
Added helpers to return resources allocated/reserved to a role subtree. Review: https://reviews.apache.org/r/71109
46,148
17.07.2019 16:32:33
25,200
76a70957682125abf71407202e56d18fde12d1cf
Refactored master's role ResourceBreakdown to compute results lazily. This breaks the computation of offered, allocated, reserved and consumedQuota into separate getter functions which are lazily calculated upon invoked. The struct is renamed to `RoleResourceBreakdown`. Review:
[ { "change_type": "MODIFY", "old_path": "src/master/master.cpp", "new_path": "src/master/master.cpp", "diff": "@@ -3611,90 +3611,63 @@ bool Master::isWhitelistedRole(const string& name) const\n}\n-hashmap<string, Master::ResourceBreakdown>\n- Master::getRoleTreeResourceQuantities() const\n-{\n- auto ...
C++
Apache License 2.0
apache/mesos
Refactored master's role ResourceBreakdown to compute results lazily. This breaks the computation of offered, allocated, reserved and consumedQuota into separate getter functions which are lazily calculated upon invoked. The struct is renamed to `RoleResourceBreakdown`. Review: https://reviews.apache.org/r/71110
46,148
11.07.2019 16:45:08
25,200
2462cfbc831b1fdb9905904eeab586be570cae6d
Added limits validation for `UPDATE_QUOTA` call. The validation checks the newly requested limits against its current consumption. If a role's consumption is already more than the limits, the update request will be denied (unless force flag is set to true). Also added a test. Review:
[ { "change_type": "MODIFY", "old_path": "src/master/quota_handler.cpp", "new_path": "src/master/quota_handler.cpp", "diff": "@@ -466,9 +466,30 @@ Future<http::Response> Master::QuotaHandler::update(\n}\n}\n- // TODO(mzhu): Validate a role's limit is below its current consumption\n+ // Validate a role...
C++
Apache License 2.0
apache/mesos
Added limits validation for `UPDATE_QUOTA` call. The validation checks the newly requested limits against its current consumption. If a role's consumption is already more than the limits, the update request will be denied (unless force flag is set to true). Also added a test. Review: https://reviews.apache.org/r/710...
46,148
18.07.2019 11:32:49
25,200
7aa2a96fea8a44f673a95b425bae71c946c09f2c
Added a test to ensure `UPDATE_QUOTA` is applied all-or-nothing. Review:
[ { "change_type": "MODIFY", "old_path": "src/tests/master_quota_tests.cpp", "new_path": "src/tests/master_quota_tests.cpp", "diff": "@@ -126,6 +126,20 @@ static string createUpdateQuotaRequestBody(\n}\n+static string createUpdateQuotaRequestBody(\n+ const vector<QuotaConfig>& configs, bool force = fa...
C++
Apache License 2.0
apache/mesos
Added a test to ensure `UPDATE_QUOTA` is applied all-or-nothing. Review: https://reviews.apache.org/r/71119
46,148
19.07.2019 14:24:29
25,200
1593333c228c4e1304ec784ad5908437ab86f6c4
Refactored allocator test helper `createQuota`. Removed the unnecessary role argument. And added an overload to specify guarantees and limits differently. Review:
[ { "change_type": "MODIFY", "old_path": "src/tests/allocator.cpp", "new_path": "src/tests/allocator.cpp", "diff": "@@ -24,18 +24,23 @@ namespace mesos {\nnamespace internal {\nnamespace tests {\n-// This is a legacy helper where we take in a resource string\n-// and use that to set both quota guarant...
C++
Apache License 2.0
apache/mesos
Refactored allocator test helper `createQuota`. Removed the unnecessary role argument. And added an overload to specify guarantees and limits differently. Review: https://reviews.apache.org/r/71131
46,148
19.07.2019 14:00:01
25,200
08ff2a4e6355f87abe4128216535ce1e12f6f39f
Added a test to ensure allocations are restricted by quota limits. Review:
[ { "change_type": "MODIFY", "old_path": "src/tests/hierarchical_allocator_tests.cpp", "new_path": "src/tests/hierarchical_allocator_tests.cpp", "diff": "@@ -3542,6 +3542,98 @@ TEST_F(HierarchicalAllocatorTest, QuotaProvidesGuarantee)\n}\n+// When a role has limits set, its frameworks allocations are ...
C++
Apache License 2.0
apache/mesos
Added a test to ensure allocations are restricted by quota limits. Review: https://reviews.apache.org/r/71130
46,148
23.07.2019 17:28:40
25,200
366f568a54267167b82b10e9bb3a0e1a728aa9ea
Fixed a compilation issue in the allocator test.
[ { "change_type": "MODIFY", "old_path": "src/tests/allocator.cpp", "new_path": "src/tests/allocator.cpp", "diff": "@@ -37,7 +37,7 @@ Quota createQuota(const string& guarantees, const string& limits)\nQuota createQuota(const string& resources)\n{\n- return createQuota(guarantees, limits);\n+ return cr...
C++
Apache License 2.0
apache/mesos
Fixed a compilation issue in the allocator test.
46,072
24.07.2019 11:01:39
14,400
254e5c2dd888bd08309dc59254a1cf2d9a745625
Added a helper to create vector from iterable into python bindings. Review:
[ { "change_type": "MODIFY", "old_path": "src/python/native_common/common.hpp", "new_path": "src/python/native_common/common.hpp", "diff": "#include <Python.h>\n#include <iostream>\n+#include <memory>\n+#include <string>\n+#include <vector>\n#include <google/protobuf/io/zero_copy_stream_impl.h>\n+#inc...
C++
Apache License 2.0
apache/mesos
Added a helper to create vector from iterable into python bindings. Review: https://reviews.apache.org/r/71082/
46,072
24.07.2019 11:02:04
14,400
aebf86f97a77da233b523eb7381bf1132a90410c
Added enchanced multi-role capability support to the python bindings. This patch adds suppressed roles list to the arguments of the scheduler driver constructor and `revivieOffers()`/`suppressOffers` methods, and also adds support of the `updateFramework()` method. Review:
[ { "change_type": "MODIFY", "old_path": "src/python/interface/src/mesos/interface/__init__.py", "new_path": "src/python/interface/src/mesos/interface/__init__.py", "diff": "@@ -238,28 +238,29 @@ class SchedulerDriver(object):\ncallback.\n\"\"\"\n- def reviveOffers(self):\n+ def reviveOffers(self, rol...
C++
Apache License 2.0
apache/mesos
Added enchanced multi-role capability support to the python bindings. This patch adds suppressed roles list to the arguments of the scheduler driver constructor and `revivieOffers()`/`suppressOffers` methods, and also adds support of the `updateFramework()` method. Review: https://reviews.apache.org/r/71083/
46,072
24.07.2019 11:02:15
14,400
72ca397be231d8564442f0ad8289bc22dac94eed
Added unsuppressing via `updateFramework()` to python example framework. This patch ensures that the list of suppressed roles is passed through the `updateFramework()` of python V0 bindings. Now the framework subscribes with all roles suppressed and after that issues UPDATE_FRAMEWORK call to unsuppress offers. Review:
[ { "change_type": "MODIFY", "old_path": "src/examples/python/test_framework.py", "new_path": "src/examples/python/test_framework.py", "diff": "@@ -30,9 +30,10 @@ TASK_CPUS = 1\nTASK_MEM = 128\nclass TestScheduler(mesos.interface.Scheduler):\n- def __init__(self, implicitAcknowledgements, executor):\n...
C++
Apache License 2.0
apache/mesos
Added unsuppressing via `updateFramework()` to python example framework. This patch ensures that the list of suppressed roles is passed through the `updateFramework()` of python V0 bindings. Now the framework subscribes with all roles suppressed and after that issues UPDATE_FRAMEWORK call to unsuppress offers. Review...
46,103
25.07.2019 09:35:40
25,200
4b15fbdde14eed3a6dbd5c95d271bc26eb7216e2
Exposed agent drain information in the webui. Review:
[ { "change_type": "MODIFY", "old_path": "src/webui/app/agents/agent.html", "new_path": "src/webui/app/agents/agent.html", "diff": "</span>\n</p>\n+ <span ng-if=\"agent.drain_config\">\n+ <h4>Draining</h4>\n+ <dl class=\"inline clearfix\">\n+ <dt>Mark gone:</dt>\n+ <dd>{{agent.drain_config.mark_gone}}...
C++
Apache License 2.0
apache/mesos
Exposed agent drain information in the webui. Review: https://reviews.apache.org/r/71081/
46,128
25.07.2019 12:17:45
25,200
7e160a36918ad73f79c05cb53a48b7424958e497
Added test to verify that Docker executor can override kill policy. This adds a test which verifies that when a scheduler attemps to override a task's default kill policy, the Docker executor will honor that override. Review:
[ { "change_type": "MODIFY", "old_path": "src/internal/evolve.cpp", "new_path": "src/internal/evolve.cpp", "diff": "@@ -86,6 +86,12 @@ v1::AgentInfo evolve(const SlaveInfo& slaveInfo)\n}\n+v1::ContainerInfo evolve(const ContainerInfo& containerInfo)\n+{\n+ return evolve<v1::ContainerInfo>(containerInf...
C++
Apache License 2.0
apache/mesos
Added test to verify that Docker executor can override kill policy. This adds a test which verifies that when a scheduler attemps to override a task's default kill policy, the Docker executor will honor that override. Review: https://reviews.apache.org/r/71035/
46,087
26.07.2019 08:38:16
25,200
c3482852abd26d1d35af3ecb0141784acfc0748f
Fixed a typo in `src/Makefile.am`.
[ { "change_type": "MODIFY", "old_path": "src/Makefile.am", "new_path": "src/Makefile.am", "diff": "@@ -1178,7 +1178,7 @@ libmesos_no_3rdparty_la_SOURCES += \\\noci/spec.cpp \\\nposix/rlimits.cpp \\\nposix/rlimits.hpp \\\n- resource_provider/constants.cpp \\\n+ resource_provider/constants.hpp \\\nreso...
C++
Apache License 2.0
apache/mesos
Fixed a typo in `src/Makefile.am`.
46,057
29.07.2019 14:08:42
-7,200
79821d886d27cfc781d5e0bf987817cc2b6f43cd
Updated site information for the 1.8.1 release.
[ { "change_type": "MODIFY", "old_path": "site/data/releases.yml", "new_path": "site/data/releases.yml", "diff": "# `versions` below.\n# * When publishing a new blog post, we need to append an item to `news` below.\nlatest_stable:\n- version: 1.8.0\n- jira_version: 12343862\n+ version: 1.8.1\n+ jira_v...
C++
Apache License 2.0
apache/mesos
Updated site information for the 1.8.1 release.
46,057
29.07.2019 15:55:36
-7,200
0b4faee085267ab8b2c232d455f2f7622d85d856
Made Bintray RPM upload optional in ASF Jenkinsfile.
[ { "change_type": "MODIFY", "old_path": "support/packaging/Jenkinsfile", "new_path": "support/packaging/Jenkinsfile", "diff": "@@ -47,8 +47,10 @@ parallel(centos7: {\n}\narchiveArtifacts artifacts: '**/*.rpm', fingerprint: true\n+ if (params.UPLOAD_TO_BINTRAY == \"true\") {\nuploadToBintray('*.rpm')\...
C++
Apache License 2.0
apache/mesos
Made Bintray RPM upload optional in ASF Jenkinsfile.
46,072
29.07.2019 15:04:22
14,400
19e52593e5a545fbc480df064454526e6f0996a3
Added unsuppressing via `updateFramework()` to Java example framework. This patch ensures that the list of suppressed roles is passed through the `updateFramework()` of Java V0 bindings. Now the framework subscribes with all roles suppressed and after that issues UPDATE_FRAMEWORK call to unsuppress offers. Review:
[ { "change_type": "MODIFY", "old_path": "src/examples/java/TestFramework.java", "new_path": "src/examples/java/TestFramework.java", "diff": "@@ -31,16 +31,13 @@ import org.apache.mesos.Protos.*;\npublic class TestFramework {\nstatic class TestScheduler implements Scheduler {\n- public TestScheduler(b...
C++
Apache License 2.0
apache/mesos
Added unsuppressing via `updateFramework()` to Java example framework. This patch ensures that the list of suppressed roles is passed through the `updateFramework()` of Java V0 bindings. Now the framework subscribes with all roles suppressed and after that issues UPDATE_FRAMEWORK call to unsuppress offers. Review: ht...
46,165
29.07.2019 17:38:11
14,400
db864ff4579371a7b7086f3789093ba27bb62279
Updated PushGauge to work with double. This enables adoption in Mesos code, since many PullGauges are set with double values. Review:
[ { "change_type": "MODIFY", "old_path": "3rdparty/libprocess/include/process/metrics/push_gauge.hpp", "new_path": "3rdparty/libprocess/include/process/metrics/push_gauge.hpp", "diff": "@@ -58,7 +58,7 @@ public:\nreturn static_cast<double>(data->value.load());\n}\n- PushGauge& operator=(int64_t v)\n+ ...
C++
Apache License 2.0
apache/mesos
Updated PushGauge to work with double. This enables adoption in Mesos code, since many PullGauges are set with double values. Review: https://reviews.apache.org/r/71187
46,165
29.07.2019 17:45:26
14,400
74f01313d563ab127fa34cc14383061a7812ddb0
Added a test for quota guarantee/limit metrics. Review:
[ { "change_type": "MODIFY", "old_path": "src/tests/hierarchical_allocator_tests.cpp", "new_path": "src/tests/hierarchical_allocator_tests.cpp", "diff": "@@ -4248,6 +4248,13 @@ TEST_F_TEMP_DISABLED_ON_WINDOWS(HierarchicalAllocatorTest, DRFWithQuota)\n\"/guarantee\";\nEXPECT_EQ(0.25, metrics.values[met...
C++
Apache License 2.0
apache/mesos
Added a test for quota guarantee/limit metrics. Review: https://reviews.apache.org/r/71189
46,055
29.07.2019 23:33:56
25,200
6f8fcfde600869eda12d17015be0c68ac3bba0d2
Added a test `CommandExecutorTest.AllocationRoleEnvironmentVariable`. Review:
[ { "change_type": "MODIFY", "old_path": "src/tests/command_executor_tests.cpp", "new_path": "src/tests/command_executor_tests.cpp", "diff": "@@ -426,6 +426,72 @@ TEST_P(CommandExecutorTest, NoTransitionFromKillingToRunning)\n#endif // __WINDOWS__\n+// This test verifies that the `MESOS_ALLOCATION_ROL...
C++
Apache License 2.0
apache/mesos
Added a test `CommandExecutorTest.AllocationRoleEnvironmentVariable`. Review: https://reviews.apache.org/r/71002/
46,055
29.07.2019 23:33:57
25,200
11cfb1cad77551f643ad29167766962ac2a71de5
Added a test `DefaultExecutorTest.AllocationRoleEnvironmentVariable`. Review:
[ { "change_type": "MODIFY", "old_path": "src/tests/default_executor_tests.cpp", "new_path": "src/tests/default_executor_tests.cpp", "diff": "@@ -4310,6 +4310,109 @@ TEST_P_TEMP_DISABLED_ON_WINDOWS(DefaultExecutorTest, ROOT_LaunchGroupFailure)\nAWAIT_READY(executorFailure);\n}\n+\n+// This test verifi...
C++
Apache License 2.0
apache/mesos
Added a test `DefaultExecutorTest.AllocationRoleEnvironmentVariable`. Review: https://reviews.apache.org/r/71003/
46,055
29.07.2019 23:33:59
25,200
fe89151e053e5c932f920b839ad00792f99ae42c
Added a test `ROOT_DOCKER_AllocationRoleEnvironmentVariable`. Review:
[ { "change_type": "MODIFY", "old_path": "src/tests/containerizer/docker_containerizer_tests.cpp", "new_path": "src/tests/containerizer/docker_containerizer_tests.cpp", "diff": "@@ -4630,6 +4630,111 @@ TEST_F(DockerContainerizerTest, ROOT_DOCKER_DefaultDNS)\n}\n+// This test verifies that the `MESOS_A...
C++
Apache License 2.0
apache/mesos
Added a test `ROOT_DOCKER_AllocationRoleEnvironmentVariable`. Review: https://reviews.apache.org/r/71004/
46,177
30.07.2019 04:42:29
25,200
f840415bfb218b38d43eb86b7b290b8e189690e5
Windows: Fixed inclusion of kernel version helper. This file uses some stout helpers which are only available on Posix. The affected header is only included by Linux sources.
[ { "change_type": "MODIFY", "old_path": "src/CMakeLists.txt", "new_path": "src/CMakeLists.txt", "diff": "@@ -237,7 +237,6 @@ set(COMMON_SRC\ncommon/build.cpp\ncommon/command_utils.cpp\ncommon/http.cpp\n- common/kernel_version.cpp\ncommon/protobuf_utils.cpp\ncommon/resources.cpp\ncommon/resource_quant...
C++
Apache License 2.0
apache/mesos
Windows: Fixed inclusion of kernel version helper. This file uses some stout helpers which are only available on Posix. The affected header is only included by Linux sources.
46,066
30.07.2019 10:00:38
-7,200
37798b9ea89a6301d64e613ac3ddb2f86f9e233f
Fixed GLog linking with debug targets. When building with debug symbols, the GLog library will be called 'libglogd' instead of 'libglog'. This is resolved by adding a suffix, similar to how it's already done for the Protocol Buffers library. Review:
[ { "change_type": "MODIFY", "old_path": "3rdparty/CMakeLists.txt", "new_path": "3rdparty/CMakeLists.txt", "diff": "@@ -398,10 +398,15 @@ if (CMAKE_GENERATOR MATCHES \"Visual Studio\")\nIMPORTED_IMPLIB_RELEASE ${GLOG_INSTALL_DIR}/lib/glog${CMAKE_IMPORT_LIBRARY_SUFFIX}\n)\nelse ()\n+ # This is for sing...
C++
Apache License 2.0
apache/mesos
Fixed GLog linking with debug targets. When building with debug symbols, the GLog library will be called 'libglogd' instead of 'libglog'. This is resolved by adding a suffix, similar to how it's already done for the Protocol Buffers library. Review: https://reviews.apache.org/r/71198/
46,103
30.07.2019 11:07:05
-7,200
23164bc959109fb4b2354a7eaa1e1bd321214597
Removed `-Werror` from libarchive's cmake build. Review:
[ { "change_type": "MODIFY", "old_path": "3rdparty/libarchive-3.3.2.patch", "new_path": "3rdparty/libarchive-3.3.2.patch", "diff": "@@ -56,3 +56,35 @@ index 73bf07b3..2a58a3a7 100644\nENDIF (MSVC)\n#\nCHECK_C_SOURCE_COMPILES(\n+From 777b6c374baab55b939bb4163f7160dd9f8b426a Mon Sep 17 00:00:00 2001\n+F...
C++
Apache License 2.0
apache/mesos
Removed `-Werror` from libarchive's cmake build. Review: https://reviews.apache.org/r/71200
46,128
30.07.2019 10:58:36
-7,200
00bb0b6d6abe7700a5adab0bdaf7e91767a2db19
Added documentation for GET_OPERATIONS calls. Review:
[ { "change_type": "MODIFY", "old_path": "docs/operator-http-api.md", "new_path": "docs/operator-http-api.md", "diff": "@@ -1661,6 +1661,93 @@ Content-Type: application/json\n```\n+### GET_OPERATIONS\n+\n+Returns a list of all offer operations throughout the cluster, not including\n+`LAUNCH` or `LAUNC...
C++
Apache License 2.0
apache/mesos
Added documentation for GET_OPERATIONS calls. Review: https://reviews.apache.org/r/71199
46,148
29.07.2019 14:26:48
25,200
fecbaf9f78b234c15b494303de0f2f37738ea583
Improved a test for jsonify map fields mapping. Review:
[ { "change_type": "MODIFY", "old_path": "3rdparty/stout/tests/protobuf_tests.cpp", "new_path": "3rdparty/stout/tests/protobuf_tests.cpp", "diff": "#include <algorithm>\n#include <string>\n+#include <google/protobuf/util/message_differencer.h>\n+\n#include <stout/gtest.hpp>\n#include <stout/json.hpp>\...
C++
Apache License 2.0
apache/mesos
Improved a test for jsonify map fields mapping. Review: https://reviews.apache.org/r/71186
46,103
31.07.2019 13:46:23
-7,200
e8f53dc7ba43e40dc159931e42e5759bcabd25aa
Fixed column key name. This column contained only information on draining while in review, but was changed to now display a more general agent state. While doing that we missed changing the used column key, and fix this with this follow-up patch. Review:
[ { "change_type": "MODIFY", "old_path": "src/webui/app/agents/agents.html", "new_path": "src/webui/app/agents/agents.html", "diff": "<tr>\n<th data-key=\"id\">ID</th>\n<th data-key=\"hostname\">Host</th>\n- <th data-key=\"draining\">State</th>\n+ <th data-key=\"state\">State</th>\n<th data-key=\"reso...
C++
Apache License 2.0
apache/mesos
Fixed column key name. This column contained only information on draining while in review, but was changed to now display a more general agent state. While doing that we missed changing the used column key, and fix this with this follow-up patch. Review: https://reviews.apache.org/r/71180/
46,103
31.07.2019 13:46:26
-7,200
b8421accc31ce81e606832c42888985780b1b3bc
Prevented webui from displaying unset drain config field. This field might not be present and displayed as NaN in that case. With this patch the field is unconditionally hidden. Review:
[ { "change_type": "MODIFY", "old_path": "src/webui/app/agents/agent.html", "new_path": "src/webui/app/agents/agent.html", "diff": "<dl class=\"inline clearfix\">\n<dt>Mark gone:</dt>\n<dd>{{agent.drain_config.mark_gone}}</dd>\n- <dt>Max. grace period:</dt>\n- <dd>{{agent.drain_config.max_grace_period...
C++
Apache License 2.0
apache/mesos
Prevented webui from displaying unset drain config field. This field might not be present and displayed as NaN in that case. With this patch the field is unconditionally hidden. Review: https://reviews.apache.org/r/71181/
46,103
31.07.2019 13:46:41
-7,200
91c78396a72c445f450db8b22c13b96faf431bce
Added expected drain end time to webui's agent screen. Review:
[ { "change_type": "MODIFY", "old_path": "src/webui/app/agents/agent.html", "new_path": "src/webui/app/agents/agent.html", "diff": "<dl class=\"inline clearfix\">\n<dt>Mark gone:</dt>\n<dd>{{agent.drain_config.mark_gone}}</dd>\n- <dt ng-if=\"agent.drain_config.max_grace_period.nanoseconds\">Max. grace...
C++
Apache License 2.0
apache/mesos
Added expected drain end time to webui's agent screen. Review: https://reviews.apache.org/r/71184/
46,165
01.08.2019 14:56:07
14,400
682bdcd82202423ecd77083e28cd1aeb513edada
Fixed the webui roles table resource sorting. All of the roles table resource columns were using the wrong keys for sorting. Review:
[ { "change_type": "MODIFY", "old_path": "src/webui/app/roles/roles.html", "new_path": "src/webui/app/roles/roles.html", "diff": "@@ -51,35 +51,35 @@ Quota Limit\n<th class=\"group-column\" ng-show=\"show_quota_limit\" colspan=\"4\" class=\"end-group-column\">Limit</th>\n</tr>\n<tr>\n- <th ng-show=\"s...
C++
Apache License 2.0
apache/mesos
Fixed the webui roles table resource sorting. All of the roles table resource columns were using the wrong keys for sorting. Review: https://reviews.apache.org/r/71229
46,148
30.07.2019 17:21:10
25,200
1186df321ffae1272cfaf1d5f539c9305777defe
Updated operator HTTP API documentation regarding `GET_QUOTA`. The deprecated guarantee, principal and role fields are now hidden. Review:
[ { "change_type": "MODIFY", "old_path": "docs/operator-http-api.md", "new_path": "docs/operator-http-api.md", "diff": "@@ -2423,26 +2423,27 @@ Content-Type: application/json\n\"status\": {\n\"infos\": [\n{\n- \"guarantee\": [\n+ \"configs\" : [\n{\n- \"name\": \"cpus\",\n- \"role\": \"*\",\n- \"scala...
C++
Apache License 2.0
apache/mesos
Updated operator HTTP API documentation regarding `GET_QUOTA`. The deprecated guarantee, principal and role fields are now hidden. Review: https://reviews.apache.org/r/71212
46,148
30.07.2019 17:31:40
25,200
e40889b54163a86813edbdc519a655ef610fe946
Updated operator HTTP API documentation regarding `UPDATE_QUOTA`. The deprecated calls `SET_QUOTA` and `REMOVE_QUOTA` are now hidden. Review:
[ { "change_type": "MODIFY", "old_path": "docs/operator-http-api.md", "new_path": "docs/operator-http-api.md", "diff": "@@ -2452,12 +2452,15 @@ Content-Type: application/json\n```\n-### SET_QUOTA\n+### UPDATE_QUOTA\n-This call sets the quota for resources to be used by a particular role.\n+This call u...
C++
Apache License 2.0
apache/mesos
Updated operator HTTP API documentation regarding `UPDATE_QUOTA`. The deprecated calls `SET_QUOTA` and `REMOVE_QUOTA` are now hidden. Review: https://reviews.apache.org/r/71213
46,148
30.07.2019 17:50:55
25,200
6ce10107346d65ea12a60667dd222096a042b938
Marked `SET_QUOTA` and `REMOVE_QUOTA` as deprecated. These are deprecated in favor of `UPDATE_QUOTA`. Review:
[ { "change_type": "MODIFY", "old_path": "include/mesos/master/master.proto", "new_path": "include/mesos/master/master.proto", "diff": "@@ -95,18 +95,14 @@ message Call {\nREACTIVATE_AGENT = 39; // See 'ReactivateAgent' below.\nGET_QUOTA = 28;\n-\n- // EXPERIMENTAL DO NOT USE.\n- //\n- // This feature...
C++
Apache License 2.0
apache/mesos
Marked `SET_QUOTA` and `REMOVE_QUOTA` as deprecated. These are deprecated in favor of `UPDATE_QUOTA`. Review: https://reviews.apache.org/r/71214
46,148
01.08.2019 11:07:49
25,200
2b4f908158b0e646ee06359640a3862741336dac
Moved the sorter code under the `master/allocator/mesos/`. The sorter interface is designed and used by the built-in hierarchical allocator. It is not intended to be used by other allocators. This patch moves it under the built-in mesos allocator folder for structural clarity. Review:
[ { "change_type": "MODIFY", "old_path": "docs/allocation-module.md", "new_path": "docs/allocation-module.md", "diff": "@@ -23,7 +23,7 @@ The default allocator is `HierarchicalDRFAllocatorProcess`, which lives in `$MES\nAdditionally, the built-in hierarchical allocator can be extended without the need...
C++
Apache License 2.0
apache/mesos
Moved the sorter code under the `master/allocator/mesos/`. The sorter interface is designed and used by the built-in hierarchical allocator. It is not intended to be used by other allocators. This patch moves it under the built-in mesos allocator folder for structural clarity. Review: https://reviews.apache.org/r/712...
46,055
27.07.2019 15:34:23
-28,800
b76d19aff3419cf684ad64f0ca1fe35bf100f884
Looked up parent's IP for the non-checkpointed nested containers. Review:
[ { "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": "@@ -1437,12 +1437,29 @@ Future<Nothing> NetworkCniIsolatorProcess::_attach(\nFuture<ContainerStatus> NetworkCniIso...
C++
Apache License 2.0
apache/mesos
Looked up parent's IP for the non-checkpointed nested containers. Review: https://reviews.apache.org/r/71172
46,055
03.08.2019 10:44:28
-28,800
e443026c608f842e6dc29ba3cc78c69ce4272779
Added a test `ROOT_VETH_VerifyNestedContainerIPAfterReboot`. Review:
[ { "change_type": "MODIFY", "old_path": "src/tests/containerizer/cni_isolator_tests.cpp", "new_path": "src/tests/containerizer/cni_isolator_tests.cpp", "diff": "@@ -2763,6 +2763,171 @@ TEST_F(CniIsolatorTest, ROOT_CleanupAfterReboot)\nASSERT_TRUE(os::exists(cniDeleteSignalFile));\n}\n+\n+// This test...
C++
Apache License 2.0
apache/mesos
Added a test `ROOT_VETH_VerifyNestedContainerIPAfterReboot`. Review: https://reviews.apache.org/r/71235
46,128
06.08.2019 09:25:09
-7,200
e6edb0a1cf9fd2f8ab7fcb5c291b7a14389118a6
Updated maintenance docs to include agent draining. Review:
[ { "change_type": "MODIFY", "old_path": "docs/maintenance.md", "new_path": "docs/maintenance.md", "diff": "---\n-title: Apache Mesos - Maintenance Primitives\n+title: Apache Mesos - Performing Maintenance\nlayout: documentation\n---\n-# Maintenance Primitives\n+# Performing Node Maintenance in a Meso...
C++
Apache License 2.0
apache/mesos
Updated maintenance docs to include agent draining. Review: https://reviews.apache.org/r/71219/
46,148
06.08.2019 14:51:09
25,200
04ef1dca999f1d96210a74c5393c86b03e050ef4
Updated include guards in the sorter header files.
[ { "change_type": "MODIFY", "old_path": "src/master/allocator/mesos/sorter/drf/sorter.hpp", "new_path": "src/master/allocator/mesos/sorter/drf/sorter.hpp", "diff": "// See the License for the specific language governing permissions and\n// limitations under the License.\n-#ifndef __MASTER_ALLOCATOR_S...
C++
Apache License 2.0
apache/mesos
Updated include guards in the sorter header files.
46,129
07.08.2019 16:40:20
25,200
ab748689a637db395da985cd2991659a56d197d4
Added a new agent flag --allow_chown_docker_volume. Review:
[ { "change_type": "MODIFY", "old_path": "docs/configuration/agent.md", "new_path": "docs/configuration/agent.md", "diff": "@@ -795,6 +795,18 @@ volumes that each container uses.\n</td>\n</tr>\n+<tr id=\"docker_volume_chown\">\n+ <td>\n+ --[no-]docker_volume_chown\n+ </td>\n+ <td>\n+Whether to chown t...
C++
Apache License 2.0
apache/mesos
Added a new agent flag --allow_chown_docker_volume. Review: https://reviews.apache.org/r/71247
46,129
07.08.2019 17:05:33
25,200
8c79ba6428ba8e3f059d68522ccf63e7b1738714
Supported chown docker volumes in the docker volume isolator. If the agent flag --docker_volume_chown is true, Mesos will chown the docker volume to the container user non-recursively. Review:
[ { "change_type": "MODIFY", "old_path": "src/slave/containerizer/mesos/isolators/docker/volume/isolator.cpp", "new_path": "src/slave/containerizer/mesos/isolators/docker/volume/isolator.cpp", "diff": "@@ -541,6 +541,9 @@ Future<Option<ContainerLaunchInfo>> DockerVolumeIsolatorProcess::prepare(\nconta...
C++
Apache License 2.0
apache/mesos
Supported chown docker volumes in the docker volume isolator. If the agent flag --docker_volume_chown is true, Mesos will chown the docker volume to the container user non-recursively. Review: https://reviews.apache.org/r/71248
46,129
07.08.2019 17:24:29
25,200
67eda699cb68b2f58aa591e6e8d63682bc3d76d2
Added a unit test for the docker volume chown support. Review:
[ { "change_type": "MODIFY", "old_path": "src/tests/containerizer/docker_volume_isolator_tests.cpp", "new_path": "src/tests/containerizer/docker_volume_isolator_tests.cpp", "diff": "@@ -1267,6 +1267,148 @@ TEST_F(DockerVolumeIsolatorTest,\n}\n+// This test verifies that a docker volume with absolute p...
C++
Apache License 2.0
apache/mesos
Added a unit test for the docker volume chown support. Review: https://reviews.apache.org/r/71249
46,148
12.08.2019 12:28:34
25,200
970026f45f876caf8a156602e4fec89b47422c1c
Fixed a flaky test `RescindOffersEnforcingLimits`. The test is flaky because the agent is added before the framework and agent is not offered the framework as expected. This patch ensures that the framework is added before the agent. Review:
[ { "change_type": "MODIFY", "old_path": "src/tests/master_quota_tests.cpp", "new_path": "src/tests/master_quota_tests.cpp", "diff": "@@ -2080,12 +2080,7 @@ TEST_F(MasterQuotaTest, RescindOffersEnforcingLimits)\n// Cluster resources: cpus:1;mem:1024\n// Allocated: `ROLE1` cpus:1;mem:1024\n- // Start a...
C++
Apache License 2.0
apache/mesos
Fixed a flaky test `RescindOffersEnforcingLimits`. The test is flaky because the agent is added before the framework and agent is not offered the framework as expected. This patch ensures that the framework is added before the agent. Review: https://reviews.apache.org/r/71273
46,165
07.08.2019 16:48:54
14,400
1e1bf874934596cbfb58054b7ff4773e2a190fae
Re-wrote the quota documentation to reflect quota limits. This takes a simpler approach compared to the previous version, which explained too many details that were not important for the user to understand. This also documents that quota guarantees are deprecated and why. Review:
[ { "change_type": "MODIFY", "old_path": "docs/operator-http-api.md", "new_path": "docs/operator-http-api.md", "diff": "@@ -2426,21 +2426,10 @@ Content-Type: application/json\n\"configs\" : [\n{\n\"role\": \"dev\",\n- \"guarantees\": {\n- \"cpus\": {\n- \"value\": 1.0\n- },\n- \"mem\": {\n- \"value\":...
C++
Apache License 2.0
apache/mesos
Re-wrote the quota documentation to reflect quota limits. This takes a simpler approach compared to the previous version, which explained too many details that were not important for the user to understand. This also documents that quota guarantees are deprecated and why. Review: https://reviews.apache.org/r/71263
46,165
09.08.2019 17:33:23
14,400
11a7e71532a7c9b3a1032a178e3d7562577575a6
Added a test to ensure that filters are cleared upon unsuppression. Review:
[ { "change_type": "MODIFY", "old_path": "src/tests/master/update_framework_tests.cpp", "new_path": "src/tests/master/update_framework_tests.cpp", "diff": "@@ -1135,6 +1135,83 @@ TEST_F(UpdateFrameworkV0Test, SuppressedRoles)\n}\n+// Test that when a framework removes a role from the\n+// suppressed r...
C++
Apache License 2.0
apache/mesos
Added a test to ensure that filters are cleared upon unsuppression. Review: https://reviews.apache.org/r/71265
46,148
07.08.2019 16:11:20
25,200
cb7b70db813a8e4d2628e9283e25780cd0ce11b0
Fixed and improved `Sorter::remove` function. There is a bug in the remove() function where after collapsing and turning an internal node into an leaf node, the new node's position needs to updated in the parent's children list. See This patch fixes the bug and also refactored the function logic. Review:
[ { "change_type": "MODIFY", "old_path": "src/master/allocator/mesos/sorter/drf/sorter.cpp", "new_path": "src/master/allocator/mesos/sorter/drf/sorter.cpp", "diff": "@@ -207,15 +207,14 @@ void DRFSorter::remove(const string& clientPath)\n}\nif (current->children.empty()) {\n+ // Simply delete the curr...
C++
Apache License 2.0
apache/mesos
Fixed and improved `Sorter::remove` function. There is a bug in the remove() function where after collapsing and turning an internal node into an leaf node, the new node's position needs to updated in the parent's children list. See MESOS-9930. This patch fixes the bug and also refactored the function logic. Review:...
46,148
06.08.2019 12:28:04
25,200
54b45433e13579f6ab84fb955ee5248d9737ffd8
Defined constant `DEFAULT_WEIGHT`. A role's default weight == 1.0. This affects the sorting precedence during resource allocation. Review:
[ { "change_type": "MODIFY", "old_path": "src/master/allocator/mesos/sorter/drf/sorter.cpp", "new_path": "src/master/allocator/mesos/sorter/drf/sorter.cpp", "diff": "// limitations under the License.\n#include \"master/allocator/mesos/sorter/drf/sorter.hpp\"\n+#include \"master/constants.hpp\"\n#inclu...
C++
Apache License 2.0
apache/mesos
Defined constant `DEFAULT_WEIGHT`. A role's default weight == 1.0. This affects the sorting precedence during resource allocation. Review: https://reviews.apache.org/r/71257
46,148
06.08.2019 12:35:23
25,200
1310bd0dfb826ed6dac80ef26a9bd5b6a9229752
Tracked weight info in the Role struct in the allocator. Review:
[ { "change_type": "MODIFY", "old_path": "src/master/allocator/mesos/hierarchical.cpp", "new_path": "src/master/allocator/mesos/hierarchical.cpp", "diff": "@@ -1415,6 +1415,7 @@ void HierarchicalAllocatorProcess::updateWeights(\nforeach (const WeightInfo& weightInfo, weightInfos) {\nCHECK(weightInfo.h...
C++
Apache License 2.0
apache/mesos
Tracked weight info in the Role struct in the allocator. Review: https://reviews.apache.org/r/71258
46,055
15.08.2019 11:49:23
25,200
34330fb08466116c8483ce6de234126a6089a683
Moved const string `.secret` to paths.hpp. Review:
[ { "change_type": "MODIFY", "old_path": "src/slave/containerizer/mesos/isolators/volume/secret.cpp", "new_path": "src/slave/containerizer/mesos/isolators/volume/secret.cpp", "diff": "// See the License for the specific language governing permissions and\n// limitations under the License.\n+#include \...
C++
Apache License 2.0
apache/mesos
Moved const string `.secret` to paths.hpp. Review: https://reviews.apache.org/r/71221/
46,055
15.08.2019 11:49:24
25,200
244ce660ba70abb9bd772abd6b0605ae1eb9366b
Added a test `VolumeSecretIsolatorCleanupTest.ROOT_FailInPreparing`. Review:
[ { "change_type": "MODIFY", "old_path": "src/tests/containerizer/volume_secret_isolator_tests.cpp", "new_path": "src/tests/containerizer/volume_secret_isolator_tests.cpp", "diff": "#include <stout/gtest.hpp>\n+#include \"slave/containerizer/mesos/paths.hpp\"\n+\n#include \"tests/mesos.hpp\"\n#include...
C++
Apache License 2.0
apache/mesos
Added a test `VolumeSecretIsolatorCleanupTest.ROOT_FailInPreparing`. Review: https://reviews.apache.org/r/71222/
46,055
15.08.2019 14:04:17
25,200
7232dc139fe1e41db8d9476a16383df5ddbe427a
Included task group's resources in the ExecutorInfo. Review:
[ { "change_type": "MODIFY", "old_path": "src/slave/slave.cpp", "new_path": "src/slave/slave.cpp", "diff": "@@ -3110,15 +3110,21 @@ void Slave::__run(\ndefaultExecutorCommandInfo(flags.launcher_dir, executor->user);\n}\n- // NOTE: We modify the ExecutorInfo to include the task's resources when\n- // l...
C++
Apache License 2.0
apache/mesos
Included task group's resources in the ExecutorInfo. Review: https://reviews.apache.org/r/71244/
46,055
15.08.2019 14:04:21
25,200
773b3f7af75af45ad7db2c36a366eec56512b42f
Added a test `SlaveTest.DefaultExecutorResources`. Review:
[ { "change_type": "MODIFY", "old_path": "src/tests/slave_tests.cpp", "new_path": "src/tests/slave_tests.cpp", "diff": "@@ -9332,6 +9332,121 @@ TEST_F_TEMP_DISABLED_ON_WINDOWS(SlaveTest, DefaultExecutorCommandInfo)\n}\n+// This test verifies that the agent correctly populates the resources\n+// for de...
C++
Apache License 2.0
apache/mesos
Added a test `SlaveTest.DefaultExecutorResources`. Review: https://reviews.apache.org/r/71287/
46,165
16.08.2019 19:05:33
14,400
4dded8aee7e8c385a4671233d7ee9092782cb780
Marked /quota endpoint as deprecated. This endpoint is already hidden from the quota documentation, this updates the endpoint to note the deprecation. Review:
[ { "change_type": "MODIFY", "old_path": "src/master/http.cpp", "new_path": "src/master/http.cpp", "diff": "@@ -2113,8 +2113,11 @@ string Master::Http::QUOTA_HELP()\n{\nreturn HELP(\nTLDR(\n- \"Gets or updates quota for roles.\"),\n+ \"(Deprecated) Gets or updates quota for roles.\"),\nDESCRIPTION(\n+...
C++
Apache License 2.0
apache/mesos
Marked /quota endpoint as deprecated. This endpoint is already hidden from the quota documentation, this updates the endpoint to note the deprecation. Review: https://reviews.apache.org/r/71302
46,148
19.08.2019 13:55:25
25,200
734523178f2e8e722fb4d15d00194e3e019ef722
Added method to dump role tree state for debugging. It dumps the role tree state in JSON format. This can potentially be added to an allocator debug endpoint. Review:
[ { "change_type": "MODIFY", "old_path": "src/master/allocator/mesos/hierarchical.cpp", "new_path": "src/master/allocator/mesos/hierarchical.cpp", "diff": "#include <stout/stopwatch.hpp>\n#include <stout/stringify.hpp>\n+#include \"common/http.hpp\"\n#include \"common/protobuf_utils.hpp\"\n#include \"...
C++
Apache License 2.0
apache/mesos
Added method to dump role tree state for debugging. It dumps the role tree state in JSON format. This can potentially be added to an allocator debug endpoint. Review: https://reviews.apache.org/r/71311
46,148
19.08.2019 13:57:07
25,200
f4db86c525affd8b875b6ddb8f1a608eee830ce6
Made RoleTree class default constructable. This makes the metric handler optional. This is mainly for unit testing purpose. Review:
[ { "change_type": "MODIFY", "old_path": "src/master/allocator/mesos/hierarchical.cpp", "new_path": "src/master/allocator/mesos/hierarchical.cpp", "diff": "@@ -224,6 +224,9 @@ void Role::removeChild(Role* child)\n}\n+RoleTree::RoleTree() : root_(new Role(\"\", nullptr)) {}\n+\n+\nRoleTree::RoleTree(Me...
C++
Apache License 2.0
apache/mesos
Made RoleTree class default constructable. This makes the metric handler optional. This is mainly for unit testing purpose. Review: https://reviews.apache.org/r/71312
46,148
19.08.2019 13:58:11
25,200
c7979930e7901b090ebed98baf1e525e9aea80fb
Added a test for RoleTree for basic add and remove operations. Review:
[ { "change_type": "MODIFY", "old_path": "src/tests/sorter_tests.cpp", "new_path": "src/tests/sorter_tests.cpp", "diff": "#include \"master/allocator/mesos/sorter/random/sorter.hpp\"\n#include \"master/allocator/mesos/sorter/random/utils.hpp\"\n+#include \"master/allocator/mesos/hierarchical.hpp\"\n+\...
C++
Apache License 2.0
apache/mesos
Added a test for RoleTree for basic add and remove operations. Review: https://reviews.apache.org/r/71313
46,103
14.08.2019 09:33:14
-7,200
d63be44d94c5763a26c97990ac4236d60a4c2c18
Fixed signature to pass parameter by const ref instead of value. Review:
[ { "change_type": "MODIFY", "old_path": "src/tests/storage_local_resource_provider_tests.cpp", "new_path": "src/tests/storage_local_resource_provider_tests.cpp", "diff": "@@ -243,10 +243,10 @@ public:\nvoid setupResourceProviderConfig(\nconst Bytes& capacity,\n- const Option<string> volumes = None(),...
C++
Apache License 2.0
apache/mesos
Fixed signature to pass parameter by const ref instead of value. Review: https://reviews.apache.org/r/71145/
46,103
14.08.2019 09:33:19
-7,200
0fdeae60a1b675e71447a1189fb0f15b1b4f0129
Clarified a comment in storage local resource provider tests. Review:
[ { "change_type": "MODIFY", "old_path": "src/tests/storage_local_resource_provider_tests.cpp", "new_path": "src/tests/storage_local_resource_provider_tests.cpp", "diff": "@@ -612,7 +612,7 @@ TEST_P(StorageLocalResourceProviderTest, NoResource)\nslave::Flags slaveFlags = CreateSlaveFlags();\n- // Sinc...
C++
Apache License 2.0
apache/mesos
Clarified a comment in storage local resource provider tests. Review: https://reviews.apache.org/r/71146/