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,082
05.12.2017 10:39:47
28,800
0d9ce98e9df97be06144d2e29cf23a9c090a06b3
Changed dispatch to use callable once functors. `dispatch` guarantees that functor will be called at most once, and therefore it allows optimizations, such as moves of deferred objects. Review:
[ { "change_type": "MODIFY", "old_path": "3rdparty/libprocess/include/process/dispatch.hpp", "new_path": "3rdparty/libprocess/include/process/dispatch.hpp", "diff": "@@ -64,7 +64,7 @@ namespace internal {\n// will probably change in the future to unique_ptr (or a variant).\nvoid dispatch(\nconst UPID&...
C++
Apache License 2.0
apache/mesos
Changed dispatch to use callable once functors. `dispatch` guarantees that functor will be called at most once, and therefore it allows optimizations, such as moves of deferred objects. Review: https://reviews.apache.org/r/63634/
46,082
05.12.2017 10:40:37
28,800
13eda27802cfe05800d4dcbed22c46ca7b46bafb
Prepared `defer` for use in callable-once contexts. This changes `defer` to use `lambda::partial` instead of `std::bind`, which allows it be used in callable-once contexts. Review:
[ { "change_type": "MODIFY", "old_path": "3rdparty/libprocess/include/process/defer.hpp", "new_path": "3rdparty/libprocess/include/process/defer.hpp", "diff": "@@ -60,7 +60,10 @@ Deferred<void()> defer(const Process<T>* process, void (T::*method)())\n// http://stackoverflow.com/questions/20097616/stdb...
C++
Apache License 2.0
apache/mesos
Prepared `defer` for use in callable-once contexts. This changes `defer` to use `lambda::partial` instead of `std::bind`, which allows it be used in callable-once contexts. Review: https://reviews.apache.org/r/63635/
46,082
05.12.2017 11:20:41
28,800
09b72e9bbf87793ce84df5d5f9d5f292c60fa5ee
Added `CallableOnce` support in `defer`. This allows `defer` result to be converted to `CallableOnce`, ensuring that bound arguments are moved, when call is made, and avoiding making copies of bound arguments. Review:
[ { "change_type": "MODIFY", "old_path": "3rdparty/libprocess/include/process/deferred.hpp", "new_path": "3rdparty/libprocess/include/process/deferred.hpp", "diff": "@@ -105,6 +105,22 @@ struct _Deferred\n});\n}\n+ operator lambda::CallableOnce<void()>() &&\n+ {\n+ if (pid.isNone()) {\n+ return lambda...
C++
Apache License 2.0
apache/mesos
Added `CallableOnce` support in `defer`. This allows `defer` result to be converted to `CallableOnce`, ensuring that bound arguments are moved, when call is made, and avoiding making copies of bound arguments. Review: https://reviews.apache.org/r/63637/
46,082
05.12.2017 11:20:55
28,800
8014e3f9e1838745a6f3af7c1e2a557bd74349b0
Added `CallableOnce` support in `Future`. `Future` guarantees that callbacks are called at most once, so it can use `lambda::CallableOnce` to expicitly declare this, and allow corresponding optimizations with moves. Review:
[ { "change_type": "MODIFY", "old_path": "3rdparty/libprocess/include/process/future.hpp", "new_path": "3rdparty/libprocess/include/process/future.hpp", "diff": "@@ -159,12 +159,12 @@ public:\n// Type of the callback functions that can get invoked when the\n// future gets set, fails, or is discarded.\...
C++
Apache License 2.0
apache/mesos
Added `CallableOnce` support in `Future`. `Future` guarantees that callbacks are called at most once, so it can use `lambda::CallableOnce` to expicitly declare this, and allow corresponding optimizations with moves. Review: https://reviews.apache.org/r/63638/
46,082
05.12.2017 11:21:11
28,800
c9e6a03c02e9f8dc040b937ccd5ae89e5530fd7e
Used `std::move` for `Event`s consumption in the master. Review:
[ { "change_type": "MODIFY", "old_path": "src/master/master.cpp", "new_path": "src/master/master.cpp", "diff": "@@ -1590,19 +1590,19 @@ void Master::consume(ExitedEvent&& event)\n: Option<string>::none();\n// Necessary to disambiguate below.\n- typedef void(Self::*F)(const ExitedEvent&);\n+ typedef vo...
C++
Apache License 2.0
apache/mesos
Used `std::move` for `Event`s consumption in the master. Review: https://reviews.apache.org/r/63641/
46,082
05.12.2017 11:21:27
28,800
6839897c5464fce6b8cbd253d959a7e2efd72987
Made `Event` move-only in libprocess. Review:
[ { "change_type": "MODIFY", "old_path": "3rdparty/libprocess/include/process/event.hpp", "new_path": "3rdparty/libprocess/include/process/event.hpp", "diff": "@@ -121,8 +121,7 @@ struct MessageEvent : Event\n: message{std::move(name), from, to, std::move(data)} {}\nMessageEvent(MessageEvent&& that) =...
C++
Apache License 2.0
apache/mesos
Made `Event` move-only in libprocess. Review: https://reviews.apache.org/r/64347/
46,057
05.12.2017 20:53:53
-3,600
4d2c30453d862e8e9197322881b3d29915850ede
Correctly updated total resources when agent capabilities changed. Due to the short-circuiting behaviour of C++ boolean operations, an agent that re-registers with changed agent capabilities would not have its total updated. Review:
[ { "change_type": "MODIFY", "old_path": "src/master/allocator/mesos/hierarchical.cpp", "new_path": "src/master/allocator/mesos/hierarchical.cpp", "diff": "@@ -641,7 +641,7 @@ void HierarchicalAllocatorProcess::updateSlave(\n}\nif (total.isSome()) {\n- updated = updated || updateSlaveTotal(slaveId, to...
C++
Apache License 2.0
apache/mesos
Correctly updated total resources when agent capabilities changed. Due to the short-circuiting behaviour of C++ boolean operations, an agent that re-registers with changed agent capabilities would not have its total updated. Review: https://reviews.apache.org/r/64342/
46,062
05.12.2017 13:12:05
28,800
1d24d42ea10b324fa8a01b8b0080d5ffb3e3c6dd
Added `stout/cpp14.hpp` to `Makefile.am`.
[ { "change_type": "MODIFY", "old_path": "3rdparty/stout/include/Makefile.am", "new_path": "3rdparty/stout/include/Makefile.am", "diff": "@@ -20,6 +20,7 @@ nobase_include_HEADERS = \\\nstout/boundedhashmap.hpp \\\nstout/bits.hpp \\\nstout/bytes.hpp \\\n+ stout/cpp14.hpp \\\nstout/cpp17.hpp \\\nstout/c...
C++
Apache License 2.0
apache/mesos
Added `stout/cpp14.hpp` to `Makefile.am`.
46,057
05.12.2017 13:55:22
28,800
114519a46366b0e19f1ae0c64dcd2493c51a068a
Convert resource format of messages entering master. Review:
[ { "change_type": "MODIFY", "old_path": "src/master/master.cpp", "new_path": "src/master/master.cpp", "diff": "@@ -6044,6 +6044,20 @@ void Master::registerSlave(\nslaves.registering.insert(from);\n+ // Update all resources passed by the agent to `POST_RESERVATION_REFINEMENT`\n+ // format. We do this ...
C++
Apache License 2.0
apache/mesos
Convert resource format of messages entering master. Review: https://reviews.apache.org/r/64252/
46,057
05.12.2017 13:55:30
28,800
054bd5abc6b9788553cd5beb285bd46bbe2dec0d
Added new UpdateSlave registry operation. This operation can be used to update the stored state of an existing, admitted slave. Review:
[ { "change_type": "MODIFY", "old_path": "src/master/registry_operations.cpp", "new_path": "src/master/registry_operations.cpp", "diff": "@@ -51,6 +51,50 @@ Try<bool> AdmitSlave::perform(Registry* registry, hashset<SlaveID>* slaveIDs)\n}\n+UpdateSlave::UpdateSlave(const SlaveInfo& _info) : info(_info)...
C++
Apache License 2.0
apache/mesos
Added new UpdateSlave registry operation. This operation can be used to update the stored state of an existing, admitted slave. Review: https://reviews.apache.org/r/64009/
46,057
05.12.2017 13:55:52
28,800
f4d2c8f547e42b65dd0040ddbe35157335577f6a
Activated AGENT_UPDATE master capability. Review:
[ { "change_type": "MODIFY", "old_path": "src/master/constants.cpp", "new_path": "src/master/constants.cpp", "diff": "@@ -22,7 +22,18 @@ namespace master {\nstd::vector<MasterInfo::Capability> MASTER_CAPABILITIES()\n{\n- return {}; // Empty for now.\n+ MasterInfo::Capability::Type types[] = {\n+ Maste...
C++
Apache License 2.0
apache/mesos
Activated AGENT_UPDATE master capability. Review: https://reviews.apache.org/r/64008/
46,057
05.12.2017 13:56:14
28,800
b612e9d511daa2a5f99ef984c7eb9aeeda79c4db
Check if slave is marked gone during reregistration. This commit adds checks that test whether a re-registering agent is being marked gone or has been marked gone during the re-registration attempt. Review:
[ { "change_type": "MODIFY", "old_path": "src/master/master.cpp", "new_path": "src/master/master.cpp", "diff": "@@ -6472,6 +6472,24 @@ void Master::_reregisterSlave(\nreturn;\n}\n+ if (slaves.markingGone.contains(slaveInfo.id())) {\n+ LOG(INFO)\n+ << \"Ignoring re-register agent message from agent \"\...
C++
Apache License 2.0
apache/mesos
Check if slave is marked gone during reregistration. This commit adds checks that test whether a re-registering agent is being marked gone or has been marked gone during the re-registration attempt. Review: https://reviews.apache.org/r/64169/
46,057
05.12.2017 13:56:20
28,800
7b0812e9bf851b8baadadf1c1a95f3790a43d788
Skip registry update when nothing changed. Most of the time, agents will not change their configuration when they restart, so we can skip updating the registry in this case. Review:
[ { "change_type": "MODIFY", "old_path": "src/master/master.cpp", "new_path": "src/master/master.cpp", "diff": "@@ -6582,6 +6582,21 @@ void Master::_reregisterSlave(\n// TODO(bevers): Verify that the checkpointed resources sent by the\n// slave match the ones stored in `slave`.\n+\n+ // Skip updating ...
C++
Apache License 2.0
apache/mesos
Skip registry update when nothing changed. Most of the time, agents will not change their configuration when they restart, so we can skip updating the registry in this case. Review: https://reviews.apache.org/r/64101/
46,082
05.12.2017 13:45:56
28,800
bca8c6a05d03a2162c04703a9c1ac8172fdfae8a
Replaced `std::shared_ptr` with `std::unique_ptr` in `dispatch`. Since `dispatch` can now handle move-only parameters, `Promise` and function object can be wrapped into `std::unique_ptr` for efficiency.
[ { "change_type": "MODIFY", "old_path": "3rdparty/libprocess/include/process/dispatch.hpp", "new_path": "3rdparty/libprocess/include/process/dispatch.hpp", "diff": "#define __PROCESS_DISPATCH_HPP__\n#include <functional>\n-#include <memory> // TODO(benh): Replace shared_ptr with unique_ptr.\n+#includ...
C++
Apache License 2.0
apache/mesos
Replaced `std::shared_ptr` with `std::unique_ptr` in `dispatch`. Since `dispatch` can now handle move-only parameters, `Promise` and function object can be wrapped into `std::unique_ptr` for efficiency.
46,082
05.12.2017 13:47:53
28,800
bbd8381ebce3522841e80ae53f56b3049342f15b
Replaced `std::shared_ptr` with `std::unique_ptr` in `Future`. Review:
[ { "change_type": "MODIFY", "old_path": "3rdparty/libprocess/include/process/future.hpp", "new_path": "3rdparty/libprocess/include/process/future.hpp", "diff": "@@ -1482,7 +1482,7 @@ namespace internal {\n// Future since the compiler can't properly infer otherwise.\ntemplate <typename T, typename X>\...
C++
Apache License 2.0
apache/mesos
Replaced `std::shared_ptr` with `std::unique_ptr` in `Future`. Review: https://reviews.apache.org/r/63913/
46,143
05.12.2017 16:39:48
28,800
75ebbbe9fbe51fd9dcbb66ea8fa6758cc5cd6d59
Added a script to publish JARs to maven snapshot repository. This could be used to publish JARs from nightly builds. Most of the code is copied from support/tag.sh. Review:
[ { "change_type": "ADD", "old_path": null, "new_path": "support/snapshot.sh", "diff": "+#!/usr/bin/env bash\n+\n+# This script should be used to publish a snapshot JAR to Apache Maven\n+# repo from the current HEAD.\n+\n+set -e\n+\n+# Use 'atexit' for cleanup.\n+. $(dirname ${0})/atexit.sh\n+\n+# Use...
C++
Apache License 2.0
apache/mesos
Added a script to publish JARs to maven snapshot repository. This could be used to publish JARs from nightly builds. Most of the code is copied from support/tag.sh. Review: https://reviews.apache.org/r/59029/
46,114
26.10.2017 12:26:11
25,200
57d5862164ebc2c69aa9deba9283d723d49656bf
Set `BUILD_FLAGS` flag in CMake. This resolves and consolidates the `BUILD` variables into one location. Review:
[ { "change_type": "MODIFY", "old_path": "cmake/CompilationConfigure.cmake", "new_path": "cmake/CompilationConfigure.cmake", "diff": "@@ -363,11 +363,25 @@ endif ()\nstring(TIMESTAMP BUILD_DATE \"%Y-%m-%d %H:%M:%S UTC\" UTC)\nstring(TIMESTAMP BUILD_TIME \"%s\" UTC)\nif (WIN32)\n- set(BUILD_USER \"$ENV...
C++
Apache License 2.0
apache/mesos
Set `BUILD_FLAGS` flag in CMake. This resolves MESOS-5455, and consolidates the `BUILD` variables into one location. Review: https://reviews.apache.org/r/63341
46,114
26.10.2017 12:51:06
25,200
1f6c5d165f5656ac2a40fc30bd86e40f647e914c
Fixed CMake binary dependencies. This resolves so that building just the `mesos-agent`, etc. target should correctly build its runtime dependencies (such as the containerizer, executor, etc.). Review:
[ { "change_type": "MODIFY", "old_path": "src/local/CMakeLists.txt", "new_path": "src/local/CMakeLists.txt", "diff": "@@ -21,4 +21,5 @@ if (NOT WIN32)\n###########################################################\nadd_executable(mesos-local main.cpp)\ntarget_link_libraries(mesos-local PRIVATE mesos)\n+...
C++
Apache License 2.0
apache/mesos
Fixed CMake binary dependencies. This resolves MESOS-8035 so that building just the `mesos-agent`, etc. target should correctly build its runtime dependencies (such as the containerizer, executor, etc.). Review: https://reviews.apache.org/r/63342
46,056
06.12.2017 13:16:15
-3,600
ecccb33ac4627929be21460386b0bf56092944a4
Fixed ROOT_INTERNET_CURL_SimpleCommand/3 test. Remove unreliable image from the test's parameter list ("registry.cn-hangzhou.aliyuncs.com/acs-sample/alpine").
[ { "change_type": "MODIFY", "old_path": "src/tests/containerizer/provisioner_docker_tests.cpp", "new_path": "src/tests/containerizer/provisioner_docker_tests.cpp", "diff": "@@ -468,8 +468,7 @@ INSTANTIATE_TEST_CASE_P(\n::testing::ValuesIn(vector<string>({\n\"alpine\", // Verifies the normalization of...
C++
Apache License 2.0
apache/mesos
Fixed ROOT_INTERNET_CURL_SimpleCommand/3 test. Remove unreliable image from the test's parameter list ("registry.cn-hangzhou.aliyuncs.com/acs-sample/alpine").
46,057
06.12.2017 11:04:24
28,800
dbaf857731735e40f5039538cc232cb236e25a0b
Removed redundant `get()` call on a smart pointer. Registrar had the type `Owned<MockRegistry>` so this call was indeed redundant. Review:
[ { "change_type": "MODIFY", "old_path": "src/tests/master_tests.cpp", "new_path": "src/tests/master_tests.cpp", "diff": "@@ -2733,7 +2733,7 @@ TEST_F(MasterTest, RegistryUpdateAfterReconfiguration)\n// Verify master has correctly updated the registry.\n{\nFuture<Response> response = process::http::ge...
C++
Apache License 2.0
apache/mesos
Removed redundant `get()` call on a smart pointer. Registrar had the type `Owned<MockRegistry>` so this call was indeed redundant. Review: https://reviews.apache.org/r/64383/
46,188
06.12.2017 11:38:34
28,800
c399377f020d446053764f6e26fcbda939966a7a
Used a wrapper message for storage resource provider info. This is more future proof in case we want to add more storage resource provider specific information. Review:
[ { "change_type": "MODIFY", "old_path": "include/mesos/mesos.proto", "new_path": "include/mesos/mesos.proto", "diff": "@@ -1082,7 +1082,12 @@ message ResourceProviderInfo {\n// new reservation's role must be a child of the current one.\nrepeated Resource.ReservationInfo default_reservations = 5; // E...
C++
Apache License 2.0
apache/mesos
Used a wrapper message for storage resource provider info. This is more future proof in case we want to add more storage resource provider specific information. Review: https://reviews.apache.org/r/64389
46,129
26.11.2017 15:46:01
18,000
1f164fb6b3da49ffc5e1b97e026969f3d5703470
Added excluded image parameter to containerizer pruneImages(). Review:
[ { "change_type": "MODIFY", "old_path": "src/slave/containerizer/composing.cpp", "new_path": "src/slave/containerizer/composing.cpp", "diff": "@@ -95,7 +95,7 @@ public:\nFuture<Nothing> remove(const ContainerID& containerId);\n- Future<Nothing> pruneImages();\n+ Future<Nothing> pruneImages(const vect...
C++
Apache License 2.0
apache/mesos
Added excluded image parameter to containerizer pruneImages(). Review: https://reviews.apache.org/r/64264
46,129
21.11.2017 16:28:57
28,800
5c5577004de4ff5cea16e0719de0ff08798384ea
Added a flag conversion protobuf message 'ImageGcConfig'. Review:
[ { "change_type": "MODIFY", "old_path": "src/messages/flags.proto", "new_path": "src/messages/flags.proto", "diff": "@@ -105,3 +105,20 @@ message ContainerDNSInfo {\nmessage SlaveCapabilities {\nrepeated SlaveInfo.Capability capabilities = 1;\n}\n+\n+\n+// Describe the configuration for container ima...
C++
Apache License 2.0
apache/mesos
Added a flag conversion protobuf message 'ImageGcConfig'. Review: https://reviews.apache.org/r/64265
46,129
22.11.2017 12:13:05
28,800
e9125dd3922d7a8b185d86a404105f29c449050c
Added an optional agent flag '--image_gc_config'. This is an optional agent flag. If it is not set, it means the automatic container image gc is not enabled. Users have to trigger image gc manually via the operator API. If it is set, the image auto gc is enabled. Review:
[ { "change_type": "MODIFY", "old_path": "docs/configuration/agent.md", "new_path": "docs/configuration/agent.md", "diff": "@@ -873,6 +873,33 @@ Strategy for provisioning container rootfs from images, e.g., <code>aufs</code>,\n<code>bind</code>, <code>copy</code>, <code>overlay</code>.\n</td>\n</tr>\n...
C++
Apache License 2.0
apache/mesos
Added an optional agent flag '--image_gc_config'. This is an optional agent flag. If it is not set, it means the automatic container image gc is not enabled. Users have to trigger image gc manually via the operator API. If it is set, the image auto gc is enabled. Review: https://reviews.apache.org/r/64266
46,129
26.11.2017 15:12:34
18,000
c4741b9bd4c86e63ffd98f28975fb7aa54f25861
Supported basic auto image gc in the agent. Review:
[ { "change_type": "MODIFY", "old_path": "src/slave/slave.cpp", "new_path": "src/slave/slave.cpp", "diff": "@@ -620,6 +620,21 @@ void Slave::initialize()\n// a very large disk_watch_interval).\ndelay(flags.disk_watch_interval, self(), &Slave::checkDiskUsage);\n+ // Start image store disk monitoring. P...
C++
Apache License 2.0
apache/mesos
Supported basic auto image gc in the agent. Review: https://reviews.apache.org/r/64267
46,129
28.11.2017 18:44:59
28,800
6bf05406d1e7f42b0a61b2309f9829298e54bd9a
Fixed a typo in gc_test.cpp. Review:
[ { "change_type": "MODIFY", "old_path": "src/tests/gc_tests.cpp", "new_path": "src/tests/gc_tests.cpp", "diff": "@@ -596,7 +596,7 @@ TEST_F(GarbageCollectorIntegrationTest, ExitedExecutor)\nClock::pause();\n- // Kiling the executor will cause the slave to schedule its\n+ // Killing the executor will ...
C++
Apache License 2.0
apache/mesos
Fixed a typo in gc_test.cpp. Review: https://reviews.apache.org/r/64269
46,129
06.12.2017 11:45:21
28,800
a04e99e7d1de2dba9bbb00328359f99ee0ed244d
Fixed comments for linux MACRO. Review:
[ { "change_type": "MODIFY", "old_path": "src/tests/containerizer/provisioner_docker_tests.cpp", "new_path": "src/tests/containerizer/provisioner_docker_tests.cpp", "diff": "#ifdef __linux__\n#include \"linux/fs.hpp\"\n-#endif\n+#endif // __linux__\n#include \"slave/containerizer/mesos/provisioner/con...
C++
Apache License 2.0
apache/mesos
Fixed comments for linux MACRO. Review: https://reviews.apache.org/r/64270/
46,082
06.12.2017 09:03:49
28,800
8b4228049292cab6a8c4a3680de3c1aa5e72a9ff
Changed agent reregistration to work with messages directly. `reregisterSlave` now accepts `ReregisterSlaveMessage&&`, which opts-out of using protobuf arena, and allows passing message through dispatch chain without making any copies. Conversion of repeated message fields to `std::vector`s is performed only when neede...
[ { "change_type": "MODIFY", "old_path": "src/master/master.cpp", "new_path": "src/master/master.cpp", "diff": "@@ -853,16 +853,7 @@ void Master::initialize()\n&RegisterSlaveMessage::resource_version_uuids);\ninstall<ReregisterSlaveMessage>(\n- &Master::reregisterSlave,\n- &ReregisterSlaveMessage::sla...
C++
Apache License 2.0
apache/mesos
Changed agent reregistration to work with messages directly. `reregisterSlave` now accepts `ReregisterSlaveMessage&&`, which opts-out of using protobuf arena, and allows passing message through dispatch chain without making any copies. Conversion of repeated message fields to `std::vector`s is performed only when need...
46,082
06.12.2017 10:45:14
28,800
2e83009ef4d10e1cbfb3a55c8adefe37b916f06a
Reduced copying of agent data during reregistration.
[ { "change_type": "MODIFY", "old_path": "src/master/master.cpp", "new_path": "src/master/master.cpp", "diff": "@@ -6753,7 +6753,7 @@ void Master::__reregisterSlave(\n// master (those tasks were previously marked \"unreachable\", so they\n// should be removed from that collection).\nvector<Task> recov...
C++
Apache License 2.0
apache/mesos
Reduced copying of agent data during reregistration.
46,147
06.12.2017 12:14:47
28,800
20a8777471f7719e76a69a0d525acd81322e17fb
Windows: Enabled HTTP health checks. This required an additional dependency on `curl` for Windows, which is an imported target that is deployed next to the other executables by CMake. With it in place, the HTTP health check unit tests were enabled for Windows. Review:
[ { "change_type": "MODIFY", "old_path": "src/slave/CMakeLists.txt", "new_path": "src/slave/CMakeLists.txt", "diff": "@@ -34,7 +34,12 @@ add_dependencies(\nmesos-tcp-connect\nmesos-usage)\n-if (NOT WIN32)\n+if (WIN32)\n+ # NOTE: The agent depends on `curl` on non-Windows platforms too, but not as\n+ #...
C++
Apache License 2.0
apache/mesos
Windows: Enabled HTTP health checks. This required an additional dependency on `curl` for Windows, which is an imported target that is deployed next to the other executables by CMake. With it in place, the HTTP health check unit tests were enabled for Windows. Review: https://reviews.apache.org/r/64104/
46,066
06.12.2017 17:02:03
28,800
c0ddcd4c471f45db8b83ded64127cc770b871a69
Made "agent_features" flag available on non-Linux systems. The "agent_features" was implemented in a block that was only compiled on Linux. As it should be available on every target system, the implementation has been move out of the block. Review:
[ { "change_type": "MODIFY", "old_path": "src/slave/flags.cpp", "new_path": "src/slave/flags.cpp", "diff": "@@ -685,6 +685,17 @@ mesos::internal::slave::Flags::Flags()\n\"This flag has the same syntax as `--effective_capabilities`.\"\n);\n+ add(&Flags::disallow_sharing_agent_pid_namespace,\n+ \"disall...
C++
Apache License 2.0
apache/mesos
Made "agent_features" flag available on non-Linux systems. The "agent_features" was implemented in a block that was only compiled on Linux. As it should be available on every target system, the implementation has been move out of the block. Review: https://reviews.apache.org/r/64335/
46,056
07.12.2017 14:38:30
-3,600
de06435a6d354d27ee6f4f5a3756751103ac0e7c
Added a comment around ProvisionerDockerTest parameters.
[ { "change_type": "MODIFY", "old_path": "src/tests/containerizer/provisioner_docker_tests.cpp", "new_path": "src/tests/containerizer/provisioner_docker_tests.cpp", "diff": "@@ -468,6 +468,9 @@ INSTANTIATE_TEST_CASE_P(\n::testing::ValuesIn(vector<string>({\n\"alpine\", // Verifies the normalization of...
C++
Apache License 2.0
apache/mesos
Added a comment around ProvisionerDockerTest parameters.
46,128
07.12.2017 11:36:10
28,800
641b716dca7fdb1da7402c4e5728ff33f85d5d74
Made master acknowledge offer operation updates when 'id' isn't set. When a framework does not request feedback about an operation, the master should acknowledge offer operation status updates to the agent so that the updates are not retried. Review:
[ { "change_type": "MODIFY", "old_path": "src/master/master.cpp", "new_path": "src/master/master.cpp", "diff": "@@ -7874,6 +7874,10 @@ void Master::offerOperationStatusUpdate(\nreturn;\n}\n+ // TODO(greggomann): Remove this CHECK once offer operation feedback is\n+ // implemented. See MESOS-8054.\n+ C...
C++
Apache License 2.0
apache/mesos
Made master acknowledge offer operation updates when 'id' isn't set. When a framework does not request feedback about an operation, the master should acknowledge offer operation status updates to the agent so that the updates are not retried. Review: https://reviews.apache.org/r/64144/
46,128
07.12.2017 11:36:14
28,800
ecef069b8349cdb9d98b6267636d4cb66948da20
Added ACKNOWLEDGE event to the resource provider API. The new event is used to send offer operation status udpate acknowledgements to resource providers. Review:
[ { "change_type": "MODIFY", "old_path": "include/mesos/resource_provider/resource_provider.proto", "new_path": "include/mesos/resource_provider/resource_provider.proto", "diff": "@@ -35,6 +35,7 @@ message Event {\nSUBSCRIBED = 1; // See 'Subscribed' below.\nOPERATION = 2; // See 'Operation' below.\nP...
C++
Apache License 2.0
apache/mesos
Added ACKNOWLEDGE event to the resource provider API. The new event is used to send offer operation status udpate acknowledgements to resource providers. Review: https://reviews.apache.org/r/64143/
46,128
07.12.2017 11:36:17
28,800
cfb634b6742d3b6d74bef079473663d915014cfc
Added offer operation update acknowledgement to the agent. The agent's 'offerOperationUpdateAcknowlegement' handler is updated to pass acknowledgements to the resource provider manager. The agent's resource provider message handler is also updated to avoid removing offer operations, since this should actually be done u...
[ { "change_type": "MODIFY", "old_path": "src/slave/slave.cpp", "new_path": "src/slave/slave.cpp", "diff": "@@ -3896,10 +3896,33 @@ void Slave::statusUpdateAcknowledgement(\n}\n-// TODO(greggomann): Implement offer operation update acknowledgement.\nvoid Slave::offerOperationUpdateAcknowledgement(\nco...
C++
Apache License 2.0
apache/mesos
Added offer operation update acknowledgement to the agent. The agent's 'offerOperationUpdateAcknowlegement' handler is updated to pass acknowledgements to the resource provider manager. The agent's resource provider message handler is also updated to avoid removing offer operations, since this should actually be done...
46,128
07.12.2017 11:36:20
28,800
761f47fe8e51ca3065a156308220e2a1ab61a628
Added status update acknowledgement to resource provider manager. When the agent receives an offer operation update acknowledgement from the master, it is forwarded to the relevant resource provider via the resource provider manager. Review:
[ { "change_type": "MODIFY", "old_path": "src/resource_provider/manager.cpp", "new_path": "src/resource_provider/manager.cpp", "diff": "@@ -158,6 +158,9 @@ public:\nvoid applyOfferOperation(const ApplyOfferOperationMessage& message);\n+ void acknowledgeOfferOperationUpdate(\n+ const OfferOperationUpda...
C++
Apache License 2.0
apache/mesos
Added status update acknowledgement to resource provider manager. When the agent receives an offer operation update acknowledgement from the master, it is forwarded to the relevant resource provider via the resource provider manager. Review: https://reviews.apache.org/r/64145/
46,148
07.12.2017 13:14:10
28,800
31d718e39697cc63ade47f23b5858ee605091bc0
Updated the allocator to untrack allocations via a single code path. Review:
[ { "change_type": "MODIFY", "old_path": "src/master/allocator/mesos/hierarchical.cpp", "new_path": "src/master/allocator/mesos/hierarchical.cpp", "diff": "@@ -315,6 +315,8 @@ void HierarchicalAllocatorProcess::removeFramework(\nforeach (const string& role, framework.roles) {\n// Might not be in 'fram...
C++
Apache License 2.0
apache/mesos
Updated the allocator to untrack allocations via a single code path. Review: https://reviews.apache.org/r/64357/
46,165
07.12.2017 11:59:46
28,800
108eb0631ec84251812981182f24979216c3a1c0
Added a RepeatedPtrField to vector conversion overload for rvalues. This enables moving the individual entries out into the output vector. Review:
[ { "change_type": "MODIFY", "old_path": "3rdparty/libprocess/include/process/protobuf.hpp", "new_path": "3rdparty/libprocess/include/process/protobuf.hpp", "diff": "#include <google/protobuf/message.h>\n#include <google/protobuf/repeated_field.h>\n+#include <iterator>\n#include <set>\n#include <vecto...
C++
Apache License 2.0
apache/mesos
Added a RepeatedPtrField to vector conversion overload for rvalues. This enables moving the individual entries out into the output vector. Review: https://reviews.apache.org/r/64427
46,165
07.12.2017 12:03:58
28,800
4fe3bdb8ed5e8d4ddc894ff7fd5cbcd3183526be
Eliminated some copying of tasks / executors in agent re-registration. Review:
[ { "change_type": "MODIFY", "old_path": "src/master/master.cpp", "new_path": "src/master/master.cpp", "diff": "#include <algorithm>\n#include <cctype>\n#include <fstream>\n+#include <functional>\n#include <iomanip>\n#include <list>\n#include <memory>\nusing google::protobuf::RepeatedPtrField;\nusing ...
C++
Apache License 2.0
apache/mesos
Eliminated some copying of tasks / executors in agent re-registration. Review: https://reviews.apache.org/r/64428
46,165
07.12.2017 14:29:03
28,800
54e03f3ceae87c69e5a01a585a23ec87f2dd8206
Fixed skipping of completed frameworks in the master failover benchmark. This benchmark was previously accidentally skipping the completed frameworks, due to an incorrect loop. Review:
[ { "change_type": "MODIFY", "old_path": "src/tests/master_benchmarks.cpp", "new_path": "src/tests/master_benchmarks.cpp", "diff": "@@ -158,7 +158,7 @@ public:\n}\n}\n- for (; id < completedFrameworksPerAgent; id++) {\n+ for (; id < frameworksPerAgent + completedFrameworksPerAgent; id++) {\nArchive::F...
C++
Apache License 2.0
apache/mesos
Fixed skipping of completed frameworks in the master failover benchmark. This benchmark was previously accidentally skipping the completed frameworks, due to an incorrect loop. Review: https://reviews.apache.org/r/64429
46,062
07.12.2017 10:20:18
28,800
02758c4e75483a0cd135fa465d1704d793bd4e48
Added reservation refinement documentation. Review:
[ { "change_type": "MODIFY", "old_path": "docs/reservation.md", "new_path": "docs/reservation.md", "diff": "@@ -80,7 +80,7 @@ running task or if a [persistent volume](persistent-volume.md) has been created\nusing the reserved resources. In the latter case, the volume should be destroyed\nbefore unrese...
C++
Apache License 2.0
apache/mesos
Added reservation refinement documentation. Review: https://reviews.apache.org/r/64312/
46,139
07.12.2017 19:59:46
28,800
06209e614c6f4a0593d017ab293bd1819acbc02b
Added operators for offer operation update protobuf classes. Review:
[ { "change_type": "MODIFY", "old_path": "include/mesos/type_utils.hpp", "new_path": "include/mesos/type_utils.hpp", "diff": "@@ -63,6 +63,10 @@ bool operator==(const Label& left, const Label& right);\nbool operator==(const Labels& left, const Labels& right);\nbool operator==(const MasterInfo& left, c...
C++
Apache License 2.0
apache/mesos
Added operators for offer operation update protobuf classes. Review: https://reviews.apache.org/r/64093/
46,139
07.12.2017 19:59:48
28,800
680ccee60c29747a1e929e4b7bb8dbed52162222
Added the `OfferOperationStatusUpdateRecord` protobuf message. This protobuf message is used to checkpoint offer operation status updates and acknowledgments. Review:
[ { "change_type": "MODIFY", "old_path": "src/messages/messages.cpp", "new_path": "src/messages/messages.cpp", "diff": "@@ -160,5 +160,15 @@ ostream& operator<<(ostream& stream, const StatusUpdateRecord::Type& type)\n<< StatusUpdateRecord::Type_descriptor()->FindValueByNumber(type)->name();\n}\n+\n+os...
C++
Apache License 2.0
apache/mesos
Added the `OfferOperationStatusUpdateRecord` protobuf message. This protobuf message is used to checkpoint offer operation status updates and acknowledgments. Review: https://reviews.apache.org/r/64094/
46,128
06.12.2017 15:28:14
28,800
2975d7e6bae6dc0b1ddb730ef3da2938b4fc5e01
Renamed the resource provider PUBLISH event to PUBLISH_RESOURCES. Review:
[ { "change_type": "MODIFY", "old_path": "include/mesos/resource_provider/resource_provider.proto", "new_path": "include/mesos/resource_provider/resource_provider.proto", "diff": "@@ -34,7 +34,7 @@ message Event {\nSUBSCRIBED = 1; // See 'Subscribed' below.\nOPERATION = 2; // See 'Operation' below.\n-...
C++
Apache License 2.0
apache/mesos
Renamed the resource provider PUBLISH event to PUBLISH_RESOURCES. Review: https://reviews.apache.org/r/64398
46,128
06.12.2017 16:42:14
28,800
fb47d1c548685b3efbee677454829c0c98d66d12
Renamed a resource provider call to UPDATE_PUBLISH_RESOURCES_STATUS. Review:
[ { "change_type": "MODIFY", "old_path": "include/mesos/resource_provider/resource_provider.hpp", "new_path": "include/mesos/resource_provider/resource_provider.hpp", "diff": "@@ -27,9 +27,9 @@ namespace resource_provider {\ninline std::ostream& operator<<(\nstd::ostream& stream,\n- const Call::Update...
C++
Apache License 2.0
apache/mesos
Renamed a resource provider call to UPDATE_PUBLISH_RESOURCES_STATUS. Review: https://reviews.apache.org/r/64399
46,128
07.12.2017 22:45:24
28,800
c78496fd5c2f48f2989449e3edc032af18524802
Changed the resource provider OPERATION event to APPLY_OFFER_OPERATION. Review:
[ { "change_type": "MODIFY", "old_path": "include/mesos/resource_provider/resource_provider.proto", "new_path": "include/mesos/resource_provider/resource_provider.proto", "diff": "@@ -33,7 +33,7 @@ message Event {\nUNKNOWN = 0;\nSUBSCRIBED = 1; // See 'Subscribed' below.\n- OPERATION = 2; // See 'Oper...
C++
Apache License 2.0
apache/mesos
Changed the resource provider OPERATION event to APPLY_OFFER_OPERATION. Review: https://reviews.apache.org/r/64400
46,103
30.11.2017 12:19:45
-3,600
ac97d764e55eb26484f3aad8ff8ac9730e6555b2
Added ResourceVersion to RunTask and RunTaskGroup messages. This commit adds the known agent resource versions to RunTaskMessage and RunTaskGroupMessage. We also update sites where the message is unpacked. In a later commit we will inject versions in the master and evaluate them in the agent. Review:
[ { "change_type": "MODIFY", "old_path": "src/messages/messages.proto", "new_path": "src/messages/messages.proto", "diff": "@@ -306,6 +306,19 @@ message RunTaskMessage {\nrequired FrameworkInfo framework = 2;\nrequired TaskInfo task = 4;\n+ // Used to establish the relationship between the operation a...
C++
Apache License 2.0
apache/mesos
Added ResourceVersion to RunTask and RunTaskGroup messages. This commit adds the known agent resource versions to RunTaskMessage and RunTaskGroupMessage. We also update sites where the message is unpacked. In a later commit we will inject versions in the master and evaluate them in the agent. Review: https://reviews...
46,066
08.12.2017 11:26:18
-3,600
12695ec010e842d54cdb15ea7add73aef6092bb0
Provided resource provider infos in 'UpdateState' message. To support sending 'ResourceProviderInfo's of all known resource providers to the master as part of 'UpdateSlaveMessage', these information has been added to the 'UpdateState' message that is sent from resource provider to agents. Also, an agent now keeps track...
[ { "change_type": "MODIFY", "old_path": "src/resource_provider/manager.cpp", "new_path": "src/resource_provider/manager.cpp", "diff": "@@ -654,7 +654,7 @@ void ResourceProviderManagerProcess::updateState(\n<< resourceProvider->info.id() << \": \" << resourceVersionUuid.error();\nResourceProviderMessa...
C++
Apache License 2.0
apache/mesos
Provided resource provider infos in 'UpdateState' message. To support sending 'ResourceProviderInfo's of all known resource providers to the master as part of 'UpdateSlaveMessage', these information has been added to the 'UpdateState' message that is sent from resource provider to agents. Also, an agent now keeps trac...
46,066
08.12.2017 11:26:23
-3,600
d142d38e3183c6b6ac56ab1c1c1629a6acde3ad5
Added a V1 API call to list resource providers. The 'GET_RESOURCE_PROVIDERS' call will list all subscribed local resource providers of an agent. Review:
[ { "change_type": "MODIFY", "old_path": "include/mesos/agent/agent.proto", "new_path": "include/mesos/agent/agent.proto", "diff": "@@ -53,10 +53,21 @@ message Call {\nGET_STATE = 9;\nGET_CONTAINERS = 10;\n- GET_FRAMEWORKS = 11; // Retrieves the information about known frameworks.\n- GET_EXECUTORS = 1...
C++
Apache License 2.0
apache/mesos
Added a V1 API call to list resource providers. The 'GET_RESOURCE_PROVIDERS' call will list all subscribed local resource providers of an agent. Review: https://reviews.apache.org/r/64151/
46,103
05.12.2017 13:39:07
-3,600
b5d64414e0def423aa1beb5552391ea7b975fcc6
Added explicit resource provider information to 'UpdateSlaveMessage'. The added fields will allow us to explicitly surface resource provider-related information in the master. Review:
[ { "change_type": "MODIFY", "old_path": "src/messages/messages.proto", "new_path": "src/messages/messages.proto", "diff": "@@ -716,6 +716,13 @@ message ResourceVersionUUID {\nmessage UpdateSlaveMessage {\nrequired SlaveID slave_id = 1;\n+ // Top-level fields in this message should only contain inform...
C++
Apache License 2.0
apache/mesos
Added explicit resource provider information to 'UpdateSlaveMessage'. The added fields will allow us to explicitly surface resource provider-related information in the master. Review: https://reviews.apache.org/r/64422
46,103
06.12.2017 14:27:34
-3,600
bd55be1066b8f2553e10e9d5bd35a3582f659b00
Removed 'total' from 'UpdateSlaveMessage'. This field was added during the development leading up to version 1.5 in order to allow updates to agent-total resources in the context of resource providers. It was never used in a released Mesos version. Review:
[ { "change_type": "MODIFY", "old_path": "src/master/master.cpp", "new_path": "src/master/master.cpp", "diff": "@@ -7211,12 +7211,6 @@ void Master::updateSlave(const UpdateSlaveMessage& message)\nmessage.resource_categories().oversubscribed()) ||\n!message.has_resource_categories();\n- const bool hasT...
C++
Apache License 2.0
apache/mesos
Removed 'total' from 'UpdateSlaveMessage'. This field was added during the development leading up to version 1.5 in order to allow updates to agent-total resources in the context of resource providers. It was never used in a released Mesos version. Review: https://reviews.apache.org/r/64424
46,128
08.12.2017 09:03:40
28,800
6ddb48e6c0e97234f545940a2d98b6b7a228bcd9
Fixed the executor API endpoint help. Authentication was recently added to the V1 executor HTTP API. This patch updates the endpoint help to reflect this. Review:
[ { "change_type": "MODIFY", "old_path": "src/slave/http.cpp", "new_path": "src/slave/http.cpp", "diff": "@@ -635,7 +635,7 @@ string Http::EXECUTOR_HELP() {\n\"\",\n\"Returns 202 Accepted for all other Call messages iff the\",\n\"request is accepted.\"),\n- AUTHENTICATION(false));\n+ AUTHENTICATION(tr...
C++
Apache License 2.0
apache/mesos
Fixed the executor API endpoint help. Authentication was recently added to the V1 executor HTTP API. This patch updates the endpoint help to reflect this. Review: https://reviews.apache.org/r/60058/
46,082
08.12.2017 08:58:35
28,800
ed3fcdfbcda0f2e32860d44b6654829c4952f7e6
Added `noexcept` specifier to `Option`. `noexcept` on move constructor and move assignment operator allows the standard library to leverage some optimizations, e.g. `std::vector` will move elements, when growing, rather than making copies. Specifically, `mesos::Resources::Resource_` compiler-generated constructor is de...
[ { "change_type": "MODIFY", "old_path": "3rdparty/stout/include/stout/option.hpp", "new_path": "3rdparty/stout/include/stout/option.hpp", "diff": "#include <algorithm>\n#include <functional>\n+#include <type_traits>\n#include <boost/functional/hash.hpp>\n@@ -64,7 +65,9 @@ public:\n}\n}\n- Option(Opti...
C++
Apache License 2.0
apache/mesos
Added `noexcept` specifier to `Option`. `noexcept` on move constructor and move assignment operator allows the standard library to leverage some optimizations, e.g. `std::vector` will move elements, when growing, rather than making copies. Specifically, `mesos::Resources::Resource_` compiler-generated constructor is d...
46,056
08.12.2017 17:12:38
-3,600
d9a6580be11b1d5b9e6cc2ad331c05e4f4c0f467
Fixed a typo in a gpu test. Review:
[ { "change_type": "MODIFY", "old_path": "src/tests/containerizer/nvidia_gpu_isolator_tests.cpp", "new_path": "src/tests/containerizer/nvidia_gpu_isolator_tests.cpp", "diff": "@@ -263,7 +263,7 @@ TEST_F(NvidiaGpuTest, ROOT_INTERNET_CURL_CGROUPS_NVIDIA_GPU_NvidiaDockerImage)\n// We wait wait up to 120 ...
C++
Apache License 2.0
apache/mesos
Fixed a typo in a gpu test. Review: https://reviews.apache.org/r/64454
46,056
08.12.2017 17:36:53
-3,600
ae8516c5a292279835e7082ff36c5c3aa982db91
Fixed a typo in a nested containerizer test. Review:
[ { "change_type": "MODIFY", "old_path": "src/tests/containerizer/nested_mesos_containerizer_tests.cpp", "new_path": "src/tests/containerizer/nested_mesos_containerizer_tests.cpp", "diff": "@@ -1041,7 +1041,7 @@ TEST_F(NestedMesosContainerizerTest,\ndriver.launchTasks(offers->at(0).id(), {task});\n- A...
C++
Apache License 2.0
apache/mesos
Fixed a typo in a nested containerizer test. Review: https://reviews.apache.org/r/64455
46,148
08.12.2017 15:48:46
28,800
2ab1a3194d631e77671e1da42f4ae176e342dd6a
Documented the sorter totals in the allocator. This also updates a comment about the second stage of allocation to reflect that the second stage is intended to allocate to roles without quota. Review:
[ { "change_type": "MODIFY", "old_path": "src/master/allocator/mesos/hierarchical.hpp", "new_path": "src/master/allocator/mesos/hierarchical.hpp", "diff": "@@ -466,9 +466,10 @@ protected:\nOption<DomainInfo> domain;\n// There are two stages of allocation. During the first stage resources\n- // are all...
C++
Apache License 2.0
apache/mesos
Documented the sorter totals in the allocator. This also updates a comment about the second stage of allocation to reflect that the second stage is intended to allocate to roles without quota. Review: https://reviews.apache.org/r/64470/
46,083
01.06.2017 16:04:32
25,200
edfe3f5eba93b0d62cab4ca638e95126b93793f1
Replaced manual URI creation with `uri::from_path()`. Especially on Windows, this ensures that the URI is well-formed (uses forward slash as a path separator, and idempotently prefixes with `file://`). On Windows, the path separator is a backslash, and so manually creating a URI by doing `"file://" + path` does not wor...
[ { "change_type": "MODIFY", "old_path": "src/tests/credentials_tests.cpp", "new_path": "src/tests/credentials_tests.cpp", "diff": "#include <gmock/gmock.h>\n+#include <stout/uri.hpp>\n+\n#include <process/gmock.hpp>\n#include <process/owned.hpp>\n#include <process/pid.hpp>\n@@ -91,7 +93,8 @@ TEST_F(C...
C++
Apache License 2.0
apache/mesos
Replaced manual URI creation with `uri::from_path()`. Especially on Windows, this ensures that the URI is well-formed (uses forward slash as a path separator, and idempotently prefixes with `file://`). On Windows, the path separator is a backslash, and so manually creating a URI by doing `"file://" + path` does not wo...
46,083
30.06.2017 17:11:30
25,200
db89e7250d3c90da2255c14a5734b0ad744125ee
Eliminated `os::shell()` calls from HDFS for Windows. On Windows, `os::shell()` is explicitly deleted, so reworked the code to use `process::subprocess()` instead. Review:
[ { "change_type": "MODIFY", "old_path": "src/hdfs/hdfs.cpp", "new_path": "src/hdfs/hdfs.cpp", "diff": "@@ -115,9 +115,22 @@ Try<Owned<HDFS>> HDFS::create(const Option<string>& _hadoop)\n}\n// Check if the hadoop client is available.\n- Try<string> out = os::shell(hadoop + \" version 2>&1\");\n- if (o...
C++
Apache License 2.0
apache/mesos
Eliminated `os::shell()` calls from HDFS for Windows. On Windows, `os::shell()` is explicitly deleted, so reworked the code to use `process::subprocess()` instead. Review: https://reviews.apache.org/r/60626
46,114
08.12.2017 16:03:56
28,800
245af401f5177d2e2f79e93bf3e8bca7f15aa5ba
Added `uri::FILE_PREFIX` constant for "file://". Instead of hard-coding the string multiple times.
[ { "change_type": "MODIFY", "old_path": "3rdparty/stout/include/stout/uri.hpp", "new_path": "3rdparty/stout/include/stout/uri.hpp", "diff": "namespace uri {\n+const std::string FILE_PREFIX = \"file://\";\n+\n+\n// Returns a valid URI containing a filename.\n//\n// On Windows, the / character is repla...
C++
Apache License 2.0
apache/mesos
Added `uri::FILE_PREFIX` constant for "file://". Instead of hard-coding the string multiple times.
46,083
20.10.2017 16:59:21
25,200
4c5b8cf81a6435fbbc233315a08b80269d555dc4
Enabled `DefaultExecutorTest.TaskWithFileURI` on Windows. This fixes the use of `file:// + path` with `uri::from_path()`, and replaces a Bash test with the PowerShell equivalent on Windows. Review:
[ { "change_type": "MODIFY", "old_path": "src/tests/default_executor_tests.cpp", "new_path": "src/tests/default_executor_tests.cpp", "diff": "#include <stout/none.hpp>\n#include <stout/nothing.hpp>\n#include <stout/path.hpp>\n+#include <stout/uri.hpp>\n#include <stout/os/exists.hpp>\n#include <stout/o...
C++
Apache License 2.0
apache/mesos
Enabled `DefaultExecutorTest.TaskWithFileURI` on Windows. This fixes the use of `file:// + path` with `uri::from_path()`, and replaces a Bash test with the PowerShell equivalent on Windows. Review: https://reviews.apache.org/r/63253
46,128
11.12.2017 08:41:15
28,800
c1138c878e9d97c156b515ac5f1fb63e222cc81e
Fixed a comment in the master. Review:
[ { "change_type": "MODIFY", "old_path": "src/master/master.cpp", "new_path": "src/master/master.cpp", "diff": "@@ -7459,7 +7459,7 @@ void Master::updateSlave(const UpdateSlaveMessage& message)\n// as many non-terminal offer operations as the agent. While an\n// operation might get lost on the way to ...
C++
Apache License 2.0
apache/mesos
Fixed a comment in the master. Review: https://reviews.apache.org/r/64458/
46,128
11.12.2017 08:41:34
28,800
d7c14eab2f07911ff5d423b91291badd9f2e16d7
Edited some comments in the master for style and grammar. Review:
[ { "change_type": "MODIFY", "old_path": "src/master/master.cpp", "new_path": "src/master/master.cpp", "diff": "@@ -7539,19 +7539,17 @@ void Master::updateSlave(const UpdateSlaveMessage& message)\nresourceProviders) {\n// Below we only add offer operations to our state from resource providers\n// whic...
C++
Apache License 2.0
apache/mesos
Edited some comments in the master for style and grammar. Review: https://reviews.apache.org/r/64462/
46,128
11.12.2017 09:43:34
28,800
83f81b7b21621af1b902ef0c643fbc35c345b51f
Instructed frameworks to avoid setting the offer operation 'id' field. The framework API side of offer operation feedback has not yet been implemented, so frameworks should currently avoid setting this field. See Review:
[ { "change_type": "MODIFY", "old_path": "include/mesos/mesos.proto", "new_path": "include/mesos/mesos.proto", "diff": "@@ -1973,7 +1973,12 @@ message Offer {\n}\noptional Type type = 1;\n- optional OfferOperationID id = 12;\n+\n+ // NOTE: The `id` field will allow frameworks to indicate that they wis...
C++
Apache License 2.0
apache/mesos
Instructed frameworks to avoid setting the offer operation 'id' field. The framework API side of offer operation feedback has not yet been implemented, so frameworks should currently avoid setting this field. See MESOS-8054. Review: https://reviews.apache.org/r/64457/
46,165
11.12.2017 11:52:43
28,800
e7244ae1eb84a8bfcbe2940107c7f97a53832cf2
Added a performance working group December 2017 blog post. This blog post discusses the master failover performance improvements that were made in the past few months.
[ { "change_type": "ADD", "old_path": "docs/images/1.3-1.5_master_failover_no_history.png", "new_path": "docs/images/1.3-1.5_master_failover_no_history.png", "diff": "Binary files /dev/null and b/docs/images/1.3-1.5_master_failover_no_history.png differ\n" }, { "change_type": "ADD", "old_p...
C++
Apache License 2.0
apache/mesos
Added a performance working group December 2017 blog post. This blog post discusses the master failover performance improvements that were made in the past few months.
46,165
11.12.2017 12:44:25
28,800
e7d1db24689e1943fdac2c85ade539175656926b
Fixed a broken image in the performance working group blog post.
[ { "change_type": "MODIFY", "old_path": "site/source/blog/2017-12-07-performance-working-group-progress-report.md", "new_path": "site/source/blog/2017-12-07-performance-working-group-progress-report.md", "diff": "@@ -75,7 +75,7 @@ There was a reduction in the time-to-completion of ~80% due to a 450-5...
C++
Apache License 2.0
apache/mesos
Fixed a broken image in the performance working group blog post.
46,114
07.12.2017 16:17:29
28,800
b780d873b4326747fac7d7aa01303642d3b1512d
Windows: Enabled remaining `FlagsTests`. This resolve trivially because and have since been resolved. This replaces review 63239 because the final iteration was not right. Review:
[ { "change_type": "MODIFY", "old_path": "3rdparty/stout/tests/flags_tests.cpp", "new_path": "3rdparty/stout/tests/flags_tests.cpp", "diff": "@@ -226,10 +226,7 @@ TEST(FlagsTest, Flags)\n}\n-// TODO(hausdorff): Enable this test on Windows. Currently setting an\n-// environment variable to the blank st...
C++
Apache License 2.0
apache/mesos
Windows: Enabled remaining `FlagsTests`. This resolve MESOS-3437 trivially because MESOS-5880 and MESOS-5937 have since been resolved. This replaces review 63239 because the final iteration was not right. Review: https://reviews.apache.org/r/64432
46,114
07.12.2017 16:57:02
28,800
3f862f332b55b9b6124e098144fac44734553438
Windows: Fixed `os::stat::size()`. Removed the use of CRT runtime API `::_stat`, and instead implemented with `get_handle_[no_]follow()` plus `GetFileSizeEx` to correctly obtain the size of a file with long-path and symlink-aware semantics. This resolves and so enables `OsTest.SYMLINK_Size`. Review:
[ { "change_type": "MODIFY", "old_path": "3rdparty/stout/include/stout/os/windows/stat.hpp", "new_path": "3rdparty/stout/include/stout/os/windows/stat.hpp", "diff": "@@ -93,41 +93,27 @@ inline bool islink(const std::string& path)\n}\n-// Returns the size in Bytes of a given file system entry. When\n-/...
C++
Apache License 2.0
apache/mesos
Windows: Fixed `os::stat::size()`. Removed the use of CRT runtime API `::_stat`, and instead implemented with `get_handle_[no_]follow()` plus `GetFileSizeEx` to correctly obtain the size of a file with long-path and symlink-aware semantics. This resolves MESOS-5939 and so enables `OsTest.SYMLINK_Size`. Review: https...
46,188
08.12.2017 17:31:24
28,800
c9861e1ae5225b4ee2cb160bbb53c3ea9fafd021
Refactored agent to keep track of local resource providers. Currently, we don't explicitly keep track of local resources providers. This causes the logic for a few methods to be quite complex because we need to reconstruct the resource provider information everytime. Review:
[ { "change_type": "MODIFY", "old_path": "src/master/validation.cpp", "new_path": "src/master/validation.cpp", "diff": "@@ -1929,6 +1929,9 @@ Option<Error> validateInverseOffers(\nnamespace operation {\n+// TODO(jieyu): Validate that resources in an operation is not empty.\n+\n+\nOption<Error> validat...
C++
Apache License 2.0
apache/mesos
Refactored agent to keep track of local resource providers. Currently, we don't explicitly keep track of local resources providers. This causes the logic for a few methods to be quite complex because we need to reconstruct the resource provider information everytime. Review: https://reviews.apache.org/r/64477
46,188
10.12.2017 08:59:35
28,800
c3157d7ea328405aa1c9c05778b8ffc01884ac38
Passed the message directly to the Master::registerSlave handler. Some fields in `RegisterSlaveMessage` will become optiona. This patch prepares for that. Also, by passing a message directly to the handler, it allows us to eliminate some copying by using rvalue references. Review:
[ { "change_type": "MODIFY", "old_path": "src/master/master.cpp", "new_path": "src/master/master.cpp", "diff": "@@ -847,12 +847,7 @@ void Master::initialize()\n&FrameworkToExecutorMessage::data);\ninstall<RegisterSlaveMessage>(\n- &Master::registerSlave,\n- &RegisterSlaveMessage::slave,\n- &RegisterSl...
C++
Apache License 2.0
apache/mesos
Passed the message directly to the Master::registerSlave handler. Some fields in `RegisterSlaveMessage` will become optiona. This patch prepares for that. Also, by passing a message directly to the handler, it allows us to eliminate some copying by using rvalue references. Review: https://reviews.apache.org/r/64487
46,188
11.12.2017 16:36:38
28,800
96fe7d9c32352db776a74dc78261f00608205939
Fixed a bug introduced by code merging. Review:
[ { "change_type": "MODIFY", "old_path": "src/slave/slave.cpp", "new_path": "src/slave/slave.cpp", "diff": "@@ -6531,9 +6531,6 @@ Future<Nothing> Slave::recover(const Try<state::State>& state)\nrequiredMasterCapabilities.agentUpdate = true;\n}\n- // Start the local resource providers daemon once we ha...
C++
Apache License 2.0
apache/mesos
Fixed a bug introduced by code merging. Review: https://reviews.apache.org/r/64518
46,148
11.12.2017 16:45:49
28,800
04ea195de3c010a95033dce20a573746a7a87d0e
Tracked resource reservations in the allocator. Resource reservations need to be tracked to make sure quota limit will not be exceeded in the presence of resource reservations. Review:
[ { "change_type": "MODIFY", "old_path": "src/master/allocator/mesos/hierarchical.cpp", "new_path": "src/master/allocator/mesos/hierarchical.cpp", "diff": "@@ -522,6 +522,8 @@ void HierarchicalAllocatorProcess::addSlave(\nslave.maintenance = Slave::Maintenance(unavailability.get());\n}\n+ trackReserva...
C++
Apache License 2.0
apache/mesos
Tracked resource reservations in the allocator. Resource reservations need to be tracked to make sure quota limit will not be exceeded in the presence of resource reservations. Review: https://reviews.apache.org/r/64303/
46,188
11.12.2017 17:30:50
28,800
256cd8156aa6e842719ae67cf40fec7f6163a0f0
Fixed the agent state endpoint to show proper agent capabilities. Currently, the agent capabilities can be controlled by an agent flag. This patch fixed the agent state endpoint by showing the agent capabilities properly. Review:
[ { "change_type": "MODIFY", "old_path": "src/slave/http.cpp", "new_path": "src/slave/http.cpp", "diff": "@@ -1348,7 +1348,7 @@ Future<Response> Http::state(\nwriter->field(\"id\", slave->info.id().value());\nwriter->field(\"pid\", string(slave->self()));\nwriter->field(\"hostname\", slave->info.hostn...
C++
Apache License 2.0
apache/mesos
Fixed the agent state endpoint to show proper agent capabilities. Currently, the agent capabilities can be controlled by an agent flag. This patch fixed the agent state endpoint by showing the agent capabilities properly. Review: https://reviews.apache.org/r/64520
46,128
12.12.2017 09:16:34
28,800
0c4a5c04e4511bd1b232be9f0b1811ba1f38ae2c
Added the OFFER_OPERATION_DROPPED state. The new state is used to indicate that an operation has been dropped due to a transient error. Review:
[ { "change_type": "MODIFY", "old_path": "include/mesos/mesos.proto", "new_path": "include/mesos/mesos.proto", "diff": "@@ -2290,6 +2290,9 @@ enum OfferOperationState {\n// The operation description contains an error.\nOFFER_OPERATION_ERROR = 4;\n+\n+ // The operation was dropped due to a transient er...
C++
Apache License 2.0
apache/mesos
Added the OFFER_OPERATION_DROPPED state. The new state is used to indicate that an operation has been dropped due to a transient error. Review: https://reviews.apache.org/r/64463/
46,123
12.12.2017 08:21:14
28,800
34503f8b429e3459a7a132ca8cf02acdec3c7881
Added a new reason to task status. Added new reason `REASON_AGENT_REREGISTERED` (`REASON_SLAVE_REREGISTERED` in v0) to task status. The new reason will be used when master starts to send status update during the re-registration of an unreachable or unknown agent. Review:
[ { "change_type": "MODIFY", "old_path": "docs/task-state-reasons.md", "new_path": "docs/task-state-reasons.md", "diff": "@@ -468,4 +468,17 @@ update was sent.\nstate <code> TASK_RUNNING </code>.\n</td></tr>\n-</table>\n+\n+<tr><td><code> REASON_SLAVE_REREGISTERED\n+</code></td><td> The agent on which...
C++
Apache License 2.0
apache/mesos
Added a new reason to task status. Added new reason `REASON_AGENT_REREGISTERED` (`REASON_SLAVE_REREGISTERED` in v0) to task status. The new reason will be used when master starts to send status update during the re-registration of an unreachable or unknown agent. Review: https://reviews.apache.org/r/64250/
46,139
12.12.2017 16:18:12
28,800
07630ccfaefccb500d13f8940d9d3f397bdef32b
Added pause/resume methods to `OfferOperationStatusUpdateManager`. Review:
[ { "change_type": "MODIFY", "old_path": "src/status_update_manager/offer_operation.cpp", "new_path": "src/status_update_manager/offer_operation.cpp", "diff": "@@ -126,5 +126,27 @@ void OfferOperationStatusUpdateManager::cleanup(const FrameworkID& frameworkId)\nframeworkId);\n}\n+\n+void OfferOperatio...
C++
Apache License 2.0
apache/mesos
Added pause/resume methods to `OfferOperationStatusUpdateManager`. Review: https://reviews.apache.org/r/64517/
46,139
12.12.2017 16:18:13
28,800
3fa8d64e84861bd6023cdab9296b47ab24f581b8
Improved the logging in `StatusUpdateManagerProcess`. This patch adds to the log and error messages the type of status update handled by the instance of `StatusUpdateManagerProcess`. Review:
[ { "change_type": "MODIFY", "old_path": "src/status_update_manager/offer_operation.cpp", "new_path": "src/status_update_manager/offer_operation.cpp", "diff": "@@ -34,10 +34,11 @@ namespace mesos {\nnamespace internal {\nOfferOperationStatusUpdateManager::OfferOperationStatusUpdateManager()\n- : proce...
C++
Apache License 2.0
apache/mesos
Improved the logging in `StatusUpdateManagerProcess`. This patch adds to the log and error messages the type of status update handled by the instance of `StatusUpdateManagerProcess`. Review: https://reviews.apache.org/r/64472/
46,139
12.12.2017 16:18:15
28,800
e70097c55bf63c23eedf3151047c40a1b698240e
Fixed naming of a variable in `status_update_manager_process.hpp`. Rename the variable `_update` to `update_` to make the name consistent with the style guide. Review:
[ { "change_type": "MODIFY", "old_path": "src/status_update_manager/status_update_manager_process.hpp", "new_path": "src/status_update_manager/status_update_manager_process.hpp", "diff": "@@ -810,20 +810,20 @@ private:\n}\n// Get the corresponding update for this ACK.\n- const Result<UpdateType>& _upd...
C++
Apache License 2.0
apache/mesos
Fixed naming of a variable in `status_update_manager_process.hpp`. Rename the variable `_update` to `update_` to make the name consistent with the style guide. Review: https://reviews.apache.org/r/64473/
46,139
12.12.2017 16:18:19
28,800
9d7da9b77ad33530e0a436614479cafd08c13ec3
Made the `StatusUpdateManagerProcess` process ID configurable. Review:
[ { "change_type": "MODIFY", "old_path": "src/status_update_manager/offer_operation.cpp", "new_path": "src/status_update_manager/offer_operation.cpp", "diff": "@@ -38,7 +38,9 @@ OfferOperationStatusUpdateManager::OfferOperationStatusUpdateManager()\nnew StatusUpdateManagerProcess<\nUUID,\nOfferOperati...
C++
Apache License 2.0
apache/mesos
Made the `StatusUpdateManagerProcess` process ID configurable. Review: https://reviews.apache.org/r/64509/
46,128
12.12.2017 16:19:00
28,800
01832c0212c46d769d2023c61f2afd22fd21daa2
Avoided returning prematurely in an agent handler. Review:
[ { "change_type": "MODIFY", "old_path": "src/slave/slave.cpp", "new_path": "src/slave/slave.cpp", "diff": "@@ -7225,7 +7225,7 @@ void Slave::handleResourceProviderMessage(\n<< update.status().operation_id() << \"' (uuid: \"\n<< operationUUID->toString() << \") for framework \"\n<< update.framework_id...
C++
Apache License 2.0
apache/mesos
Avoided returning prematurely in an agent handler. Review: https://reviews.apache.org/r/64504/
46,128
12.12.2017 16:19:19
28,800
d0d5f5c46de7dabb08d54b7c7f8c7f31e184de52
Made the agent respond to reconciliation requests for default resources. Review:
[ { "change_type": "MODIFY", "old_path": "src/slave/slave.cpp", "new_path": "src/slave/slave.cpp", "diff": "@@ -3898,14 +3898,37 @@ void Slave::reconcileOfferOperations(\n{\nbool containsResourceProviderOperations = false;\n- // TODO(greggomann): Implement reconciliation for offer\n- // operations on ...
C++
Apache License 2.0
apache/mesos
Made the agent respond to reconciliation requests for default resources. Review: https://reviews.apache.org/r/64548/
46,103
12.12.2017 17:02:04
28,800
2df68b4b22c8dcea90ec2ce60ba9c763d1b3b20a
Exposed resource provider information in master 'GET_AGENTS' response. This patch extends the master's 'GET_AGENTS' response to include local resource provider information. For now only the 'ResourceProviderInfo' are shown. Review:
[ { "change_type": "MODIFY", "old_path": "include/mesos/master/master.proto", "new_path": "include/mesos/master/master.proto", "diff": "@@ -339,6 +339,12 @@ message Response {\nrepeated Resource offered_resources = 9;\nrepeated SlaveInfo.Capability capabilities = 10;\n+\n+ message ResourceProvider {\n...
C++
Apache License 2.0
apache/mesos
Exposed resource provider information in master 'GET_AGENTS' response. This patch extends the master's 'GET_AGENTS' response to include local resource provider information. For now only the 'ResourceProviderInfo' are shown. Review: https://reviews.apache.org/r/64543/
46,057
13.12.2017 18:53:28
-3,600
a6b0f59b5c2993052e1bcf27f8e1ed1fc59f7192
Removed race from SlaveRecoveryTest.ReconnectExecutor. Since the executor now sends two status updates in potentially rapid progression, there was a race where the slave successfully received a TASK_RUNNING update before shutting down, throwing off the later checks. Review:
[ { "change_type": "MODIFY", "old_path": "src/tests/slave_recovery_tests.cpp", "new_path": "src/tests/slave_recovery_tests.cpp", "diff": "@@ -763,7 +763,13 @@ TYPED_TEST(SlaveRecoveryTest, ReconnectExecutor)\nTaskInfo task = createTask(offers.get()[0], \"sleep 1000\");\n- // Drop the first update from...
C++
Apache License 2.0
apache/mesos
Removed race from SlaveRecoveryTest.ReconnectExecutor. Since the executor now sends two status updates in potentially rapid progression, there was a race where the slave successfully received a TASK_RUNNING update before shutting down, throwing off the later checks. Review: https://reviews.apache.org/r/64536/
46,148
13.12.2017 12:11:43
28,800
da9ca553f989a7e704c91bed7582d58655605631
Added tests for quota enforcement with unallocated reservations. Previously, it was possible for roles to exceed their quota limit via reservations (see This introduces tests to ensure that roles cannot exceed their limit due to reservations. Review:
[ { "change_type": "MODIFY", "old_path": "src/tests/hierarchical_allocator_tests.cpp", "new_path": "src/tests/hierarchical_allocator_tests.cpp", "diff": "@@ -1266,6 +1266,188 @@ TEST_F(HierarchicalAllocatorTest, SameShareFairness)\n}\n+class HierarchicalAllocatorTestWithReservations\n+ : public Hierar...
C++
Apache License 2.0
apache/mesos
Added tests for quota enforcement with unallocated reservations. Previously, it was possible for roles to exceed their quota limit via reservations (see MESOS-4527). This introduces tests to ensure that roles cannot exceed their limit due to reservations. Review: https://reviews.apache.org/r/64493/
46,188
12.12.2017 14:52:33
28,800
00a96a3c874c2ace0424295c11c8ece3124b6bfc
Handled the RP disconnection case in the agent. If an RP is disconnected, we'll shrink its total resources to zero so that no offer will be made on this RP until it reconnects. This prevents frameworks from sending operations to the disconnected RP. Review:
[ { "change_type": "MODIFY", "old_path": "src/resource_provider/manager.cpp", "new_path": "src/resource_provider/manager.cpp", "diff": "@@ -609,6 +609,14 @@ void ResourceProviderManagerProcess::subscribe(\n// NOTE: All pending futures of publish requests for the resource\n// provider will become faile...
C++
Apache License 2.0
apache/mesos
Handled the RP disconnection case in the agent. If an RP is disconnected, we'll shrink its total resources to zero so that no offer will be made on this RP until it reconnects. This prevents frameworks from sending operations to the disconnected RP. Review: https://reviews.apache.org/r/64557
46,188
12.12.2017 16:53:52
28,800
da71f5881a6b7e06dbc4a64837583f559fb78754
Removed resource categories in UpdateSlaveMessage. Given that now we use `UpdateSlaveMessage` to send resource provider information directly, having resource categories in the message is unnecessary and misleading. Instead, this patch introduced a single optional boolean to indicate if oversubscribed resources need to ...
[ { "change_type": "MODIFY", "old_path": "src/master/master.cpp", "new_path": "src/master/master.cpp", "diff": "@@ -7246,13 +7246,12 @@ void Master::updateSlave(const UpdateSlaveMessage& message)\n// updating the agent in the allocator. This would lead us to\n// re-send out the stale oversubscribed re...
C++
Apache License 2.0
apache/mesos
Removed resource categories in UpdateSlaveMessage. Given that now we use `UpdateSlaveMessage` to send resource provider information directly, having resource categories in the message is unnecessary and misleading. Instead, this patch introduced a single optional boolean to indicate if oversubscribed resources need t...
46,188
13.12.2017 09:34:51
28,800
aaf043382ce06a952bb6c9f499e0c11ec429c5d1
Passed rvalue reference for UpdateSlaveMessage handler. This patch also fixed a bug where we don't consistently use the mutated message (POST_RESERVATION_REFINEMENT) consistently in the handler. This patch is split from
[ { "change_type": "MODIFY", "old_path": "src/master/master.cpp", "new_path": "src/master/master.cpp", "diff": "@@ -7218,7 +7218,7 @@ void Master::updateFramework(\n}\n-void Master::updateSlave(const UpdateSlaveMessage& message)\n+void Master::updateSlave(UpdateSlaveMessage&& message)\n{\n++metrics->m...
C++
Apache License 2.0
apache/mesos
Passed rvalue reference for UpdateSlaveMessage handler. This patch also fixed a bug where we don't consistently use the mutated message (POST_RESERVATION_REFINEMENT) consistently in the handler. This patch is split from https://reviews.apache.org/r/64561.
46,139
13.12.2017 16:02:32
28,800
c728f8e73537bf6f269b9a1cddd06d92dc890dd0
Made `StatusUpdateManagerProcess` fill in the latest status. Review:
[ { "change_type": "MODIFY", "old_path": "src/status_update_manager/status_update_manager_process.hpp", "new_path": "src/status_update_manager/status_update_manager_process.hpp", "diff": "@@ -165,6 +165,11 @@ public:\nCHECK(streams.contains(streamId));\nStatusUpdateStream* stream = streams[streamId].g...
C++
Apache License 2.0
apache/mesos
Made `StatusUpdateManagerProcess` fill in the latest status. Review: https://reviews.apache.org/r/64521/
46,139
13.12.2017 16:03:06
28,800
c3c07009451197a0348df02cdebcb9a1a293b131
Fixed a typo in 'agent.proto'. Review:
[ { "change_type": "MODIFY", "old_path": "include/mesos/agent/agent.proto", "new_path": "include/mesos/agent/agent.proto", "diff": "@@ -310,7 +310,7 @@ message Call {\n// config file that describes a resource provider of the specified\n// type and name in the resource provider config directory. The\n/...
C++
Apache License 2.0
apache/mesos
Fixed a typo in 'agent.proto'. Review: https://reviews.apache.org/r/64560/
46,139
13.12.2017 21:04:21
28,800
3f44f0e2ff13a54fd5c5822b5c5a30a9b6fec6de
Made the agent forward status updates for unknown offer operations. There are some cases in which an agent can get offer operation status updates for operations that it doesn't know about. If this happens, the agent should forward the updates to the master without updating its internal state. Review:
[ { "change_type": "MODIFY", "old_path": "src/slave/slave.cpp", "new_path": "src/slave/slave.cpp", "diff": "@@ -7230,15 +7230,35 @@ void Slave::handleResourceProviderMessage(\nCHECK_SOME(operationUUID);\nOfferOperation* operation = getOfferOperation(operationUUID.get());\n- if (operation == nullptr) {...
C++
Apache License 2.0
apache/mesos
Made the agent forward status updates for unknown offer operations. There are some cases in which an agent can get offer operation status updates for operations that it doesn't know about. If this happens, the agent should forward the updates to the master without updating its internal state. Review: https://reviews...
46,128
13.12.2017 21:56:09
28,800
f6b33da25c3b4704db45a8ebd2cdbf5f439c9a4e
Made the agent check for offer operation update retries. Local resource providers send all offer operation status updates using the reosurce provider API. This patch makes the agent's resource provider message handler skip operation updates when an update is a retry. Review:
[ { "change_type": "MODIFY", "old_path": "src/slave/slave.cpp", "new_path": "src/slave/slave.cpp", "diff": "@@ -7409,7 +7409,24 @@ void Slave::updateOfferOperation(\n}\n}\n+ // Adding the update's status to the stored operation below is the one place\n+ // in this function where we mutate the operatio...
C++
Apache License 2.0
apache/mesos
Made the agent check for offer operation update retries. Local resource providers send all offer operation status updates using the reosurce provider API. This patch makes the agent's resource provider message handler skip operation updates when an update is a retry. Review: https://reviews.apache.org/r/64505/
46,066
14.12.2017 14:40:07
-3,600
7c6b7d2073454af0641274db18c7d2ac92e581ef
Fixed a flaky test. Callbacks of already invalidated instances could be called in 'ResubscribeResourceProvider' when simulating a resource provider restart. This has been resolved by not only restarting a resource provider's driver, but by also creating a new 'MockResourceProvider' instance. Review:
[ { "change_type": "MODIFY", "old_path": "src/tests/resource_provider_manager_tests.cpp", "new_path": "src/tests/resource_provider_manager_tests.cpp", "diff": "@@ -1102,8 +1102,8 @@ TEST_P(ResourceProviderManagerHttpApiTest, ResubscribeResourceProvider)\nv1::Resource disk = v1::createDiskResource(\n\"...
C++
Apache License 2.0
apache/mesos
Fixed a flaky test. Callbacks of already invalidated instances could be called in 'ResubscribeResourceProvider' when simulating a resource provider restart. This has been resolved by not only restarting a resource provider's driver, but by also creating a new 'MockResourceProvider' instance. Review: https://reviews.a...
46,066
14.12.2017 17:29:33
-3,600
23d76defdf88a2d8d954dbe69559a005b72c4795
Stout: Used a namespace for UUID. To avoid conflicts when introducing a UUID type in Mesos' namespace, Stout's UUID type is put in the 'id' namespace. Review:
[ { "change_type": "MODIFY", "old_path": "3rdparty/stout/include/stout/uuid.hpp", "new_path": "3rdparty/stout/include/stout/uuid.hpp", "diff": "#include <stout/windows.hpp>\n#endif // __WINDOWS__\n-// NOTE: This namespace is necessary because the standard Windows headers\n-// define a UUID struct in t...
C++
Apache License 2.0
apache/mesos
Stout: Used a namespace for UUID. To avoid conflicts when introducing a UUID type in Mesos' namespace, Stout's UUID type is put in the 'id' namespace. Review: https://reviews.apache.org/r/64380/
46,188
14.12.2017 10:12:55
28,800
97fec08a5f422531f997fde418853b48a440359b
Fixed the compile error in SLRP related to UUID change.
[ { "change_type": "MODIFY", "old_path": "src/resource_provider/storage/provider.cpp", "new_path": "src/resource_provider/storage/provider.cpp", "diff": "@@ -295,7 +295,7 @@ public:\nslaveId(_slaveId),\nauthToken(_authToken),\nstrict(_strict),\n- resourceVersion(UUID::random()) {}\n+ resourceVersion(i...
C++
Apache License 2.0
apache/mesos
Fixed the compile error in SLRP related to UUID change.
46,114
08.12.2017 13:11:44
28,800
4bf96153abfde2c5b18373072a5a85c377293086
Windows: Added legacy support for admin-only symlinks. Some users are regrettably stuck on versions of Windows before this feature was added. If the `ALLOW_UNPRIVILEGED` flag is unsupported, the creation of the symlink will fail with `ERROR_INVALID_PARAMETER`. Review:
[ { "change_type": "MODIFY", "old_path": "3rdparty/stout/include/stout/internal/windows/reparsepoint.hpp", "new_path": "3rdparty/stout/include/stout/internal/windows/reparsepoint.hpp", "diff": "@@ -328,30 +328,38 @@ inline Try<Nothing> create_symbolic_link(\n// Bail out if target is already a reparse ...
C++
Apache License 2.0
apache/mesos
Windows: Added legacy support for admin-only symlinks. Some users are regrettably stuck on versions of Windows before this feature was added. If the `ALLOW_UNPRIVILEGED` flag is unsupported, the creation of the symlink will fail with `ERROR_INVALID_PARAMETER`. Review: https://reviews.apache.org/r/64461
46,188
14.12.2017 14:00:31
28,800
0a7d46634b0b6250856e0b4cec7c5fd9842b6f3e
Fixed compile errors on clang 3.9.
[ { "change_type": "MODIFY", "old_path": "src/tests/storage_local_resource_provider_tests.cpp", "new_path": "src/tests/storage_local_resource_provider_tests.cpp", "diff": "@@ -601,7 +601,7 @@ TEST_F(StorageLocalResourceProviderTest, ROOT_PreExistingVolume)\n}\n}\n- ASSERT_EQ(2, sources.size());\n+ ASS...
C++
Apache License 2.0
apache/mesos
Fixed compile errors on clang 3.9.
46,103
15.12.2017 18:17:57
-3,600
699a5d2263f417df56dcad70cebe28ad284919d1
Fixed handling of resource provider updates without resources. On master failover the master might learn about a resource provider without resources. This patch relaxes an assertion in the master permitting such scenarios. Review:
[ { "change_type": "MODIFY", "old_path": "src/master/master.cpp", "new_path": "src/master/master.cpp", "diff": "@@ -7601,7 +7601,9 @@ void Master::updateSlave(UpdateSlaveMessage&& message)\n// If this is a not previously seen resource provider we had a master\n// failover. Add the resources and operat...
C++
Apache License 2.0
apache/mesos
Fixed handling of resource provider updates without resources. On master failover the master might learn about a resource provider without resources. This patch relaxes an assertion in the master permitting such scenarios. Review: https://reviews.apache.org/r/64600/
46,188
14.12.2017 15:02:46
28,800
cc6e2a1ac94a60b4a0c764b207d87a47a06ff314
Updated GET_CONTAINERS API allowing nested/standalone containers. Review:
[ { "change_type": "MODIFY", "old_path": "include/mesos/agent/agent.proto", "new_path": "include/mesos/agent/agent.proto", "diff": "@@ -133,6 +133,12 @@ message Call {\noptional uint64 length = 3;\n}\n+ // Lists active containers on the agent.\n+ message GetContainers {\n+ optional bool show_nested = ...
C++
Apache License 2.0
apache/mesos
Updated GET_CONTAINERS API allowing nested/standalone containers. Review: https://reviews.apache.org/r/64628
46,188
14.12.2017 17:39:14
28,800
a814362db5b93b6c3862abe299d80f29d23e1bbe
Added VIEW_STANDALONE_CONTAINER ACL. Review:
[ { "change_type": "MODIFY", "old_path": "include/mesos/authorizer/acls.proto", "new_path": "include/mesos/authorizer/acls.proto", "diff": "@@ -468,6 +468,20 @@ message ACL {\nrequired Entity users = 2;\n}\n+ // Which principals are authorized to see the container metadata of a\n+ // standalone contai...
C++
Apache License 2.0
apache/mesos
Added VIEW_STANDALONE_CONTAINER ACL. Review: https://reviews.apache.org/r/64638
46,188
15.12.2017 08:37:05
28,800
7de21b1ccaf0da00eba42a4a4a687ba2ef6f07b4
Supported getting all containers in the agent API. Review:
[ { "change_type": "MODIFY", "old_path": "src/internal/evolve.cpp", "new_path": "src/internal/evolve.cpp", "diff": "@@ -685,19 +685,25 @@ v1::agent::Response evolve<v1::agent::Response::GET_CONTAINERS>(\nResult<JSON::String> framework_id =\nobject.find<JSON::String>(\"framework_id\");\n- CHECK_SOME(fr...
C++
Apache License 2.0
apache/mesos
Supported getting all containers in the agent API. Review: https://reviews.apache.org/r/64639
46,188
15.12.2017 10:16:55
28,800
d9951bd5214d34f7a014a38bae5e1b733b45cb38
Added doc for new fields in GET_CONTAINERS operator API. Review:
[ { "change_type": "MODIFY", "old_path": "docs/operator-http-api.md", "new_path": "docs/operator-http-api.md", "diff": "@@ -3169,6 +3169,11 @@ Content-Type: application/json\nThis call retrieves information about containers running on this agent. It contains\nContainerStatus and ResourceStatistics alo...
C++
Apache License 2.0
apache/mesos
Added doc for new fields in GET_CONTAINERS operator API. Review: https://reviews.apache.org/r/64653