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,111 | 17.11.2017 16:36:26 | 28,800 | 1cbe680a398bfc094fb4879b495654c5654b6454 | Backfilled required fields in TaskInfo in MesosContainerizer* tests.
These tests were using a `TaskInfo` field which is missing required
protobuf fields. After the previous patch begins to checkpoint
`ContainerConfig`, the incomplete `TaskInfo` cannot be checkpointed,
thus caused these tests to fail.
This patch backfi... | [
{
"change_type": "MODIFY",
"old_path": "src/tests/containerizer/mesos_containerizer_tests.cpp",
"new_path": "src/tests/containerizer/mesos_containerizer_tests.cpp",
"diff": "@@ -757,9 +757,10 @@ TEST_F(MesosContainerizerDestroyTest, DestroyWhileFetching)\nContainerID containerId;\ncontainerId.set_va... | C++ | Apache License 2.0 | apache/mesos | Backfilled required fields in TaskInfo in MesosContainerizer* tests.
These tests were using a `TaskInfo` field which is missing required
protobuf fields. After the previous patch begins to checkpoint
`ContainerConfig`, the incomplete `TaskInfo` cannot be checkpointed,
thus caused these tests to fail.
This patch back... |
46,111 | 17.11.2017 16:36:28 | 28,800 | 3aa71475efaf2866862aa7d0fc2875185f5c62fa | Added tests for recovering ContainerConfig.
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": "@@ -51,9 +51,11 @@ using mesos::internal::slave::Containerizer;\nusing mesos::internal::slave::Fetcher;\nusing m... | C++ | Apache License 2.0 | apache/mesos | Added tests for recovering ContainerConfig.
Review: https://reviews.apache.org/r/59687/ |
46,111 | 17.11.2017 16:36:29 | 28,800 | e273efe6976434858edb85bbcf367a02e963a467 | Added checkpoint and recover capability for layers in provisioner.
Review: | [
{
"change_type": "MODIFY",
"old_path": "include/mesos/slave/containerizer.proto",
"new_path": "include/mesos/slave/containerizer.proto",
"diff": "@@ -255,3 +255,13 @@ message ContainerTermination {\n// multiple roles (e.g. `\"mem(*):1;mem(role):2\"`).\nrepeated Resource limited_resources = 6;\n}\n+\... | C++ | Apache License 2.0 | apache/mesos | Added checkpoint and recover capability for layers in provisioner.
Review: https://reviews.apache.org/r/62997/ |
46,177 | 20.11.2017 12:25:22 | 28,800 | dfa56442ec4ee876897deb3f3495e57dffade192 | Fixed typo in SecretResolver comment.
The referenced header file does not exist. The default module
referred to in the comment instead exists in the .cpp file
of very similar name. | [
{
"change_type": "MODIFY",
"old_path": "include/mesos/secret/resolver.hpp",
"new_path": "include/mesos/secret/resolver.hpp",
"diff": "@@ -37,7 +37,7 @@ public:\n// Factory method used to create a SecretResolver instance. If the\n// `name` parameter is provided, the module is instantiated\n// using t... | C++ | Apache License 2.0 | apache/mesos | Fixed typo in SecretResolver comment.
The referenced header file does not exist. The default module
referred to in the comment instead exists in the .cpp file
of very similar name. |
46,177 | 20.11.2017 13:31:52 | 28,800 | f145a4df63789c74a3b034f78be7e551d5c3e405 | Windows: Fixed HTTP server build and tests.
This fixes the code added by:
Review: | [
{
"change_type": "MODIFY",
"old_path": "3rdparty/libprocess/src/http.cpp",
"new_path": "3rdparty/libprocess/src/http.cpp",
"diff": "@@ -2145,7 +2145,7 @@ private:\nFuture<Nothing> serving;\n};\n- hashmap<int, Client> clients;\n+ hashmap<int_fd, Client> clients;\n};\n"
},
{
"change_type": "MO... | C++ | Apache License 2.0 | apache/mesos | Windows: Fixed HTTP server build and tests.
This fixes the code added by:
https://reviews.apache.org/r/61155/
Review: https://reviews.apache.org/r/63963 |
46,128 | 20.11.2017 16:42:09 | 28,800 | 056349f88f8f0933907443868845c4910edb2173 | Added a missing protobuf field to the unversioned definitions.
The new `OfferOperationUpdate` event type was added to the unversioned
scheduler API protobuf definitions, but the corresponding field was not
added to the `Event` message.
Review: | [
{
"change_type": "MODIFY",
"old_path": "include/mesos/scheduler/scheduler.proto",
"new_path": "include/mesos/scheduler/scheduler.proto",
"diff": "@@ -200,6 +200,7 @@ message Event {\noptional Rescind rescind = 4;\noptional RescindInverseOffer rescind_inverse_offer = 10;\noptional Update update = 5;\... | C++ | Apache License 2.0 | apache/mesos | Added a missing protobuf field to the unversioned definitions.
The new `OfferOperationUpdate` event type was added to the unversioned
scheduler API protobuf definitions, but the corresponding field was not
added to the `Event` message.
Review: https://reviews.apache.org/r/63767/ |
46,128 | 20.11.2017 16:42:28 | 28,800 | f6359bd3e660e6fa883bc5895ac8366715fb79f0 | Added 'ReconcileOfferOperations' response to the scheduler API.
This patch adds a first-class `Response` message to the scheduler API
along with its first member, the `ReconcileOfferOperations` response
message.
Review: | [
{
"change_type": "MODIFY",
"old_path": "include/mesos/scheduler/scheduler.proto",
"new_path": "include/mesos/scheduler/scheduler.proto",
"diff": "@@ -207,6 +207,25 @@ message Event {\n}\n+/**\n+ * Synchronous responses for calls made to the scheduler API.\n+ */\n+message Response {\n+ // Each of the... | C++ | Apache License 2.0 | apache/mesos | Added 'ReconcileOfferOperations' response to the scheduler API.
This patch adds a first-class `Response` message to the scheduler API
along with its first member, the `ReconcileOfferOperations` response
message.
Review: https://reviews.apache.org/r/63768/ |
46,128 | 20.11.2017 16:42:42 | 28,800 | d3a3896201b7e8f4e44e9db57d245b18ab903454 | Used fully qualified namespace in the scheduler library for consistency.
Review: | [
{
"change_type": "MODIFY",
"old_path": "src/scheduler/scheduler.cpp",
"new_path": "src/scheduler/scheduler.cpp",
"diff": "@@ -120,7 +120,6 @@ using process::wait; // Necessary on some OS's to disambiguate.\nusing process::http::Connection;\nusing process::http::Pipe;\nusing process::http::post;\n-us... | C++ | Apache License 2.0 | apache/mesos | Used fully qualified namespace in the scheduler library for consistency.
Review: https://reviews.apache.org/r/63850/ |
46,139 | 20.11.2017 16:43:12 | 28,800 | 62d11733446cf54beb02295e7cd94d419541f152 | Added the "task" prefix to the name of the status update manager files.
Review: | [
{
"change_type": "MODIFY",
"old_path": "src/CMakeLists.txt",
"new_path": "src/CMakeLists.txt",
"diff": "@@ -257,7 +257,7 @@ set(AGENT_SRC\nslave/resource_estimator.cpp\nslave/slave.cpp\nslave/state.cpp\n- slave/status_update_manager.cpp\n+ slave/task_status_update_manager.cpp\nslave/validation.cpp\n... | C++ | Apache License 2.0 | apache/mesos | Added the "task" prefix to the name of the status update manager files.
Review: https://reviews.apache.org/r/63853/ |
46,188 | 20.11.2017 11:39:03 | 28,800 | b3f81f7e042befae9e9d3124d1fb83d518cad4df | Bumped the CSI version to
Review: | [
{
"change_type": "MODIFY",
"old_path": "3rdparty/csi-0.1.0.tar.gz",
"new_path": "3rdparty/csi-0.1.0.tar.gz",
"diff": "Binary files a/3rdparty/csi-0.1.0.tar.gz and b/3rdparty/csi-0.1.0.tar.gz differ\n"
},
{
"change_type": "MODIFY",
"old_path": "src/csi/client.cpp",
"new_path": "src/cs... | C++ | Apache License 2.0 | apache/mesos | Bumped the CSI version to ec29890.
Review: https://reviews.apache.org/r/63966 |
46,188 | 20.11.2017 14:41:14 | 28,800 | c49dbf0e2e460d4c9145381234333207c5f46b0c | Updated the CSI client to use the new gRPC client interface.
Review: | [
{
"change_type": "MODIFY",
"old_path": "src/csi/client.cpp",
"new_path": "src/csi/client.cpp",
"diff": "#include \"csi/client.hpp\"\n+using process::Failure;\nusing process::Future;\n+using process::grpc::RpcResult;\n+\nnamespace mesos {\nnamespace csi {\nFuture<GetSupportedVersionsResponse> Client:... | C++ | Apache License 2.0 | apache/mesos | Updated the CSI client to use the new gRPC client interface.
Review: https://reviews.apache.org/r/63968 |
46,188 | 20.11.2017 17:41:40 | 28,800 | 0af8dc401f92dcd3cd6123fc5771db9247c3a048 | Fixed a compiler warning in libprocess. | [
{
"change_type": "MODIFY",
"old_path": "3rdparty/libprocess/src/http.cpp",
"new_path": "3rdparty/libprocess/src/http.cpp",
"diff": "@@ -2185,6 +2185,7 @@ Try<Server> Server::create(\ncase Scheme::HTTPS: return SocketImpl::Kind::SSL;\n#endif\n}\n+ UNREACHABLE();\n}();\nTry<network::Socket> socket = n... | C++ | Apache License 2.0 | apache/mesos | Fixed a compiler warning in libprocess. |
46,062 | 08.11.2017 02:23:07 | 28,800 | 6026b8054117c5a71064c2c4700c8bbb3361ee1c | MesosTidy [misc-use-after-move]: Fixed `HashMapTest` test.
```
3rdparty/stout/tests/hashmap_tests.cpp:68:17: warning: 'map1' used after
it was moved [misc-use-after-move]
EXPECT_EQ(2u, map1.size());
^
3rdparty/stout/tests/hashmap_tests.cpp:66:21: note: move occurred here
hashmap<int, int> map2(std::move(map1));
^
```
R... | [
{
"change_type": "MODIFY",
"old_path": "3rdparty/stout/tests/hashmap_tests.cpp",
"new_path": "3rdparty/stout/tests/hashmap_tests.cpp",
"diff": "@@ -65,11 +65,11 @@ TEST(HashMapTest, FromRValueStdMap)\nhashmap<int, int> map2(std::move(map1));\n- EXPECT_EQ(2u, map1.size());\n+ EXPECT_EQ(2u, map2.size(... | C++ | Apache License 2.0 | apache/mesos | MesosTidy [misc-use-after-move]: Fixed `HashMapTest` test.
```
3rdparty/stout/tests/hashmap_tests.cpp:68:17: warning: 'map1' used after
it was moved [misc-use-after-move]
EXPECT_EQ(2u, map1.size());
^
3rdparty/stout/tests/hashmap_tests.cpp:66:21: note: move occurred here
hashmap<int, int> map2(std:... |
46,062 | 08.11.2017 02:23:26 | 28,800 | 56c9ff460604bf7db20941e997a0f07cc7bde0a8 | MesosTidy [misc-use-after-move]: Added `NOLINT` to false-positives.
```
3rdparty/libprocess/src/../include/process/future.hpp:1187:5: warning:
'callback' used after it was moved [misc-use-after-move]
callback();
^
3rdparty/libprocess/src/../include/process/future.hpp:1181:32: note:
move occurred here
data->onDiscardCal... | [
{
"change_type": "MODIFY",
"old_path": "3rdparty/libprocess/include/process/future.hpp",
"new_path": "3rdparty/libprocess/include/process/future.hpp",
"diff": "@@ -1329,7 +1329,7 @@ const Future<T>& Future<T>::onAbandoned(AbandonedCallback&& callback) const\n// TODO(*): Invoke callback in another ex... | C++ | Apache License 2.0 | apache/mesos | MesosTidy [misc-use-after-move]: Added `NOLINT` to false-positives.
```
3rdparty/libprocess/src/../include/process/future.hpp:1187:5: warning:
'callback' used after it was moved [misc-use-after-move]
callback();
^
3rdparty/libprocess/src/../include/process/future.hpp:1181:32: note:
move occurred here
dat... |
46,062 | 20.11.2017 23:55:59 | 28,800 | b0af07039093877f7301a8291b3190ff8949a016 | MesosTidy [misc-use-after-move]: Added NOLINT. | [
{
"change_type": "MODIFY",
"old_path": "3rdparty/libprocess/include/process/future.hpp",
"new_path": "3rdparty/libprocess/include/process/future.hpp",
"diff": "@@ -1417,7 +1417,7 @@ const Future<T>& Future<T>::onDiscarded(DiscardedCallback&& callback) const\n// TODO(*): Invoke callback in another ex... | C++ | Apache License 2.0 | apache/mesos | MesosTidy [misc-use-after-move]: Added NOLINT. |
46,053 | 21.11.2017 14:31:37 | -3,600 | 84365a140c3730e2d6579ad500118d6749d2f87f | Updated composing containerizer tests.
Review: | [
{
"change_type": "MODIFY",
"old_path": "src/tests/containerizer/composing_containerizer_tests.cpp",
"new_path": "src/tests/containerizer/composing_containerizer_tests.cpp",
"diff": "@@ -88,6 +88,12 @@ TEST_F(ComposingContainerizerTest, DestroyDuringUnsupportedLaunchLoop)\nEXPECT_CALL(*mockContaineri... | C++ | Apache License 2.0 | apache/mesos | Updated composing containerizer tests.
Review: https://reviews.apache.org/r/63888/ |
46,055 | 21.11.2017 18:39:29 | -3,600 | 9ee4da2b55cb9c2c67fc5a80078675d0e3da46ab | Renamed `TaskStatusEq()` to `TaskStatusTaskIdEq()`.
Review: | [
{
"change_type": "MODIFY",
"old_path": "src/tests/master_tests.cpp",
"new_path": "src/tests/master_tests.cpp",
"diff": "@@ -5783,7 +5783,7 @@ TEST_F(MasterTest, MasterFailoverLongLivedExecutor)\n.WillOnce(SendStatusUpdateFromTask(TASK_RUNNING));\nFuture<TaskStatus> status1;\n- EXPECT_CALL(sched, sta... | C++ | Apache License 2.0 | apache/mesos | Renamed `TaskStatusEq()` to `TaskStatusTaskIdEq()`.
Review: https://reviews.apache.org/r/63943/ |
46,078 | 21.11.2017 18:43:59 | -3,600 | d7bf06e802e7b71e7d8e77990e3abdcce19e297b | Fixed flaky test UnreachableAgentReregisterAfterFailover test.
Other tests in this file could probably use the same treatment,
which I can do later.
Review: | [
{
"change_type": "MODIFY",
"old_path": "src/tests/slave_tests.cpp",
"new_path": "src/tests/slave_tests.cpp",
"diff": "@@ -3645,6 +3645,10 @@ TEST_F_TEMP_DISABLED_ON_WINDOWS(\nClock::pause();\n+ // Settle here to make sure the `SlaveObserver` has already started counting\n+ // the `slavePingTimeout` ... | C++ | Apache License 2.0 | apache/mesos | Fixed flaky test UnreachableAgentReregisterAfterFailover test.
Other tests in this file could probably use the same treatment,
which I can do later.
Review: https://reviews.apache.org/r/63895/ |
46,082 | 21.11.2017 10:11:46 | 28,800 | b7ad2c0d4e7308a70049a6a04f19e3709df0e539 | Preallocated buffer for resources conversion.
When converting collections of protobuf `Resource` to `Resources`,
`std::vector` could be resized several times. This patch ensures that
there is enough capacity to fit all resources in `vector` and avoid
resizes.
Review: | [
{
"change_type": "MODIFY",
"old_path": "src/common/resources.cpp",
"new_path": "src/common/resources.cpp",
"diff": "@@ -1360,6 +1360,7 @@ Resources::Resources(const Resource& resource)\nResources::Resources(const vector<Resource>& _resources)\n{\n+ resources.reserve(_resources.size());\nforeach (con... | C++ | Apache License 2.0 | apache/mesos | Preallocated buffer for resources conversion.
When converting collections of protobuf `Resource` to `Resources`,
`std::vector` could be resized several times. This patch ensures that
there is enough capacity to fit all resources in `vector` and avoid
resizes.
Review: https://reviews.apache.org/r/63960/ |
46,082 | 21.11.2017 22:08:36 | -3,600 | 607374b53684e5ed7a72835f7bed07d367aa680d | Fixed build dependencies in libprocess.
Sometimes `libprocess` can fail to build due to missing protobuf files.
This adds protobufs to `BUILT_SOURCES` to ensure they are generated
before other files are compiled.
Review: | [
{
"change_type": "MODIFY",
"old_path": "3rdparty/libprocess/Makefile.am",
"new_path": "3rdparty/libprocess/Makefile.am",
"diff": "@@ -396,7 +396,9 @@ libprocess_tests_LDADD += \\\nendif\nBUILT_SOURCES = \\\n- $(BUNDLED_DEPS)\n+ $(BUNDLED_DEPS) \\\n+ $(BENCHMARKS_PROTOS) \\\n+ $(GRPC_TESTS_PROTOS)\nn... | C++ | Apache License 2.0 | apache/mesos | Fixed build dependencies in libprocess.
Sometimes `libprocess` can fail to build due to missing protobuf files.
This adds protobufs to `BUILT_SOURCES` to ensure they are generated
before other files are compiled.
Review: https://reviews.apache.org/r/63984/ |
46,056 | 22.11.2017 17:05:40 | -3,600 | a006924f8b3e7901506cae2718975df52386af0f | Added a comment about PythonFramework test system requirements. | [
{
"change_type": "MODIFY",
"old_path": "src/tests/examples_tests.cpp",
"new_path": "src/tests/examples_tests.cpp",
"diff": "@@ -45,5 +45,6 @@ TEST_SCRIPT(ExamplesTest, V1JavaFramework, \"java_v1_framework_test.sh\")\n#endif\n#ifdef MESOS_HAS_PYTHON\n+// This test requires python 2.7+ due to protobuf... | C++ | Apache License 2.0 | apache/mesos | Added a comment about PythonFramework test system requirements. |
46,066 | 22.11.2017 16:05:42 | 28,800 | 94ee07f5e1aad0625f55c1f490c6271d1ef542a5 | Refactored 'MockResourceProvider' to include default functions.
By default a 'MockResourceProvider' will connect and subscribe to
an endpoint. Each operation will then be answered as if it was
successful and returning converted resources.
Review: | [
{
"change_type": "MODIFY",
"old_path": "src/tests/mesos.hpp",
"new_path": "src/tests/mesos.hpp",
"diff": "@@ -2656,10 +2656,68 @@ using MockHTTPExecutor = tests::executor::MockHTTPExecutor<\nnamespace resource_provider {\n-template <typename Event, typename Driver>\n+template <\n+ typename Event,\n+... | C++ | Apache License 2.0 | apache/mesos | Refactored 'MockResourceProvider' to include default functions.
By default a 'MockResourceProvider' will connect and subscribe to
an endpoint. Each operation will then be answered as if it was
successful and returning converted resources.
Review: https://reviews.apache.org/r/63986/ |
46,066 | 22.11.2017 16:07:17 | 28,800 | a8cbb328ed8739c98b18be1e0a11ba2c3375bde9 | Added resource provider support for all offer operations.
The RESERVE/UNRESERVE/CREATE/DESTROY operations for
reservations and persistent volumes have been enabled for resource
provider resources. Similar to agent resources, they are speculatively
applied to allow offer pipelining.
Review: | [
{
"change_type": "MODIFY",
"old_path": "src/common/resources_utils.cpp",
"new_path": "src/common/resources_utils.cpp",
"diff": "@@ -27,8 +27,9 @@ namespace mesos {\nbool needCheckpointing(const Resource& resource)\n{\n- return Resources::isDynamicallyReserved(resource) ||\n- Resources::isPersistentV... | C++ | Apache License 2.0 | apache/mesos | Added resource provider support for all offer operations.
The RESERVE/UNRESERVE/CREATE/DESTROY operations for
reservations and persistent volumes have been enabled for resource
provider resources. Similar to agent resources, they are speculatively
applied to allow offer pipelining.
Review: https://reviews.apache.org/... |
46,066 | 22.11.2017 16:27:03 | 28,800 | 7d55c9244b4b2a6f6222d65e785f99cb4c3e53aa | Improved log messages of offer operations.
Review: | [
{
"change_type": "MODIFY",
"old_path": "src/resource_provider/message.hpp",
"new_path": "src/resource_provider/message.hpp",
"diff": "#include <stout/option.hpp>\n#include <stout/protobuf.hpp>\n#include <stout/unreachable.hpp>\n+#include <stout/uuid.hpp>\n#include \"messages/messages.hpp\"\n@@ -84,9... | C++ | Apache License 2.0 | apache/mesos | Improved log messages of offer operations.
Review: https://reviews.apache.org/r/63799/ |
46,076 | 25.11.2017 12:09:53 | 28,800 | 3b318dc941bb26b20f01cdecdf05fe1bc62e3d3f | Fixed typos in libprocess documentation. | [
{
"change_type": "MODIFY",
"old_path": "3rdparty/libprocess/README.md",
"new_path": "3rdparty/libprocess/README.md",
"diff": "@@ -36,8 +36,8 @@ Looking for a specific topic?\n* [Basics](#futures-and-promises-basics)\n* [States](#futures-and-promises-states)\n-* [Disarding a Future (aka Cancellation)... | C++ | Apache License 2.0 | apache/mesos | Fixed typos in libprocess documentation. |
46,103 | 27.11.2017 12:37:37 | -3,600 | e4cf0b021644fdc8b3f244c211869068385e0a38 | Added a helper to extract consumed resources from offer operations.
This patch is based on the work done in
Review: | [
{
"change_type": "MODIFY",
"old_path": "src/common/protobuf_utils.cpp",
"new_path": "src/common/protobuf_utils.cpp",
"diff": "#endif // __WINDOWS__\n#include <ostream>\n+#include <vector>\n#include <mesos/slave/isolator.hpp>\nusing std::ostream;\nusing std::set;\nusing std::string;\n+using std::vect... | C++ | Apache License 2.0 | apache/mesos | Added a helper to extract consumed resources from offer operations.
This patch is based on the work done in
https://reviews.apache.org/r/63104/.
Review: https://reviews.apache.org/r/64056/ |
46,103 | 27.11.2017 12:38:12 | -3,600 | 863c376fddc3c86bf456bc3a70f318d037508705 | Renamed resource provider message UpdateTotalResources to UpdateState.
This message now captures much more than just resource updates, but
instead informs users about the full resource provider state. This
change mirrors the message naming used between resource provider
manager and resource providers.
Review: | [
{
"change_type": "MODIFY",
"old_path": "src/resource_provider/manager.cpp",
"new_path": "src/resource_provider/manager.cpp",
"diff": "@@ -458,14 +458,14 @@ void ResourceProviderManagerProcess::updateState(\n<< \"Could not deserialize version of resource provider \"\n<< resourceProvider->info.id() <<... | C++ | Apache License 2.0 | apache/mesos | Renamed resource provider message UpdateTotalResources to UpdateState.
This message now captures much more than just resource updates, but
instead informs users about the full resource provider state. This
change mirrors the message naming used between resource provider
manager and resource providers.
Review: https:/... |
46,103 | 27.11.2017 12:38:33 | -3,600 | 3c9aa7ab5e09d3d1c8d941faf68eb8e08113f899 | Passed operations from resource provider to agent.
See summary.
Review: | [
{
"change_type": "MODIFY",
"old_path": "src/resource_provider/manager.cpp",
"new_path": "src/resource_provider/manager.cpp",
"diff": "@@ -461,7 +461,8 @@ void ResourceProviderManagerProcess::updateState(\nResourceProviderMessage::UpdateState updateState{\nresourceProvider->info.id(),\nresourceVersio... | C++ | Apache License 2.0 | apache/mesos | Passed operations from resource provider to agent.
See summary.
Review: https://reviews.apache.org/r/63730/ |
46,103 | 27.11.2017 14:58:08 | -3,600 | d007c590e693d9937f1fd36a3db675d846324ab6 | Made explicit that a 'switch' covers all branches.
Some compilers fail to recognize that the list of cases in this
'switch' statement is exhaustive. Added an explicit 'UNREACHABLE()' to
document to the compiler that we expect to have handled all possible
cases.
Review: | [
{
"change_type": "MODIFY",
"old_path": "src/common/protobuf_utils.cpp",
"new_path": "src/common/protobuf_utils.cpp",
"diff": "@@ -947,6 +947,8 @@ Try<Resources> getConsumedResources(const Offer::Operation& operation)\ncase Offer::Operation::UNKNOWN:\nreturn Error(\"Unsupported operation\");\n}\n+\n+... | C++ | Apache License 2.0 | apache/mesos | Made explicit that a 'switch' covers all branches.
Some compilers fail to recognize that the list of cases in this
'switch' statement is exhaustive. Added an explicit 'UNREACHABLE()' to
document to the compiler that we expect to have handled all possible
cases.
Review: https://reviews.apache.org/r/64084 |
46,056 | 27.11.2017 16:31:00 | -3,600 | bf507a208da3df360294896f083dd163004324aa | Fixed a code snippet in libprocess documentation.
Review: | [
{
"change_type": "MODIFY",
"old_path": "3rdparty/libprocess/README.md",
"new_path": "3rdparty/libprocess/README.md",
"diff": "@@ -205,9 +205,10 @@ Future<Person> mother(const std::string& name)\npromise->fail(person.failure());\n} else if (person.isDiscarded()) {\npromise->discard();\n- }\n+ } else ... | C++ | Apache License 2.0 | apache/mesos | Fixed a code snippet in libprocess documentation.
Review: https://reviews.apache.org/r/64081/ |
46,114 | 27.11.2017 10:29:54 | 28,800 | c5edc9276ed397fb9e32691f2068871c97fee620 | Added Andrew Schwartzmeyer to the list of committers. | [
{
"change_type": "MODIFY",
"old_path": "docs/committers.md",
"new_path": "docs/committers.md",
"diff": "@@ -243,6 +243,13 @@ We'd like to thank the following committers to the Apache Mesos project who have\n<td>joris</td>\n<td>joris@apache.org</td>\n</tr>\n+ <tr>\n+ <td>-8</td>\n+ <td>Andrew Schwart... | C++ | Apache License 2.0 | apache/mesos | Added Andrew Schwartzmeyer to the list of committers. |
46,114 | 27.11.2017 10:35:57 | 28,800 | 6e80a393f502164a90c490fe28c4368be55f0215 | Added Windows to "don't break the build" note in `committing.md`.
Also switched to Markdown supported numbered list so that it renders
correctly. | [
{
"change_type": "MODIFY",
"old_path": "docs/committing.md",
"new_path": "docs/committing.md",
"diff": "@@ -14,21 +14,21 @@ If you are a committer, here are some guidelines for committing changes:\nneeded regarding the approach used in the patch.\n2. **Follow the format of commit messages**: we curr... | C++ | Apache License 2.0 | apache/mesos | Added Windows to "don't break the build" note in `committing.md`.
Also switched to Markdown supported numbered list so that it renders
correctly. |
46,114 | 23.08.2017 16:18:34 | 25,200 | 237b30dc951986c6197922641fedd0f19b95965c | Windows: Fixed variable casing in `windows/os.hpp`.
This changes the CamelCase to snake_case per the style guide for stout.
It also adds `::` to uses of `::GetLastError` where it was missing, and
includes `<vector>` because it was used but missing.
Review: | [
{
"change_type": "MODIFY",
"old_path": "3rdparty/stout/include/stout/windows/os.hpp",
"new_path": "3rdparty/stout/include/stout/windows/os.hpp",
"diff": "#include <memory>\n#include <set>\n#include <string>\n+#include <vector>\n#include <stout/duration.hpp>\n#include <stout/none.hpp>\n@@ -77,7 +78,7... | C++ | Apache License 2.0 | apache/mesos | Windows: Fixed variable casing in `windows/os.hpp`.
This changes the CamelCase to snake_case per the style guide for stout.
It also adds `::` to uses of `::GetLastError` where it was missing, and
includes `<vector>` because it was used but missing.
Review: https://reviews.apache.org/r/63268 |
46,055 | 13.11.2017 15:16:32 | -28,800 | cd60edf0875bff951b95fbcb5cc5dae5e58bd894 | Added a new member field `ipv6` to the `CheckerProcess` class.
Review: | [
{
"change_type": "MODIFY",
"old_path": "src/checks/checker_process.cpp",
"new_path": "src/checks/checker_process.cpp",
"diff": "@@ -195,7 +195,8 @@ CheckerProcess::CheckerProcess(\nconst Option<string>& _authorizationHeader,\nconst Option<string>& _scheme,\nconst std::string& _name,\n- bool _command... | C++ | Apache License 2.0 | apache/mesos | Added a new member field `ipv6` to the `CheckerProcess` class.
Review: https://reviews.apache.org/r/63794 |
46,055 | 14.11.2017 16:28:09 | -28,800 | f9cb1891a95466b20f9cb88b2a5887b4b99adaae | Made `mesos-tcp-connect` support IPv6.
Review: | [
{
"change_type": "MODIFY",
"old_path": "src/checks/tcp_connect.cpp",
"new_path": "src/checks/tcp_connect.cpp",
"diff": "#include <iostream>\n#include <string>\n+#include <process/address.hpp>\n+#include <process/network.hpp>\n+\n#include <stout/flags.hpp>\n#include <stout/option.hpp>\n#include <stou... | C++ | Apache License 2.0 | apache/mesos | Made `mesos-tcp-connect` support IPv6.
Review: https://reviews.apache.org/r/63795 |
46,055 | 14.11.2017 16:32:01 | -28,800 | 83805df12adc19b6d71fec0c41a779cadcfab0e0 | Made `CheckerProcess` support IPv6 for HTTP/TCP check.
Review: | [
{
"change_type": "MODIFY",
"old_path": "src/checks/checker_process.cpp",
"new_path": "src/checks/checker_process.cpp",
"diff": "@@ -94,9 +94,10 @@ constexpr char TCP_CHECK_COMMAND[] = \"mesos-tcp-connect.exe\";\nstatic const string DEFAULT_HTTP_SCHEME = \"http\";\n-// Use '127.0.0.1' instead of 'loc... | C++ | Apache License 2.0 | apache/mesos | Made `CheckerProcess` support IPv6 for HTTP/TCP check.
Review: https://reviews.apache.org/r/63796 |
46,066 | 28.11.2017 09:03:23 | 28,800 | abd300be7e6e984818e772cc774a831f38dba48b | Refactored offer operation handling for speculative operations.
Applying operations has been refactored out of 'addOfferOperation' and
simplified by using 'protobuf::isSpeculativeOperation'.
Review: | [
{
"change_type": "MODIFY",
"old_path": "src/master/master.cpp",
"new_path": "src/master/master.cpp",
"diff": "@@ -9925,6 +9925,18 @@ void Master::_apply(\naddOfferOperation(framework, slave, offerOperation);\n+ if (protobuf::isSpeculativeOperation(offerOperation->info())) {\n+ Offer::Operation strip... | C++ | Apache License 2.0 | apache/mesos | Refactored offer operation handling for speculative operations.
Applying operations has been refactored out of 'addOfferOperation' and
simplified by using 'protobuf::isSpeculativeOperation'.
Review: https://reviews.apache.org/r/64054/ |
46,062 | 28.11.2017 15:43:28 | 28,800 | 60d581b6e37795eabab2d00e1cbcb31bfecd0154 | ClangFormat: don't help with the namespace comments. | [
{
"change_type": "MODIFY",
"old_path": "support/clang-format",
"new_path": "support/clang-format",
"diff": "@@ -34,6 +34,7 @@ Cpp11BracedListStyle: true\nDerivePointerAlignment: false\nDisableFormat: false\nExperimentalAutoDetectBinPacking: false\n+FixNamespaceComments: false\nForEachMacros: [ forea... | C++ | Apache License 2.0 | apache/mesos | ClangFormat: don't help with the namespace comments. |
46,188 | 27.11.2017 18:22:43 | 28,800 | 86302f5da599fd77fdfe60bd1852c8a296e764d1 | Renamed agent flag '--executor_secret_key' to '--jwt_secret_key'.
Now that this is also re-used for authenticating resource provider
initiated requests for managing standalone containers.
Review: | [
{
"change_type": "MODIFY",
"old_path": "CHANGELOG",
"new_path": "CHANGELOG",
"diff": "@@ -3,6 +3,8 @@ Release Notes - Mesos - Version 1.5.0 (WIP)\nThis release contains the following new features:\nDeprecations/Removals:\n+ * Agent flag `--executor_secret_key` has been deprecated. Operators\n+ shoul... | C++ | Apache License 2.0 | apache/mesos | Renamed agent flag '--executor_secret_key' to '--jwt_secret_key'.
Now that this is also re-used for authenticating resource provider
initiated requests for managing standalone containers.
Review: https://reviews.apache.org/r/64107 |
46,188 | 27.11.2017 18:45:27 | 28,800 | 20634c9e8f182f0cbb3dd38f2e3489315e6f4442 | Renamed secret key to JWT secret key in the code base.
Review: | [
{
"change_type": "MODIFY",
"old_path": "src/common/http.cpp",
"new_path": "src/common/http.cpp",
"diff": "@@ -1054,9 +1054,9 @@ Result<process::http::authentication::Authenticator*> createBasicAuthenticator(\nResult<process::http::authentication::Authenticator*> createJWTAuthenticator(\nconst string... | C++ | Apache License 2.0 | apache/mesos | Renamed secret key to JWT secret key in the code base.
Review: https://reviews.apache.org/r/64109 |
46,188 | 28.11.2017 12:31:38 | 28,800 | e1207f9dc01832844b0166447f48fb256791203b | Allowed the injection of secret generator into the Slave.
Review: | [
{
"change_type": "MODIFY",
"old_path": "src/local/local.cpp",
"new_path": "src/local/local.cpp",
"diff": "#include <string>\n#include <vector>\n+#include <mesos/authentication/secret_generator.hpp>\n+\n#include <mesos/authorizer/authorizer.hpp>\n#include <mesos/allocator/allocator.hpp>\n#include <st... | C++ | Apache License 2.0 | apache/mesos | Allowed the injection of secret generator into the Slave.
Review: https://reviews.apache.org/r/64132 |
46,188 | 04.09.2017 08:30:07 | 25,200 | 93ecd69655f06ce2420a499d9f9050cc7592d1c3 | Added ContainerMountInfo to avoid pre_exec_commands for mounts.
Added ContainerMountInfo protobuf in ContainerLaunchInfo. It is used
by isolators and MesosContainerizer to describe mounts. Previously,
the additional mounts for each container is specified using
'pre_exec_commands', which is not very flexible and slow (r... | [
{
"change_type": "MODIFY",
"old_path": "include/mesos/slave/containerizer.proto",
"new_path": "include/mesos/slave/containerizer.proto",
"diff": "@@ -166,6 +166,30 @@ message ContainerConfig {\n}\n+/**\n+ * Describes a single mount for the container.\n+ */\n+message ContainerMountInfo {\n+ // The pa... | C++ | Apache License 2.0 | apache/mesos | Added ContainerMountInfo to avoid pre_exec_commands for mounts.
Added ContainerMountInfo protobuf in ContainerLaunchInfo. It is used
by isolators and MesosContainerizer to describe mounts. Previously,
the additional mounts for each container is specified using
'pre_exec_commands', which is not very flexible and slow (... |
46,188 | 20.10.2017 22:34:43 | 25,200 | a68a61e7deb993f2c318afb3f53ec56011d97972 | Moved mounts prepare to a helper in launch.cpp.
Review: | [
{
"change_type": "MODIFY",
"old_path": "src/slave/containerizer/mesos/launch.cpp",
"new_path": "src/slave/containerizer/mesos/launch.cpp",
"diff": "@@ -237,6 +237,31 @@ static void exitWithStatus(int status)\n}\n+static Try<Nothing> prepareMounts(const ContainerLaunchInfo& launchInfo)\n+{\n+#ifdef _... | C++ | Apache License 2.0 | apache/mesos | Moved mounts prepare to a helper in launch.cpp.
Review: https://reviews.apache.org/r/63210 |
46,188 | 22.10.2017 21:38:03 | 25,200 | 38ccb8c36ee15c403cf30b90992cc2a285e93e8f | Added a findByTarget method for fs::MountInfoTable.
This method allows us to get the mount table entry that contains the
specified target.
Review: | [
{
"change_type": "MODIFY",
"old_path": "src/linux/fs.cpp",
"new_path": "src/linux/fs.cpp",
"diff": "@@ -49,6 +49,7 @@ extern \"C\" {\n#include <stout/os.hpp>\n#include <stout/os/read.hpp>\n+#include <stout/os/realpath.hpp>\n#include <stout/os/shell.hpp>\n#include <stout/os/stat.hpp>\n@@ -233,6 +234,... | C++ | Apache License 2.0 | apache/mesos | Added a findByTarget method for fs::MountInfoTable.
This method allows us to get the mount table entry that contains the
specified target.
Review: https://reviews.apache.org/r/63212 |
46,188 | 22.10.2017 21:39:38 | 25,200 | d6d40ecadf13af74f6fc2bfe702fabbf6f70106b | Added mount propagation support for HOST_PATH volumes.
This allows a container to declare a host path volume such that the
mounts under that volume can be propagated in both directions.
Previously, all volume mounts are default to use host to container
propagation mode.
Review: | [
{
"change_type": "MODIFY",
"old_path": "include/mesos/mesos.proto",
"new_path": "include/mesos/mesos.proto",
"diff": "@@ -2658,6 +2658,31 @@ message Image {\n}\n+/**\n+ * Describes how the mount will be propagated for a volume. See the\n+ * following doc for more details about mount propagation:\n+ ... | C++ | Apache License 2.0 | apache/mesos | Added mount propagation support for HOST_PATH volumes.
This allows a container to declare a host path volume such that the
mounts under that volume can be propagated in both directions.
Previously, all volume mounts are default to use host to container
propagation mode.
Review: https://reviews.apache.org/r/63213 |
46,103 | 29.11.2017 09:51:06 | -3,600 | a230e144d5c4c8f18f0893a5e8492de6a73870fa | Added generic stringification of hashmap of stringifiable types.
This patch adds generic stringification for hashmaps of stringifiable
types to stout. Related, but less generic functions are currently
implemented in both 'v1/mesos.hpp' and 'v1/type_utils.hpp'; these
implementations will be removed in a subsequent commi... | [
{
"change_type": "MODIFY",
"old_path": "3rdparty/stout/include/stout/hashmap.hpp",
"new_path": "3rdparty/stout/include/stout/hashmap.hpp",
"diff": "#define __STOUT_HASHMAP_HPP__\n#include <functional>\n+#include <iosfwd>\n#include <list>\n#include <map>\n#include <unordered_map>\n@@ -139,4 +140,11 @... | C++ | Apache License 2.0 | apache/mesos | Added generic stringification of hashmap of stringifiable types.
This patch adds generic stringification for hashmaps of stringifiable
types to stout. Related, but less generic functions are currently
implemented in both 'v1/mesos.hpp' and 'v1/type_utils.hpp'; these
implementations will be removed in a subsequent comm... |
46,103 | 29.11.2017 09:51:16 | -3,600 | ae08193d7901413f3bd1b7d720140af5d51d4eab | Removed stringification for hashmaps of strings.
More generic hashmap stringification functions for hashmaps of
stringifiable types were added to stout in a previous commit. This
patch removes more specialized implementations in favor of the more
generic one provided by stout itself now.
Review: | [
{
"change_type": "MODIFY",
"old_path": "include/mesos/type_utils.hpp",
"new_path": "include/mesos/type_utils.hpp",
"diff": "#include <mesos/mesos.hpp>\n-#include <stout/hashmap.hpp>\n#include <stout/stringify.hpp>\n#include <stout/strings.hpp>\n#include <stout/uuid.hpp>\n@@ -462,11 +461,6 @@ inline ... | C++ | Apache License 2.0 | apache/mesos | Removed stringification for hashmaps of strings.
More generic hashmap stringification functions for hashmaps of
stringifiable types were added to stout in a previous commit. This
patch removes more specialized implementations in favor of the more
generic one provided by stout itself now.
Review: https://reviews.apach... |
46,057 | 29.11.2017 10:16:27 | 28,800 | dfb2c62f74f052514a7889f78863b1d651646ed0 | Moved registry operations into separate header.
The definition of the various master registry operations is only
needed when trying to access registry, so they were moved into a
separate file in order to decrease size and complexity of the
master.hpp header.
Review: | [
{
"change_type": "MODIFY",
"old_path": "src/CMakeLists.txt",
"new_path": "src/CMakeLists.txt",
"diff": "@@ -435,6 +435,7 @@ set(MASTER_SRC\nmaster/quota.cpp\nmaster/quota_handler.cpp\nmaster/registrar.cpp\n+ master/registry_operations.cpp\nmaster/weights.cpp\nmaster/weights_handler.cpp\nmaster/valid... | C++ | Apache License 2.0 | apache/mesos | Moved registry operations into separate header.
The definition of the various master registry operations is only
needed when trying to access registry, so they were moved into a
separate file in order to decrease size and complexity of the
master.hpp header.
Review: https://reviews.apache.org/r/64006/ |
46,057 | 29.11.2017 10:21:57 | 28,800 | 17d186e379d2db3edb04743a061dc05e24c32c9b | Added infrastructure to support master capabilities.
This includes the necessary constants in the protobuf
definition as well as various support methods to get
the current master capabilities.
Note that the actual feature is implemented in a later
commit, so the capability is not yet activated on the
master.
Review: | [
{
"change_type": "MODIFY",
"old_path": "include/mesos/mesos.proto",
"new_path": "include/mesos/mesos.proto",
"diff": "@@ -884,6 +884,19 @@ message MasterInfo {\n// The domain that this master belongs to. All masters in a Mesos\n// cluster should belong to the same region.\noptional DomainInfo domain... | C++ | Apache License 2.0 | apache/mesos | Added infrastructure to support master capabilities.
This includes the necessary constants in the protobuf
definition as well as various support methods to get
the current master capabilities.
Note that the actual feature is implemented in a later
commit, so the capability is not yet activated on the
master.
Review:... |
46,188 | 29.11.2017 13:35:21 | 28,800 | e861c0e497bac65a6a7be8270f020f9b3e436d2b | Added a test for ContainerDaemon.
Review: | [
{
"change_type": "MODIFY",
"old_path": "src/Makefile.am",
"new_path": "src/Makefile.am",
"diff": "@@ -2412,6 +2412,7 @@ mesos_tests_SOURCES = \\\ntests/common_validation_tests.cpp \\\ntests/container_logger_tests.cpp \\\ntests/containerizer.cpp \\\n+ tests/container_daemon_tests.cpp \\\ntests/cram_m... | C++ | Apache License 2.0 | apache/mesos | Added a test for ContainerDaemon.
Review: https://reviews.apache.org/r/64176 |
46,188 | 29.11.2017 14:02:38 | 28,800 | f9b076ce0eded4b9f0676212dc90687181abffb0 | Added a test in ContainerDaemon for testing failed authorization.
Review: | [
{
"change_type": "MODIFY",
"old_path": "src/tests/container_daemon_tests.cpp",
"new_path": "src/tests/container_daemon_tests.cpp",
"diff": "@@ -179,6 +179,90 @@ TEST_F(ContainerDaemonTest, RestartOnTermination)\nEXPECT_TRUE(wait.isPending());\n}\n+\n+#ifdef USE_SSL_SOCKET\n+// This test verifies tha... | C++ | Apache License 2.0 | apache/mesos | Added a test in ContainerDaemon for testing failed authorization.
Review: https://reviews.apache.org/r/64177 |
46,188 | 29.11.2017 16:15:40 | 28,800 | e580bb32787a58aa49a615a453b739bfdc0b19c2 | Fixed the ContainerDaemon test if SSL is not enabled. | [
{
"change_type": "MODIFY",
"old_path": "src/tests/container_daemon_tests.cpp",
"new_path": "src/tests/container_daemon_tests.cpp",
"diff": "@@ -89,6 +89,8 @@ TEST_F(ContainerDaemonTest, RestartOnTermination)\nASSERT_SOME(jwtSecretKey);\nsecretGenerator.reset(new JWTSecretGenerator(jwtSecretKey.get()... | C++ | Apache License 2.0 | apache/mesos | Fixed the ContainerDaemon test if SSL is not enabled. |
46,148 | 29.11.2017 15:13:54 | 28,800 | 212bb114f7e0bbb4c22654147d430b13ae9539b8 | Added tests for the d_type support validation.
Review: | [
{
"change_type": "MODIFY",
"old_path": "src/tests/containerizer/xfs_quota_tests.cpp",
"new_path": "src/tests/containerizer/xfs_quota_tests.cpp",
"diff": "@@ -84,8 +84,10 @@ static QuotaInfo makeQuotaInfo(\nclass ROOT_XFS_TestBase : public MesosTest\n{\npublic:\n- explicit ROOT_XFS_TestBase(const str... | C++ | Apache License 2.0 | apache/mesos | Added tests for the d_type support validation.
Review: https://reviews.apache.org/r/64018/ |
46,129 | 29.11.2017 17:39:37 | 28,800 | 6c1ee3177543c1954e0893353d5b55500bab3c37 | Fixed the multi taskgroup shared pid ns test due to slowness.
Review: | [
{
"change_type": "MODIFY",
"old_path": "src/tests/default_executor_tests.cpp",
"new_path": "src/tests/default_executor_tests.cpp",
"diff": "@@ -1851,7 +1851,7 @@ TEST_P(DefaultExecutorTest, ROOT_MultiTaskgroupSharePidNamespace)\ntaskInfo2.task_id().value(),\n\"ns\");\n- // Wait up to 5 seconds for e... | C++ | Apache License 2.0 | apache/mesos | Fixed the multi taskgroup shared pid ns test due to slowness.
Review: https://reviews.apache.org/r/64171/ |
46,129 | 29.11.2017 17:40:18 | 28,800 | c4cec59f04643a3038633a944bb0896d7f5a4155 | Supported docker/volume isolator to be nested aware.
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": "@@ -63,6 +63,12 @@ DockerVolumeIsolatorProcess::DockerVolumeIsolatorProcess(\nDockerVolumeIsolatorPr... | C++ | Apache License 2.0 | apache/mesos | Supported docker/volume isolator to be nested aware.
Review: https://reviews.apache.org/r/52006/ |
46,114 | 26.10.2017 11:22:17 | 25,200 | e1d7c6dddd1701579a10e0f408b06adfb75e4a93 | Windows: Fixed `fs::symlink` to not need admin privileges.
This new feature of Windows 10 allows us to make symlinks without being
an administrator. In the future, we may want to do a version check, as
this is likely to fail on versions of Windows which don't support this
flag. Resolves
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": "#ifndef __STOUT_INTERNAL_WINDOWS_REPARSEPOINT_HPP__\n#define __STOUT_INTERNAL_WINDOWS_REPARSEPOINT_HPP__\n-#... | C++ | Apache License 2.0 | apache/mesos | Windows: Fixed `fs::symlink` to not need admin privileges.
This new feature of Windows 10 allows us to make symlinks without being
an administrator. In the future, we may want to do a version check, as
this is likely to fail on versions of Windows which don't support this
flag. Resolves MESOS-7370.
Review: https://re... |
46,114 | 01.11.2017 12:28:54 | 25,200 | b64ff8888bbcafe40e07fafa80e8bcfa2b8fd267 | Windows: Added internal `fullpath` API to normalize paths.
This explicitly does not check for existence, nor does it follow
symlinks. It simply normalizes a given path to an absolute path. This
removes the `reparsepoint.hpp` and `symlink.hpp` dependency os
`os::realpath`.
Review: | [
{
"change_type": "MODIFY",
"old_path": "3rdparty/stout/include/stout/internal/windows/symlink.hpp",
"new_path": "3rdparty/stout/include/stout/internal/windows/symlink.hpp",
"diff": "#include <stout/internal/windows/longpath.hpp>\n#include <stout/internal/windows/reparsepoint.hpp>\n-#include <stout/o... | C++ | Apache License 2.0 | apache/mesos | Windows: Added internal `fullpath` API to normalize paths.
This explicitly does not check for existence, nor does it follow
symlinks. It simply normalizes a given path to an absolute path. This
removes the `reparsepoint.hpp` and `symlink.hpp` dependency os
`os::realpath`.
Review: https://reviews.apache.org/r/63810 |
46,114 | 01.11.2017 12:46:03 | 25,200 | 4f01558778e27ec1687fa8d336c0d8bef2372109 | Windows: Fixed `os::realpath` to behave like POSIX version.
The existing implementation (1) did not resolve symlinks and (2) did not
check for existence of the path. This resulted in unexpected behaviors
by users of the function.
Review: | [
{
"change_type": "MODIFY",
"old_path": "3rdparty/stout/include/stout/os/windows/realpath.hpp",
"new_path": "3rdparty/stout/include/stout/os/windows/realpath.hpp",
"diff": "#include <stout/result.hpp>\n#include <stout/stringify.hpp>\n#include <stout/strings.hpp>\n+#include <stout/windows.hpp>\n#inclu... | C++ | Apache License 2.0 | apache/mesos | Windows: Fixed `os::realpath` to behave like POSIX version.
The existing implementation (1) did not resolve symlinks and (2) did not
check for existence of the path. This resulted in unexpected behaviors
by users of the function.
Review: https://reviews.apache.org/r/63812 |
46,114 | 01.11.2017 16:36:19 | 25,200 | 3b130a4d7ab7ebcf6029fd04d58723f716225392 | Windows: Fixed name of default executor.
This path is checked with `os::realpath`, which now correctly errors if
the path does not exist. Therefore the name must be correct.
Review: | [
{
"change_type": "MODIFY",
"old_path": "src/slave/constants.hpp",
"new_path": "src/slave/constants.hpp",
"diff": "@@ -162,7 +162,11 @@ constexpr Bytes DEFAULT_FETCHER_CACHE_SIZE = Gigabytes(2);\nDuration DEFAULT_MASTER_PING_TIMEOUT();\n// Name of the executable for default executor.\n+#ifdef __WINDO... | C++ | Apache License 2.0 | apache/mesos | Windows: Fixed name of default executor.
This path is checked with `os::realpath`, which now correctly errors if
the path does not exist. Therefore the name must be correct.
Review: https://reviews.apache.org/r/63813 |
46,114 | 03.11.2017 12:27:02 | 25,200 | 583222650a078a9233919e2645080aeaa6507c74 | Windows: Fixed `os::host_default_path()`.
This adds the necessary and expected default paths to the default `PATH`
value represented by this function. Especially needed was the
`WindowsPowerShell` folder so that tasks using PowerShell can run.
Review: | [
{
"change_type": "MODIFY",
"old_path": "3rdparty/stout/include/stout/windows/os.hpp",
"new_path": "3rdparty/stout/include/stout/windows/os.hpp",
"diff": "@@ -801,13 +801,17 @@ inline std::string host_default_path()\n{\n// NOTE: On Windows, this code must run on the host where we are\n// expecting to... | C++ | Apache License 2.0 | apache/mesos | Windows: Fixed `os::host_default_path()`.
This adds the necessary and expected default paths to the default `PATH`
value represented by this function. Especially needed was the
`WindowsPowerShell` folder so that tasks using PowerShell can run.
Review: https://reviews.apache.org/r/63814 |
46,114 | 03.11.2017 12:31:47 | 25,200 | 76ce648b56e18f8c28dc163b7e0d10f5b16ee6f0 | Windows: Fixed environment priorities in `shell.hpp`.
Legacy code had caused the system environment to explicitly override the
supplied environment, but this is incorrect. The system environment
should be the default, with any supplied environment variables
overriding those.
Review: | [
{
"change_type": "MODIFY",
"old_path": "3rdparty/stout/include/stout/os/windows/shell.hpp",
"new_path": "3rdparty/stout/include/stout/os/windows/shell.hpp",
"diff": "@@ -116,21 +116,20 @@ inline Option<std::wstring> create_process_env(\nstd::map<std::wstring, std::wstring> combined_env;\n- // Popula... | C++ | Apache License 2.0 | apache/mesos | Windows: Fixed environment priorities in `shell.hpp`.
Legacy code had caused the system environment to explicitly override the
supplied environment, but this is incorrect. The system environment
should be the default, with any supplied environment variables
overriding those.
Review: https://reviews.apache.org/r/63815 |
46,114 | 03.11.2017 12:42:35 | 25,200 | 453d631cf116275f567e222c54481b614d1bb965 | Windows: Enabled more agent tests.
These tests "just worked" once the isolators and command was fixed to be
Windows-compatible. Particularly, `/bin/echo --author` was replaced with
an equivalent PowerShell command, and `posix/cpu,posix/mem` was replaced
with `windows/cpu`.
Review: | [
{
"change_type": "MODIFY",
"old_path": "src/tests/slave_tests.cpp",
"new_path": "src/tests/slave_tests.cpp",
"diff": "@@ -151,7 +151,35 @@ namespace tests {\n// that seem vaguely more slave than master-related are in this file.\n// The others are in \"master_tests.cpp\".\n-class SlaveTest : public M... | C++ | Apache License 2.0 | apache/mesos | Windows: Enabled more agent tests.
These tests "just worked" once the isolators and command was fixed to be
Windows-compatible. Particularly, `/bin/echo --author` was replaced with
an equivalent PowerShell command, and `posix/cpu,posix/mem` was replaced
with `windows/cpu`.
Review: https://reviews.apache.org/r/63817 |
46,114 | 29.11.2017 14:18:25 | 28,800 | adad99482cb565fd7cd10e710ed7355b7569ef23 | Windows: Cleaned up `os::exists`.
More const, RAII, and comments.
Review: | [
{
"change_type": "MODIFY",
"old_path": "3rdparty/stout/include/stout/os/windows/exists.hpp",
"new_path": "3rdparty/stout/include/stout/os/windows/exists.hpp",
"diff": "@@ -37,12 +37,15 @@ inline bool exists(const std::string& path)\n::internal::windows::longpath(path).data());\nif (attributes == INV... | C++ | Apache License 2.0 | apache/mesos | Windows: Cleaned up `os::exists`.
More const, RAII, and comments.
Review: https://reviews.apache.org/r/64182 |
46,090 | 29.11.2017 19:45:02 | 28,800 | 5574681ddc7e053fd33c074023ff317394f6449c | Fixed Windows `HealthCheckTest.HealthyTaskViaTCP` test failure.
`int socket = socket()` was used instead of `int_fd socket = ...`,
causing Windows to use the wrong `WindowsFD` constructor, throwing
an assertion failure.
Review: | [
{
"change_type": "MODIFY",
"old_path": "src/checks/tcp_connect.cpp",
"new_path": "src/checks/tcp_connect.cpp",
"diff": "@@ -87,7 +87,7 @@ int testTCPConnect(const string& ip, int port)\n}\n// Create a TCP socket.\n- int socket = ::socket(parse->family(), SOCK_STREAM, 0);\n+ int_fd socket = ::socket(... | C++ | Apache License 2.0 | apache/mesos | Fixed Windows `HealthCheckTest.HealthyTaskViaTCP` test failure.
`int socket = socket()` was used instead of `int_fd socket = ...`,
causing Windows to use the wrong `WindowsFD` constructor, throwing
an assertion failure.
Review: https://reviews.apache.org/r/64188/ |
46,103 | 30.11.2017 17:03:27 | -3,600 | 0deabd3fda4485135e334ea045215dea69ebbb09 | Allowed removing non-terminal offer operations.
During reconcilation we might be required to remove non-terminal offer
operations from bookkeeping.
Review: | [
{
"change_type": "MODIFY",
"old_path": "src/master/master.cpp",
"new_path": "src/master/master.cpp",
"diff": "@@ -9817,9 +9817,6 @@ void Master::removeOfferOperation(OfferOperation* operation)\n{\nCHECK_NOTNULL(operation);\n- CHECK(protobuf::isTerminalState(operation->latest_status().state()))\n- <<... | C++ | Apache License 2.0 | apache/mesos | Allowed removing non-terminal offer operations.
During reconcilation we might be required to remove non-terminal offer
operations from bookkeeping.
Review: https://reviews.apache.org/r/63842/ |
46,103 | 30.11.2017 17:03:45 | -3,600 | 8c0f8a40b13fba93b881da02c4b33a7d1c9f01ee | Introduced an allocator helper function to track used resources.
This patch introduces a helper to track allocated resources. It
encapsulates all needed updates to the various sorters for
reusability.
Review: | [
{
"change_type": "MODIFY",
"old_path": "src/master/allocator/mesos/hierarchical.cpp",
"new_path": "src/master/allocator/mesos/hierarchical.cpp",
"diff": "@@ -287,20 +287,7 @@ void HierarchicalAllocatorProcess::addFramework(\ncontinue;\n}\n- hashmap<string, Resources> allocations = resources.allocati... | C++ | Apache License 2.0 | apache/mesos | Introduced an allocator helper function to track used resources.
This patch introduces a helper to track allocated resources. It
encapsulates all needed updates to the various sorters for
reusability.
Review: https://reviews.apache.org/r/64136/ |
46,103 | 30.11.2017 17:03:50 | -3,600 | b220abcc0118204a6fa63a3c287ea7272af42b50 | Added a new allocator method to add resources to agents.
The added method complements 'Allocator::addSlave'. While in
'addSlave' the total agent resources and used resources are passed,
the method 'addResourceProvider' added here allows to add additional,
potentially used resources to an existing agent.
Review: | [
{
"change_type": "MODIFY",
"old_path": "include/mesos/allocator/allocator.hpp",
"new_path": "include/mesos/allocator/allocator.hpp",
"diff": "@@ -214,6 +214,19 @@ public:\nconst Option<std::vector<SlaveInfo::Capability>>&\ncapabilities = None()) = 0;\n+ /**\n+ * Add resources from a local resource p... | C++ | Apache License 2.0 | apache/mesos | Added a new allocator method to add resources to agents.
The added method complements 'Allocator::addSlave'. While in
'addSlave' the total agent resources and used resources are passed,
the method 'addResourceProvider' added here allows to add additional,
potentially used resources to an existing agent.
Review: https... |
46,103 | 30.11.2017 17:03:57 | -3,600 | 8ccbdb9babe960f86bba5ae573e5939ee22981da | Reconciled offer operations between agent and master.
This patch adds master reconciliation logic to interpret agent offer
operation state from 'UpdateSlaveMessage'. The approach we take is to
unpack the agent update into resource providers updates and update
the master's view of each resource provider individually.
Re... | [
{
"change_type": "MODIFY",
"old_path": "src/master/master.cpp",
"new_path": "src/master/master.cpp",
"diff": "#include <set>\n#include <sstream>\n#include <tuple>\n+#include <utility>\n#include <mesos/module.hpp>\n#include <mesos/roles.hpp>\n@@ -7027,6 +7028,8 @@ void Master::updateSlave(const Updat... | C++ | Apache License 2.0 | apache/mesos | Reconciled offer operations between agent and master.
This patch adds master reconciliation logic to interpret agent offer
operation state from 'UpdateSlaveMessage'. The approach we take is to
unpack the agent update into resource providers updates and update
the master's view of each resource provider individually.
... |
46,103 | 30.11.2017 17:04:10 | -3,600 | c035e7e87e18cdbbf2ba098520694d2c8e0d635e | Implemented a test of offer operation reconcilation.
Whenever a speculated operation fails in a resource provider, we
expect the agent to trigger a 'UpdateSlaveMessage' to the master so it
can rollback its agent state. This patch adds such a test.
Review: | [
{
"change_type": "MODIFY",
"old_path": "src/tests/slave_tests.cpp",
"new_path": "src/tests/slave_tests.cpp",
"diff": "#include <mesos/authentication/http/basic_authenticator_factory.hpp>\n+#include <mesos/v1/mesos.hpp>\n+\n#include <mesos/v1/resource_provider/resource_provider.hpp>\n#include <proces... | C++ | Apache License 2.0 | apache/mesos | Implemented a test of offer operation reconcilation.
Whenever a speculated operation fails in a resource provider, we
expect the agent to trigger a 'UpdateSlaveMessage' to the master so it
can rollback its agent state. This patch adds such a test.
Review: https://reviews.apache.org/r/63843/ |
46,188 | 30.11.2017 10:12:14 | 28,800 | bf4bc6380cb99132736fbbefc85f3a7ca60b032c | Terminated the Slave first before cleaning up its dependencies.
This is to ensure that Slave's dependencies do not see any incoming
requests to avoid potential race conditions. Typically, an object's
dependencies should be cleaned up after the object is cleaned up
(reverse of the creation order).
Review: | [
{
"change_type": "MODIFY",
"old_path": "src/tests/cluster.cpp",
"new_path": "src/tests/cluster.cpp",
"diff": "@@ -611,6 +611,8 @@ Slave::~Slave()\nreturn;\n}\n+ terminate();\n+\n// This extra closure is necessary in order to use `AWAIT` and `ASSERT_*`,\n// as these macros require a void return type.... | C++ | Apache License 2.0 | apache/mesos | Terminated the Slave first before cleaning up its dependencies.
This is to ensure that Slave's dependencies do not see any incoming
requests to avoid potential race conditions. Typically, an object's
dependencies should be cleaned up after the object is cleaned up
(reverse of the creation order).
Review: https://revi... |
46,188 | 30.11.2017 15:01:41 | 28,800 | c76ddee30ba90a4af4dd31c4dbdd40754fecea6a | Removed some dead code in the master.
Master generated status update will go through the `forward` interface
now. This code path is no longer used.
Review: | [
{
"change_type": "MODIFY",
"old_path": "src/master/master.cpp",
"new_path": "src/master/master.cpp",
"diff": "@@ -7519,6 +7519,8 @@ void Master::updateUnavailability(\n// TODO(vinod): Add a benchmark test for status update handling.\nvoid Master::statusUpdate(StatusUpdate update, const UPID& pid)\n{... | C++ | Apache License 2.0 | apache/mesos | Removed some dead code in the master.
Master generated status update will go through the `forward` interface
now. This code path is no longer used.
Review: https://reviews.apache.org/r/64233 |
46,114 | 20.10.2017 12:01:44 | 25,200 | 8ac83688aa47ad584ba1866c8876aefccdc88156 | Windows: Added `os::set_job_cpu_limit` to stout.
This is used to set a hard cap on the CPU usage for a job object.
Review: | [
{
"change_type": "MODIFY",
"old_path": "3rdparty/stout/include/stout/windows/os.hpp",
"new_path": "3rdparty/stout/include/stout/windows/os.hpp",
"diff": "@@ -723,6 +723,60 @@ inline Try<SharedHandle> create_job(const std::wstring& name)\n}\n+// `set_job_cpu_limit` sets a CPU limit for the process re... | C++ | Apache License 2.0 | apache/mesos | Windows: Added `os::set_job_cpu_limit` to stout.
This is used to set a hard cap on the CPU usage for a job object.
Review: https://reviews.apache.org/r/63269 |
46,114 | 20.10.2017 12:43:13 | 25,200 | 2aad4d828b163426f2996972fe290ad080e8d43b | Windows: Added `os::set_job_mem_limit` to stout.
This is used to set a hard cap on the memory usage for a job object.
Review: | [
{
"change_type": "MODIFY",
"old_path": "3rdparty/stout/include/stout/windows/os.hpp",
"new_path": "3rdparty/stout/include/stout/windows/os.hpp",
"diff": "@@ -777,6 +777,44 @@ inline Try<Nothing> set_job_cpu_limit(pid_t pid, double cpus)\n}\n+// `set_job_mem_limit` sets a memory limit for the process... | C++ | Apache License 2.0 | apache/mesos | Windows: Added `os::set_job_mem_limit` to stout.
This is used to set a hard cap on the memory usage for a job object.
Review: https://reviews.apache.org/r/63271 |
46,114 | 13.10.2017 11:39:20 | 25,200 | 7d1c58041d0f619306af13cb3ee4645b14355d15 | Windows: Added `os::get_job_info` to stout.
This returns a `JOBOBJECT_BASIC_ACCOUNTING_INFORMATION`, which can be
inspected for basic CPU / process accounting information for a group of
processes within a job object.
Review: | [
{
"change_type": "MODIFY",
"old_path": "3rdparty/stout/include/stout/windows/os.hpp",
"new_path": "3rdparty/stout/include/stout/windows/os.hpp",
"diff": "@@ -211,10 +211,10 @@ inline void setenv(\n{\n// Do not set the variable if already set and `overwrite` was not specified.\n//\n- // Per MSDN[1], ... | C++ | Apache License 2.0 | apache/mesos | Windows: Added `os::get_job_info` to stout.
This returns a `JOBOBJECT_BASIC_ACCOUNTING_INFORMATION`, which can be
inspected for basic CPU / process accounting information for a group of
processes within a job object.
Review: https://reviews.apache.org/r/63272 |
46,114 | 20.10.2017 10:55:14 | 25,200 | d11d6d2d08979a53183850e4665510799ed9b2d2 | Windows: Added `os::get_job_processes` to stout.
Returns a `set<Process>` for all the processes in a job object.
Review: | [
{
"change_type": "MODIFY",
"old_path": "3rdparty/stout/include/stout/windows/os.hpp",
"new_path": "3rdparty/stout/include/stout/windows/os.hpp",
"diff": "@@ -760,6 +760,92 @@ inline Try<JOBOBJECT_BASIC_ACCOUNTING_INFORMATION> get_job_info(pid_t pid)\n}\n+template <size_t max_pids>\n+Result<std::set<... | C++ | Apache License 2.0 | apache/mesos | Windows: Added `os::get_job_processes` to stout.
Returns a `set<Process>` for all the processes in a job object.
Review: https://reviews.apache.org/r/63273 |
46,114 | 18.10.2017 22:53:18 | 25,200 | 17564c7f8d05adede26f49f8842f1a9592055d8d | Windows: Abstracted out `os::name_job` in stout.
Almost all uses identify a job object by the PID, but the job object
handle must be obtained by name. So this overloads `os::open_job` to
call `os::name_job` when given a PID.
Review: | [
{
"change_type": "MODIFY",
"old_path": "3rdparty/stout/include/stout/windows/os.hpp",
"new_path": "3rdparty/stout/include/stout/windows/os.hpp",
"diff": "@@ -659,7 +659,7 @@ inline Try<std::wstring> name_job(pid_t pid) {\n// do not inherit this handle.\ninline Try<SharedHandle> open_job(\nconst DWOR... | C++ | Apache License 2.0 | apache/mesos | Windows: Abstracted out `os::name_job` in stout.
Almost all uses identify a job object by the PID, but the job object
handle must be obtained by name. So this overloads `os::open_job` to
call `os::name_job` when given a PID.
Review: https://reviews.apache.org/r/63275 |
46,114 | 20.10.2017 12:46:21 | 25,200 | b4cf87ba7cf32aee7e71ec2ca921006c914517f2 | Windows: Ported `Cpu` and `Mem` isolator tests.
These test the limitation and usage reporting of the new Windows `Cpu`
and `Mem` isolators.
Review: | [
{
"change_type": "MODIFY",
"old_path": "src/tests/CMakeLists.txt",
"new_path": "src/tests/CMakeLists.txt",
"diff": "@@ -145,6 +145,8 @@ list(APPEND MESOS_TESTS_SRC\nlist(APPEND MESOS_TESTS_SRC\ncontainerizer/containerizer_tests.cpp\n+ containerizer/cpu_isolator_tests.cpp\n+ containerizer/memory_isol... | C++ | Apache License 2.0 | apache/mesos | Windows: Ported `Cpu` and `Mem` isolator tests.
These test the limitation and usage reporting of the new Windows `Cpu`
and `Mem` isolators.
Review: https://reviews.apache.org/r/63277 |
46,114 | 20.10.2017 14:36:48 | 25,200 | 062b5b4450ef65cf76858b71aa4e0934c3cdadfb | Windows: Documented the `cpu` and `mem` isolators.
This adds documentation on the usage of the job object isolators, which
enable task limits, as well as the statistics they report.
Review: | [
{
"change_type": "ADD",
"old_path": null,
"new_path": "docs/isolators/windows.md",
"diff": "+---\n+title: Apache Mesos - Windows Job Object Support in Mesos Containerizer\n+layout: documentation\n+---\n+\n+# Windows Job Object Support in Mesos Containerizer\n+\n+The `windows/cpu` isolator allows ope... | C++ | Apache License 2.0 | apache/mesos | Windows: Documented the `cpu` and `mem` isolators.
This adds documentation on the usage of the job object isolators, which
enable task limits, as well as the statistics they report.
Review: https://reviews.apache.org/r/63278 |
46,082 | 30.11.2017 19:08:54 | 28,800 | ac068c130b7c6838324f04aaa84e6f08c0ee1885 | Implemented `std::index_sequence` and related functionality.
This adds an implementation of C++14's `std::index_squence` and
`make_index_sequence` templates in <stout/cpp14.hpp>.
Review: | [
{
"change_type": "ADD",
"old_path": null,
"new_path": "3rdparty/stout/include/stout/cpp14.hpp",
"diff": "+// Licensed under the Apache License, Version 2.0 (the \"License\");\n+// you may not use this file except in compliance with the License.\n+// You may obtain a copy of the License at\n+//\n+// ... | C++ | Apache License 2.0 | apache/mesos | Implemented `std::index_sequence` and related functionality.
This adds an implementation of C++14's `std::index_squence` and
`make_index_sequence` templates in <stout/cpp14.hpp>.
Review: https://reviews.apache.org/r/63628/ |
46,066 | 30.11.2017 18:44:17 | -3,600 | 1c9205860b2458eed2e733348a1e0d15cc18b518 | Used helper functions instead of switches for resource extraction.
Depeding on the type of an offer operation, different resource need
to be extracted from an operation. Instead of using a switch, the helper
functions 'isSpeculativeOperation' and 'getConsumedResources' are used
instead.
Review: | [
{
"change_type": "MODIFY",
"old_path": "src/master/master.cpp",
"new_path": "src/master/master.cpp",
"diff": "@@ -10031,37 +10031,13 @@ void Master::updateOfferOperation(\n// don't need to update the resource accounting for those types of\n// offer operations in the master and in the allocator state... | C++ | Apache License 2.0 | apache/mesos | Used helper functions instead of switches for resource extraction.
Depeding on the type of an offer operation, different resource need
to be extracted from an operation. Instead of using a switch, the helper
functions 'isSpeculativeOperation' and 'getConsumedResources' are used
instead.
Review: https://reviews.apache... |
46,066 | 01.12.2017 10:03:36 | -3,600 | 9ab950d38cedd40c90ffc81305cae372f1d80e87 | Allowed resubscription of resource providers.
A resource provider can resubscribe by including the resource provider
ID it got assigned as part of its 'ResourceProviderInfo' in a
'SUBSCRIBE' call. A resubscription is necessary if either the resource
provider or the resource provider manager (i.e. an agent) failed over.... | [
{
"change_type": "MODIFY",
"old_path": "src/resource_provider/manager.cpp",
"new_path": "src/resource_provider/manager.cpp",
"diff": "@@ -385,34 +385,43 @@ void ResourceProviderManagerProcess::subscribe(\nLOG(INFO) << \"Subscribing resource provider \" << resourceProviderInfo;\n+ ResourceProvider re... | C++ | Apache License 2.0 | apache/mesos | Allowed resubscription of resource providers.
A resource provider can resubscribe by including the resource provider
ID it got assigned as part of its 'ResourceProviderInfo' in a
'SUBSCRIBE' call. A resubscription is necessary if either the resource
provider or the resource provider manager (i.e. an agent) failed over... |
46,062 | 01.12.2017 07:21:14 | 28,800 | cc8610be4a40fc9c3a6010aecfc873b1831fc5be | Fixed inconsistent naming in index sequence. | [
{
"change_type": "MODIFY",
"old_path": "3rdparty/stout/include/stout/cpp14.hpp",
"new_path": "3rdparty/stout/include/stout/cpp14.hpp",
"diff": "@@ -36,8 +36,8 @@ struct integer_sequence\nnamespace internal {\n-template <typename T, std::size_t N, std::size_t... S>\n-struct IntegerSequenceGen : Integ... | C++ | Apache License 2.0 | apache/mesos | Fixed inconsistent naming in index sequence. |
46,114 | 01.12.2017 10:41:25 | 28,800 | 6cf64ed9cec4aec50a1d62d46e5ab1575f39925d | Included `stout/os/permissions.hpp` for the secret generator.
The `os::Permissions` started being used in these files in `e1207f9d`,
but not included. On Windows, no other header included it either, and so
the SSL configuration of the build broke.
Review: | [
{
"change_type": "MODIFY",
"old_path": "src/slave/main.cpp",
"new_path": "src/slave/main.cpp",
"diff": "#include <stout/nothing.hpp>\n#include <stout/os.hpp>\n+#include <stout/os/permissions.hpp>\n+\n#ifdef __linux__\n#include <stout/proc.hpp>\n#endif // __linux__\n"
},
{
"change_type": "MOD... | C++ | Apache License 2.0 | apache/mesos | Included `stout/os/permissions.hpp` for the secret generator.
The `os::Permissions` started being used in these files in `e1207f9d`,
but not included. On Windows, no other header included it either, and so
the SSL configuration of the build broke.
Review: https://reviews.apache.org/r/64258 |
46,078 | 10.11.2017 12:16:45 | 28,800 | 5d9209e69a0a9600ec8c02fbf852ab912b208a88 | Fixed a bug in devolving framework subscription with suppressed roles.
Review: | [
{
"change_type": "MODIFY",
"old_path": "src/internal/devolve.cpp",
"new_path": "src/internal/devolve.cpp",
"diff": "@@ -193,7 +193,17 @@ mesos::resource_provider::Event devolve(\nscheduler::Call devolve(const v1::scheduler::Call& call)\n{\n- return devolve<scheduler::Call>(call);\n+ scheduler::Call ... | C++ | Apache License 2.0 | apache/mesos | Fixed a bug in devolving framework subscription with suppressed roles.
Review: https://reviews.apache.org/r/63741 |
46,078 | 10.11.2017 12:15:37 | 28,800 | 3711233fcec761be8625af6a028a228fe9d8dc5a | Fixed 'NoOffersWithAllRolesSuppressed' test.
Review: | [
{
"change_type": "MODIFY",
"old_path": "src/tests/scheduler_tests.cpp",
"new_path": "src/tests/scheduler_tests.cpp",
"diff": "#include \"internal/devolve.hpp\"\n#include \"internal/evolve.hpp\"\n+#include \"master/constants.hpp\"\n+#include \"master/master.hpp\"\n+\n#include \"master/allocator/mesos... | C++ | Apache License 2.0 | apache/mesos | Fixed 'NoOffersWithAllRolesSuppressed' test.
Review: https://reviews.apache.org/r/63830 |
46,078 | 14.11.2017 00:12:17 | 28,800 | 8c2f972b5c0c42e1519d09275cc26e1765a0c5de | Fixed a bug that removed the suppressed framework from sorter.
Review: | [
{
"change_type": "MODIFY",
"old_path": "src/master/allocator/mesos/hierarchical.cpp",
"new_path": "src/master/allocator/mesos/hierarchical.cpp",
"diff": "#include <stout/check.hpp>\n#include <stout/hashset.hpp>\n+#include <stout/set.hpp>\n#include <stout/stopwatch.hpp>\n#include <stout/stringify.hpp... | C++ | Apache License 2.0 | apache/mesos | Fixed a bug that removed the suppressed framework from sorter.
Review: https://reviews.apache.org/r/63831 |
46,148 | 01.12.2017 22:35:27 | 28,800 | 11f2f7ef30946093b9d584ea17232bc6e9fa0e97 | Add a temporary filter for overlay backend related tests.
This is a temporary filter to disable tests that use
overlay as backend on filesystems where `d_type` support is
missing. In particular, many XFS nodes are known to have this
issue.
Review: | [
{
"change_type": "MODIFY",
"old_path": "src/tests/containerizer/provisioner_docker_tests.cpp",
"new_path": "src/tests/containerizer/provisioner_docker_tests.cpp",
"diff": "@@ -672,7 +672,7 @@ INSTANTIATE_TEST_CASE_P(\n// This test verifies that a docker image containing whiteout files\n// will be pr... | C++ | Apache License 2.0 | apache/mesos | Add a temporary filter for overlay backend related tests.
This is a temporary filter to disable tests that use
overlay as backend on filesystems where `d_type` support is
missing. In particular, many XFS nodes are known to have this
issue.
Review: https://reviews.apache.org/r/64232/ |
46,078 | 01.12.2017 22:47:14 | 28,800 | 63728ddf46d69735f57f88ecafd1eaa9504e8244 | Removed redundant get() call on Owned pointers. | [
{
"change_type": "MODIFY",
"old_path": "src/master/http.cpp",
"new_path": "src/master/http.cpp",
"diff": "@@ -330,7 +330,7 @@ struct FullFrameworkWriter {\nforeachvalue (const Owned<Task>& task, framework_->unreachableTasks) {\n// There could be TASK_LOST tasks in this map. See comment for\n// `unre... | C++ | Apache License 2.0 | apache/mesos | Removed redundant get() call on Owned pointers. |
46,057 | 04.12.2017 02:12:17 | 28,800 | 42952093c081e494d36721bc6c56ab73069a82e4 | Added a missing HTML tag in a doc. | [
{
"change_type": "MODIFY",
"old_path": "docs/task-state-reasons.md",
"new_path": "docs/task-state-reasons.md",
"diff": "@@ -437,7 +437,8 @@ update was sent.\nand <code> message </code> fields are erased and the\noriginal <code> reason </code> field is overwritten\nby <code> REASON_RECONCILIATION </c... | C++ | Apache License 2.0 | apache/mesos | Added a missing HTML tag in a doc. |
46,148 | 04.12.2017 13:12:23 | 28,800 | 3caca9716314bba6d87c9e5a8654f4d09fbaf9c2 | Fixed an issue with the scheduler driver subscribe backoff time.
When framework failover time is set to zero (which is the
default value), the scheduler driver subscribe backoff time
will also become zero. Ignore failover time if it is zero
when deciding the subscribe backoff time.
Also added a dedicated test.
Review: | [
{
"change_type": "MODIFY",
"old_path": "src/sched/sched.cpp",
"new_path": "src/sched/sched.cpp",
"diff": "@@ -844,7 +844,7 @@ protected:\n// by 1/10th of the failover timeout.\nif (framework.has_failover_timeout()) {\nTry<Duration> duration = Duration::create(framework.failover_timeout());\n- if (du... | C++ | Apache License 2.0 | apache/mesos | Fixed an issue with the scheduler driver subscribe backoff time.
When framework failover time is set to zero (which is the
default value), the scheduler driver subscribe backoff time
will also become zero. Ignore failover time if it is zero
when deciding the subscribe backoff time.
Also added a dedicated test.
Review... |
46,165 | 30.11.2017 16:07:55 | 28,800 | 08f825b8b8745c8a2169fd8c451f02d8670cfb05 | Documented when ReregisterSlaveMessage.frameworks was introduced.
This field was populated by agents >= 1.0.0, per:
$ git tag --contains
Review: | [
{
"change_type": "MODIFY",
"old_path": "src/messages/messages.proto",
"new_path": "src/messages/messages.proto",
"diff": "@@ -514,7 +514,10 @@ message ReregisterSlaveMessage {\nrepeated ExecutorInfo executor_infos = 4;\nrepeated Task tasks = 3;\n+\n+ // The `FrameworkInfo`s are provided by agents th... | C++ | Apache License 2.0 | apache/mesos | Documented when ReregisterSlaveMessage.frameworks was introduced.
This field was populated by agents >= 1.0.0, per:
$ git tag --contains 3c96ca497ba2b0a733756f1af5e2dd4b4695d77a
Review: https://reviews.apache.org/r/64236 |
46,165 | 30.11.2017 16:36:42 | 28,800 | 3c25233c2ef456275c56373bd24321f264dd4fe0 | Updated the allocator to track allocations via a single code path.
A helper was introduced for tracking allocated resources in the
sorters. This updates the code to allow the other two copies of
this code to use the function.
This also documents some of the addFramework/addSlave cases.
Review: | [
{
"change_type": "MODIFY",
"old_path": "src/master/allocator/mesos/hierarchical.cpp",
"new_path": "src/master/allocator/mesos/hierarchical.cpp",
"diff": "@@ -281,11 +281,16 @@ void HierarchicalAllocatorProcess::addFramework(\n// Update the allocation for this framework.\nforeachpair (const SlaveID& ... | C++ | Apache License 2.0 | apache/mesos | Updated the allocator to track allocations via a single code path.
A helper was introduced for tracking allocated resources in the
sorters. This updates the code to allow the other two copies of
this code to use the function.
This also documents some of the addFramework/addSlave cases.
Review: https://reviews.apache... |
46,062 | 04.12.2017 17:25:33 | 28,800 | 3b9db404cb0b50edef1958423b26364e63ccaa27 | Added `cpp17::invoke` in <stout/cpp17.hpp>.
Review: | [
{
"change_type": "MODIFY",
"old_path": "3rdparty/stout/Makefile.am",
"new_path": "3rdparty/stout/Makefile.am",
"diff": "@@ -132,6 +132,7 @@ stout_tests_SOURCES = \\\ntests/boundedhashmap_tests.cpp \\\ntests/bytes_tests.cpp \\\ntests/cache_tests.cpp \\\n+ tests/cpp17_tests.cpp \\\ntests/duration_test... | C++ | Apache License 2.0 | apache/mesos | Added `cpp17::invoke` in <stout/cpp17.hpp>.
Review: https://reviews.apache.org/r/64248/ |
46,062 | 04.12.2017 17:25:36 | 28,800 | 8670d2e9224485b94a40654d4a2102d8340fe4ac | Added `lambda::partial` to <stout/lambda.hpp>.
Review: | [
{
"change_type": "MODIFY",
"old_path": "3rdparty/stout/include/stout/lambda.hpp",
"new_path": "3rdparty/stout/include/stout/lambda.hpp",
"diff": "#include <algorithm>\n#include <functional>\n+#include <type_traits>\n+#include <utility>\n#include <vector>\n+#include <stout/cpp14.hpp>\n+#include <stou... | C++ | Apache License 2.0 | apache/mesos | Added `lambda::partial` to <stout/lambda.hpp>.
Review: https://reviews.apache.org/r/64274/ |
46,148 | 04.12.2017 17:47:26 | 28,800 | ed30b030ccd2b340ffd7701bfd786201b86b5747 | Clarified a comment in the allocator.
Now that the `Resources` wrapper uses `Resource.reservations` in
favor of `Resource.role`, this comment is updated to reflect that
we're trying to strip the static reservations.
Review: | [
{
"change_type": "MODIFY",
"old_path": "src/master/allocator/mesos/hierarchical.cpp",
"new_path": "src/master/allocator/mesos/hierarchical.cpp",
"diff": "@@ -1528,7 +1528,7 @@ void HierarchicalAllocatorProcess::__allocate()\n// NOTE: `allocationScalarQuantities` omits dynamic reservation,\n// persis... | C++ | Apache License 2.0 | apache/mesos | Clarified a comment in the allocator.
Now that the `Resources` wrapper uses `Resource.reservations` in
favor of `Resource.role`, this comment is updated to reflect that
we're trying to strip the static reservations.
Review: https://reviews.apache.org/r/64319/ |
46,148 | 04.12.2017 19:24:33 | 28,800 | 21c1f936618fd7d0f8a5491e7681c669b8919ff0 | Fixed an allocator test to avoid using quota on a hierarchical role.
Currently, hierarchical quota only supports setting quota for
the top-level roles. Setting quota for non-top-level role is
not supported.
Review: | [
{
"change_type": "MODIFY",
"old_path": "src/tests/hierarchical_allocator_tests.cpp",
"new_path": "src/tests/hierarchical_allocator_tests.cpp",
"diff": "@@ -4735,8 +4735,7 @@ TEST_F(HierarchicalAllocatorTest, DisproportionateQuotaVsAllocation)\n// This test ensures that resources reserved to ancestor... | C++ | Apache License 2.0 | apache/mesos | Fixed an allocator test to avoid using quota on a hierarchical role.
Currently, hierarchical quota only supports setting quota for
the top-level roles. Setting quota for non-top-level role is
not supported.
Review: https://reviews.apache.org/r/64321/ |
46,082 | 04.12.2017 08:12:01 | 28,800 | 7beea9cbe083caf738fb02b9d58dadf3da900f4b | Added `CallableOnce` class template, similar to `std::function`.
`CallableOnce` class is similar to `std::function`, but allows it to
be called only once. Together with `lambda::partial` this provides
foundation for copy-less `defer`, `dispatch` and `Future`.
Review: | [
{
"change_type": "MODIFY",
"old_path": "3rdparty/stout/include/stout/lambda.hpp",
"new_path": "3rdparty/stout/include/stout/lambda.hpp",
"diff": "#include <algorithm>\n#include <functional>\n+#include <memory>\n#include <type_traits>\n#include <utility>\n#include <vector>\n+#include <glog/logging.h>... | C++ | Apache License 2.0 | apache/mesos | Added `CallableOnce` class template, similar to `std::function`.
`CallableOnce` class is similar to `std::function`, but allows it to
be called only once. Together with `lambda::partial` this provides
foundation for copy-less `defer`, `dispatch` and `Future`.
Review: https://reviews.apache.org/r/63630/ |
46,062 | 05.12.2017 09:57:40 | 28,800 | 59329cbc605d578572e90db62070b2bb99fdbb9c | Added more `cpp17::invoke` test cases.
Review: | [
{
"change_type": "MODIFY",
"old_path": "3rdparty/stout/tests/cpp17_tests.cpp",
"new_path": "3rdparty/stout/tests/cpp17_tests.cpp",
"diff": "@@ -31,7 +31,6 @@ TEST(Invoke, Lambda)\nTEST(Invoke, Member) {\n- // Invoke a member function.\nstruct S\n{\nint f(int i) const { return n + i; }\n@@ -39,10 +38... | C++ | Apache License 2.0 | apache/mesos | Added more `cpp17::invoke` test cases.
Review: https://reviews.apache.org/r/64331/ |
46,062 | 05.12.2017 09:57:51 | 28,800 | ececa115966067551e00098f973f0104a0782730 | Removed `constexpr`-ness from `cpp17::invoke`.
`std::invoke` is not marked `constexpr`.
Review: | [
{
"change_type": "MODIFY",
"old_path": "3rdparty/stout/include/stout/cpp17.hpp",
"new_path": "3rdparty/stout/include/stout/cpp17.hpp",
"diff": "@@ -38,23 +38,23 @@ using std::invoke;\n// in compilation failure.\ntemplate <typename F, typename... As>\n-constexpr auto invoke(F&& f, As&&... as)\n+auto ... | C++ | Apache License 2.0 | apache/mesos | Removed `constexpr`-ness from `cpp17::invoke`.
`std::invoke` is not marked `constexpr`.
Review: https://reviews.apache.org/r/64332/ |
46,082 | 05.12.2017 10:11:28 | 28,800 | c9462f4927cfffb1f3a90827467ded730c0f40b9 | Migrated to use the `EventConsumer` interface.
Review: | [
{
"change_type": "MODIFY",
"old_path": "src/common/recordio.hpp",
"new_path": "src/common/recordio.hpp",
"diff": "@@ -213,6 +213,8 @@ private:\n}\n}\n+ using process::Process<ReaderProcess<T>>::consume;\n+\nvoid consume()\n{\nreader.read()\n"
},
{
"change_type": "MODIFY",
"old_path": "sr... | C++ | Apache License 2.0 | apache/mesos | Migrated to use the `EventConsumer` interface.
Review: https://reviews.apache.org/r/63632/ |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.