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,165
24.01.2017 17:20:16
28,800
c69dbbab0c6d154ba59b53f23d874d27628f28f1
Made a function static in the allocator. Review:
[ { "change_type": "MODIFY", "old_path": "src/master/allocator/mesos/hierarchical.hpp", "new_path": "src/master/allocator/mesos/hierarchical.hpp", "diff": "@@ -257,7 +257,7 @@ protected:\nconst FrameworkID& frameworkID,\nconst SlaveID& slaveID);\n- bool allocatable(const Resources& resources);\n+ stat...
C++
Apache License 2.0
apache/mesos
Made a function static in the allocator. Review: https://reviews.apache.org/r/55908
46,165
24.01.2017 17:23:52
28,800
a3dcd979f09b9cb7ec7456edb67f47f42eb525e3
Added a function for available agent resources in the allocator. Review:
[ { "change_type": "MODIFY", "old_path": "src/master/allocator/mesos/hierarchical.cpp", "new_path": "src/master/allocator/mesos/hierarchical.cpp", "diff": "@@ -781,7 +781,7 @@ Future<Nothing> HierarchicalAllocatorProcess::updateAvailable(\nCHECK(initialized);\nCHECK(slaves.contains(slaveId));\n- Resou...
C++
Apache License 2.0
apache/mesos
Added a function for available agent resources in the allocator. Review: https://reviews.apache.org/r/55909
46,177
26.01.2017 16:23:43
28,800
cf032611fc5d57daf1acb5c3ad0cfce9cd827a2e
Added comments about `process::finalize(true)`. Finalizing libprocess matters more on Windows than Posix, as any OS process which uses the Windows socket stack must also clean it up before exiting. Otherwise, the OS process will not exit gracefully (exit code 0).
[ { "change_type": "MODIFY", "old_path": "src/docker/executor.cpp", "new_path": "src/docker/executor.cpp", "diff": "@@ -817,6 +817,9 @@ int main(int argc, char** argv)\ndriver.reset();\nexecutor.reset();\n+ // NOTE: We need to finalize libprocess, on Windows especially,\n+ // as any binary that uses t...
C++
Apache License 2.0
apache/mesos
Added comments about `process::finalize(true)`. Finalizing libprocess matters more on Windows than Posix, as any OS process which uses the Windows socket stack must also clean it up before exiting. Otherwise, the OS process will not exit gracefully (exit code 0).
46,056
27.01.2017 16:32:16
-3,600
9e7bcb338ccf064cf12bd4009404a36aae37b06c
Updated a TODO in mesos.proto for CheckInfo.
[ { "change_type": "MODIFY", "old_path": "include/mesos/mesos.proto", "new_path": "include/mesos/mesos.proto", "diff": "@@ -374,6 +374,8 @@ message CheckInfo {\nHTTP = 2;\n// TODO(alexr): Consider supporting TCP checks and custom user checks.\n+ // The latter should probably be paired with a `data` fi...
C++
Apache License 2.0
apache/mesos
Updated a TODO in mesos.proto for CheckInfo.
46,056
24.01.2017 12:58:11
-3,600
81673b378949585af927cce4601490fbdcfe2b67
Added a TODO regarding task status validation.
[ { "change_type": "MODIFY", "old_path": "src/slave/validation.cpp", "new_path": "src/slave/validation.cpp", "diff": "@@ -370,6 +370,9 @@ Option<Error> validate(const mesos::executor::Call& call)\n);\n}\n+ // TODO(alexr): Validate `check_status` is present if\n+ // the corresponding `TaskInfo.check` h...
C++
Apache License 2.0
apache/mesos
Added a TODO regarding task status validation.
46,056
19.01.2017 16:57:07
-3,600
0dd170394348a724f2cf64a436346cfd8b5aa78d
Ensured task's check status is delivered with reconciliation updates. Review:
[ { "change_type": "MODIFY", "old_path": "src/common/protobuf_utils.cpp", "new_path": "src/common/protobuf_utils.cpp", "diff": "@@ -101,6 +101,7 @@ StatusUpdate createStatusUpdate(\nconst Option<TaskStatus::Reason>& reason,\nconst Option<ExecutorID>& executorId,\nconst Option<bool>& healthy,\n+ const ...
C++
Apache License 2.0
apache/mesos
Ensured task's check status is delivered with reconciliation updates. Review: https://reviews.apache.org/r/55767
46,056
19.01.2017 17:30:16
-3,600
09b5619e688a1ad2d4c37c3af655beeca28e8d0d
Updated mesos-execute to show check's status. Review:
[ { "change_type": "MODIFY", "old_path": "src/cli/execute.cpp", "new_path": "src/cli/execute.cpp", "diff": "#include <stout/none.hpp>\n#include <stout/option.hpp>\n#include <stout/os.hpp>\n+#include <stout/stringify.hpp>\n#include \"common/parse.hpp\"\n#include \"common/protobuf_utils.hpp\"\n@@ -60,6 ...
C++
Apache License 2.0
apache/mesos
Updated mesos-execute to show check's status. Review: https://reviews.apache.org/r/55768
46,082
27.01.2017 10:20:12
28,800
a6d9909d59bf16c47fc21247340f59523430489c
Added Dmitry Zhuk to contributors. Review:
[ { "change_type": "MODIFY", "old_path": "docs/contributors.yaml", "new_path": "docs/contributors.yaml", "diff": "jira_user: darroyo\nreviewboard_user: darroyo\n+- name: Dmitry Zhuk\n+ affiliations:\n+ - {organization: Twitter}\n+ emails:\n+ - dzhuk@twitter.com\n+ jira_user: dzhuk\n+ reviewboard_user:...
C++
Apache License 2.0
apache/mesos
Added Dmitry Zhuk to contributors. Review: https://reviews.apache.org/r/56024/
46,136
29.01.2017 12:49:03
28,800
05fbacd370848c138eab758cfd8adab87a33ff2e
Added an overload for `acceptsMediaType()`. This overload allows us to see if a header name with similar semantics as the "Accept" header is acceptable in the response. This would be used for the "Message-Accept" header later. Review:
[ { "change_type": "MODIFY", "old_path": "3rdparty/libprocess/include/process/http.hpp", "new_path": "3rdparty/libprocess/include/process/http.hpp", "diff": "@@ -477,10 +477,25 @@ struct Request\nbool acceptsEncoding(const std::string& encoding) const;\n/**\n- * Returns whether the media type is consi...
C++
Apache License 2.0
apache/mesos
Added an overload for `acceptsMediaType()`. This overload allows us to see if a header name with similar semantics as the "Accept" header is acceptable in the response. This would be used for the "Message-Accept" header later. Review: https://reviews.apache.org/r/55936/
46,136
29.01.2017 12:49:08
28,800
fecea31a81eb7fe0afac73acc1d6a9b5acc1443e
Added constants for referring to request/response streaming headers. Removed the previous streaming headers and added constants for "Message-Accept and "Message-Content-Type" headers allowing us to refer to them later in the agent API handlers. Also, modified the stream operators as well as the serialize/deserialize fu...
[ { "change_type": "MODIFY", "old_path": "include/mesos/http.hpp", "new_path": "include/mesos/http.hpp", "diff": "@@ -25,12 +25,18 @@ const char APPLICATION_PROTOBUF[] = \"application/x-protobuf\";\nconst char APPLICATION_JSON[] = \"application/json\";\n-// The content-types used for streaming request...
C++
Apache License 2.0
apache/mesos
Added constants for referring to request/response streaming headers. Removed the previous streaming headers and added constants for "Message-Accept and "Message-Content-Type" headers allowing us to refer to them later in the agent API handlers. Also, modified the stream operators as well as the serialize/deserialize f...
46,136
29.01.2017 12:49:10
28,800
a50b2f0ecc1c7a0a5d49539608edd5dece8e7720
Renamed `streamingRequest` to `streamingMediaType`. This allows the method to be used both for detecting if the media type can be used for streaming requests and responses. Also, the method now returns true for `ContentType::RECORDIO` media type. Review:
[ { "change_type": "MODIFY", "old_path": "src/common/http.cpp", "new_path": "src/common/http.cpp", "diff": "@@ -116,7 +116,7 @@ string serialize(\n}\n-bool requestStreaming(ContentType contentType)\n+bool streamingMediaType(ContentType contentType)\n{\nswitch(contentType) {\ncase ContentType::PROTOBUF...
C++
Apache License 2.0
apache/mesos
Renamed `streamingRequest` to `streamingMediaType`. This allows the method to be used both for detecting if the media type can be used for streaming requests and responses. Also, the method now returns true for `ContentType::RECORDIO` media type. Review: https://reviews.apache.org/r/55938/
46,136
29.01.2017 12:49:13
28,800
7f8cbdf58bc9766461a1bdb84701747137e263e8
Introduced `RequestMediaTypes`. This structure stores the "Content-*", "Message-*", "Accept-*" prefixed request headers in our internal representation. Review:
[ { "change_type": "MODIFY", "old_path": "src/common/http.hpp", "new_path": "src/common/http.hpp", "diff": "@@ -48,6 +48,19 @@ constexpr char DEFAULT_HTTP_AUTHENTICATOR[] = \"basic\";\nextern hashset<std::string> AUTHORIZABLE_ENDPOINTS;\n+\n+// Contains the media types corresponding to some of the \"C...
C++
Apache License 2.0
apache/mesos
Introduced `RequestMediaTypes`. This structure stores the "Content-*", "Message-*", "Accept-*" prefixed request headers in our internal representation. Review: https://reviews.apache.org/r/55939/
46,136
29.01.2017 12:49:16
28,800
71fca664dd76a08cdd3abb5315c9b75201af466f
Added some assertions to the switchboard request handler. Some of the request parameters e.g., request method/header values are already validated by the agent. We can replace them with explicit assertions in the IO switchboard. Review:
[ { "change_type": "MODIFY", "old_path": "src/slave/containerizer/mesos/io/switchboard.cpp", "new_path": "src/slave/containerizer/mesos/io/switchboard.cpp", "diff": "@@ -1294,14 +1294,10 @@ void IOSwitchboardServerProcess::acceptLoop()\nFuture<http::Response> IOSwitchboardServerProcess::handler(\ncons...
C++
Apache License 2.0
apache/mesos
Added some assertions to the switchboard request handler. Some of the request parameters e.g., request method/header values are already validated by the agent. We can replace them with explicit assertions in the IO switchboard. Review: https://reviews.apache.org/r/55978/
46,136
29.01.2017 12:49:18
28,800
607d229ec88bd6ee7b90022d01752aab5c1a577b
Added support for the new streaming request/response headers. Modified the Agent API/Switchboard handlers to support the "Message-Accept"/"Message-Content-Type" headers for request/response streaming. Also, adds general validations to ensure that non-streaming requests/responses don't have these headers set. Review:
[ { "change_type": "MODIFY", "old_path": "src/slave/containerizer/mesos/io/switchboard.cpp", "new_path": "src/slave/containerizer/mesos/io/switchboard.cpp", "diff": "@@ -969,7 +969,9 @@ private:\nconst Owned<recordio::Reader<agent::Call>>& reader);\n// Handle `ATTACH_CONTAINER_OUTPUT` calls.\n- Future...
C++
Apache License 2.0
apache/mesos
Added support for the new streaming request/response headers. Modified the Agent API/Switchboard handlers to support the "Message-Accept"/"Message-Content-Type" headers for request/response streaming. Also, adds general validations to ensure that non-streaming requests/responses don't have these headers set. Review: ...
46,136
29.01.2017 12:49:22
28,800
62638a012415773dfcc1df68989db6ca6ed97463
Modified existing tests to support new headers for request streaming. These tests now set the "Message-Accept", "Message-Content-Type" headers correctly for streaming responses/requests. Review:
[ { "change_type": "MODIFY", "old_path": "src/tests/api_tests.cpp", "new_path": "src/tests/api_tests.cpp", "diff": "@@ -4097,6 +4097,7 @@ TEST_P_TEMP_DISABLED_ON_WINDOWS(AgentAPITest, LaunchNestedContainerSession)\nAWAIT_EXPECT_RESPONSE_STATUS_EQ(http::OK().status, response);\nASSERT_EQ(stringify(cont...
C++
Apache License 2.0
apache/mesos
Modified existing tests to support new headers for request streaming. These tests now set the "Message-Accept", "Message-Content-Type" headers correctly for streaming responses/requests. Review: https://reviews.apache.org/r/55941/
46,136
29.01.2017 12:49:26
28,800
cb12060a4366cfed05e53cb9e84429b039e67cd9
Added a test for validating streaming request/response headers. Review:
[ { "change_type": "MODIFY", "old_path": "src/tests/api_tests.cpp", "new_path": "src/tests/api_tests.cpp", "diff": "@@ -4600,6 +4600,126 @@ TEST_F(AgentAPITest, AttachContainerInputValidation)\n}\n+// This test verifies that any missing headers or unsupported media\n+// types in the request result in ...
C++
Apache License 2.0
apache/mesos
Added a test for validating streaming request/response headers. Review: https://reviews.apache.org/r/55942/
46,165
26.01.2017 14:56:58
28,800
e8460826fc020a079a36a6993718d7c5bce98515
Added a safety CHECK when accessing activeRoles in the master. Currently there is a use of the [] operator that is not preceded by a CHECK that the key is contained in the map. This leads to a hard to diagnose issue if there are bugs that violate this assumption. Review:
[ { "change_type": "MODIFY", "old_path": "src/master/master.cpp", "new_path": "src/master/master.cpp", "diff": "@@ -7701,6 +7701,8 @@ void Master::removeFramework(Framework* framework)\n<< \"Unknown role '\" << role << \"'\"\n<< \" of framework \" << *framework;\n+ CHECK(activeRoles.contains(role));\n...
C++
Apache License 2.0
apache/mesos
Added a safety CHECK when accessing activeRoles in the master. Currently there is a use of the [] operator that is not preceded by a CHECK that the key is contained in the map. This leads to a hard to diagnose issue if there are bugs that violate this assumption. Review: https://reviews.apache.org/r/56005
46,165
17.12.2016 13:54:39
21,600
9aa1d619038538b09dacbc2d78b3ef641c5f8c03
Added helpers to allocate / unallocate Resources. Review:
[ { "change_type": "MODIFY", "old_path": "include/mesos/resources.hpp", "new_path": "include/mesos/resources.hpp", "diff": "@@ -345,6 +345,14 @@ public:\nsize_t size() const { return resources.size(); }\n+ // Allocates the resources to the given role (by setting the\n+ // `AllocationInfo.role`). Any e...
C++
Apache License 2.0
apache/mesos
Added helpers to allocate / unallocate Resources. Review: https://reviews.apache.org/r/54836
46,165
20.01.2017 18:31:45
28,800
aa0ea8fc8846f2914784d6ad229843adbbc8e400
Augmented printing of Resources to include AllocationInfo. Ignoring whether there is a disk info, the format is as follows: name(reservedrole[, principal[, labels]])(allocatedrole):value Review:
[ { "change_type": "MODIFY", "old_path": "src/common/resources.cpp", "new_path": "src/common/resources.cpp", "diff": "@@ -1944,6 +1944,10 @@ ostream& operator<<(ostream& stream, const Resource& resource)\nstream << \")\";\n+ if (resource.has_allocation_info()) {\n+ stream << \"(allocated: \" << resour...
C++
Apache License 2.0
apache/mesos
Augmented printing of Resources to include AllocationInfo. Ignoring whether there is a disk info, the format is as follows: name(reservedrole[, principal[, labels]])(allocatedrole):value Review: https://reviews.apache.org/r/55825
46,056
01.02.2017 15:07:05
-3,600
12c0627f3d3730a8b7ec290c4cd3b359c2bb1021
Fixed a typo in "scheduler.proto".
[ { "change_type": "MODIFY", "old_path": "include/mesos/scheduler/scheduler.proto", "new_path": "include/mesos/scheduler/scheduler.proto", "diff": "@@ -333,7 +333,7 @@ message Call {\n// Allows the scheduler to query the status for non-terminal tasks.\n// This causes the master to send back the latest...
C++
Apache License 2.0
apache/mesos
Fixed a typo in "scheduler.proto".
46,056
01.02.2017 15:14:03
-3,600
1399af9655641f2c7962fda99697beca3dc9bba7
Augmented comments around (health) check delay in "mesos.proto".
[ { "change_type": "MODIFY", "old_path": "include/mesos/mesos.proto", "new_path": "include/mesos/mesos.proto", "diff": "@@ -413,8 +413,9 @@ message CheckInfo {\n// HTTP check.\noptional Http http = 3;\n- // Amount of time to wait to start checking the\n- // task after it transitions to `TASK_RUNNING`....
C++
Apache License 2.0
apache/mesos
Augmented comments around (health) check delay in "mesos.proto".
46,056
01.02.2017 15:18:55
-3,600
3ce87b4914b059c7e92ad97507ec8795eb0a479c
Updated reconciliation comment in "scheduler.proto". Review:
[ { "change_type": "MODIFY", "old_path": "include/mesos/scheduler/scheduler.proto", "new_path": "include/mesos/scheduler/scheduler.proto", "diff": "@@ -333,9 +333,9 @@ message Call {\n// Allows the scheduler to query the status for non-terminal tasks.\n// This causes the master to send back the latest...
C++
Apache License 2.0
apache/mesos
Updated reconciliation comment in "scheduler.proto". Review: https://reviews.apache.org/r/56177
46,126
01.02.2017 11:13:13
28,800
e69160ad2574a54c52d224083364c8a939267384
Removed inactive Athens, Greece MUG from communities. I have terminated the MUG in Athens. Please merge when possible. This closes
[ { "change_type": "MODIFY", "old_path": "site/source/community/user-groups.html.md", "new_path": "site/source/community/user-groups.html.md", "diff": "@@ -23,9 +23,6 @@ Mesos User Groups (MUGs) are responsible for organizing local meetups, hackathon\n* [Cologne](http://www.meetup.com/Mesos-User-Group...
C++
Apache License 2.0
apache/mesos
Removed inactive Athens, Greece MUG from communities. I have terminated the MUG in Athens. Please merge when possible. This closes #201
46,074
01.02.2017 10:37:03
28,800
69875e52ba6bf70e4415c212d2caeb61e5bafaf3
Perform batching of allocations to reduce allocator queue backlogging. New allocation runs are now dispatched only if there is none pending in the queue. Otherwise allocation candidates are accumulated into the pending allocation run. Allocation candidates are cleared when the enqueued allocation run is processed. Revi...
[ { "change_type": "MODIFY", "old_path": "src/master/allocator/mesos/hierarchical.cpp", "new_path": "src/master/allocator/mesos/hierarchical.cpp", "diff": "#include <mesos/resources.hpp>\n#include <mesos/type_utils.hpp>\n-#include <process/event.hpp>\n#include <process/delay.hpp>\n+#include <process/d...
C++
Apache License 2.0
apache/mesos
Perform batching of allocations to reduce allocator queue backlogging. - New allocation runs are now dispatched only if there is none pending in the queue. Otherwise allocation candidates are accumulated into the pending allocation run. - Allocation candidates are cleared when the enqueued allocation run is proc...
46,074
01.02.2017 10:43:46
28,800
2f170f302fe94c47c7eeec574041dff4e7057020
Dispatch filter expiration twice. With an asynchronous `batch()` allocation, this ensures that filters do not expire before the next allocation. Review:
[ { "change_type": "MODIFY", "old_path": "src/master/allocator/mesos/hierarchical.cpp", "new_path": "src/master/allocator/mesos/hierarchical.cpp", "diff": "@@ -931,7 +931,7 @@ void HierarchicalAllocatorProcess::updateInverseOffer(\n.inverseOfferFilters[slaveId].insert(inverseOfferFilter);\n// We need ...
C++
Apache License 2.0
apache/mesos
Dispatch filter expiration twice. - With an asynchronous `batch()` allocation, this ensures that filters do not expire before the next allocation. Review: https://reviews.apache.org/r/52534/
46,078
01.02.2017 11:07:45
28,800
daa15285fe7fa829cd5ec19c5bb6728df9701280
Fixed MasterAllocatorTest/1.RebalancedForUpdatedWeights. This test is broken by changes introduced in Review:
[ { "change_type": "MODIFY", "old_path": "src/tests/master_allocator_tests.cpp", "new_path": "src/tests/master_allocator_tests.cpp", "diff": "#include <process/gmock.hpp>\n#include <process/owned.hpp>\n#include <process/pid.hpp>\n+#include <process/queue.hpp>\n#include <stout/some.hpp>\n#include <stou...
C++
Apache License 2.0
apache/mesos
Fixed MasterAllocatorTest/1.RebalancedForUpdatedWeights. - This test is broken by changes introduced in MESOS-6904. Review: https://reviews.apache.org/r/55852/
46,078
01.02.2017 11:08:27
28,800
f6aaddb922b5265ede77afd83fef941da77ee0c4
Fixed OversubscriptionTest.RescindRevocableOfferWithIncreasedRevocable. This test is broken by changes introduced in Review:
[ { "change_type": "MODIFY", "old_path": "src/tests/oversubscription_tests.cpp", "new_path": "src/tests/oversubscription_tests.cpp", "diff": "@@ -441,9 +441,7 @@ TEST_F(OversubscriptionTest, RevocableOffer)\n// This test verifies that when the master receives a new estimate for\n// oversubscribed reso...
C++
Apache License 2.0
apache/mesos
Fixed OversubscriptionTest.RescindRevocableOfferWithIncreasedRevocable. - This test is broken by changes introduced in MESOS-6904. Review: https://reviews.apache.org/r/55893/
46,078
23.01.2017 18:00:11
28,800
e05a445407024cfcff8eee7d03400fac3762280e
Added a simple AllocatorBacklog benchmark. Review:
[ { "change_type": "MODIFY", "old_path": "src/tests/hierarchical_allocator_tests.cpp", "new_path": "src/tests/hierarchical_allocator_tests.cpp", "diff": "@@ -4314,6 +4314,107 @@ TEST_P(HierarchicalAllocator_BENCHMARK_Test, Metrics)\n<< \" and \" << frameworkCount << \" frameworks\" << endl;\n}\n+\n+//...
C++
Apache License 2.0
apache/mesos
Added a simple AllocatorBacklog benchmark. Review: https://reviews.apache.org/r/55874
46,159
01.02.2017 12:23:16
28,800
cb671fa7b4ca69e90bbd93855b15b65fd34153c3
Simplified AppC provisioner cache keys hashing. Repalced manual `std::map` contents hashing with specialized `boost::hash_combine()`. Review:
[ { "change_type": "MODIFY", "old_path": "src/slave/containerizer/mesos/provisioner/appc/cache.cpp", "new_path": "src/slave/containerizer/mesos/provisioner/appc/cache.cpp", "diff": "@@ -169,11 +169,7 @@ size_t Cache::KeyHasher::operator()(const Cache::Key& key) const\nsize_t seed = 0;\nboost::hash_com...
C++
Apache License 2.0
apache/mesos
Simplified AppC provisioner cache keys hashing. Repalced manual `std::map` contents hashing with specialized `boost::hash_combine()`. Review: https://reviews.apache.org/r/56087/
46,159
01.02.2017 12:25:41
28,800
ab0a6b5b925afebe867763cfb260fa5e06fdf4c1
Simplified AppC provisioner cache keys comparison. Manual elements searching is not required since `std::map` is ordered. Replaced it with standard `operator==` that checks maps sizes and does linear element by element comparison. Review:
[ { "change_type": "MODIFY", "old_path": "src/slave/containerizer/mesos/provisioner/appc/cache.cpp", "new_path": "src/slave/containerizer/mesos/provisioner/appc/cache.cpp", "diff": "@@ -146,19 +146,9 @@ bool Cache::Key::operator==(const Cache::Key& other) const\nreturn false;\n}\n- foreachpair (const ...
C++
Apache License 2.0
apache/mesos
Simplified AppC provisioner cache keys comparison. Manual elements searching is not required since `std::map` is ordered. Replaced it with standard `operator==` that checks maps sizes and does linear element by element comparison. Review: https://reviews.apache.org/r/56086/
46,128
01.02.2017 14:17:57
28,800
063ecdee574f7d1d491c490bda2dfb956d8c515e
Changed 'Environment.Variable.Value' from required to optional. To prepare for future work which will enable the modular fetching of secrets, we should change the Environment.Variable.Value field from required to optional. This way, the field can be left empty and filled in by a secret fetching module. Review:
[ { "change_type": "MODIFY", "old_path": "include/mesos/mesos.proto", "new_path": "include/mesos/mesos.proto", "diff": "@@ -1898,7 +1898,10 @@ message Filters {\nmessage Environment {\nmessage Variable {\nrequired string name = 1;\n- required string value = 2;\n+ // NOTE: The `value` field was made op...
C++
Apache License 2.0
apache/mesos
Changed 'Environment.Variable.Value' from required to optional. To prepare for future work which will enable the modular fetching of secrets, we should change the Environment.Variable.Value field from required to optional. This way, the field can be left empty and filled in by a secret fetching module. Review: https:...
46,128
01.02.2017 14:18:02
28,800
289830368675afb3a46278202687e30aafc6cb03
Added validation tests to ensure environment variable value is set. The `value` field within `Environment::Variable` is being changed to `optional`, but for the time being we will enforce that it must be set for backward compatibility. This patch adds tests to ensure that environment variables with unset values are cor...
[ { "change_type": "MODIFY", "old_path": "src/tests/check_tests.cpp", "new_path": "src/tests/check_tests.cpp", "diff": "@@ -81,6 +81,28 @@ TEST_F(CheckTest, CheckInfoValidation)\nEXPECT_EQ(\"Command check must contain 'shell command'\", validate->message);\n}\n+ // Command check must specify a command...
C++
Apache License 2.0
apache/mesos
Added validation tests to ensure environment variable value is set. The `value` field within `Environment::Variable` is being changed to `optional`, but for the time being we will enforce that it must be set for backward compatibility. This patch adds tests to ensure that environment variables with unset values are co...
46,128
01.02.2017 14:18:06
28,800
f2f77116534af4aeb72b31924183d369d018c893
Added validation for 'LAUNCH_NESTED_CONTAINER_SESSION'. This patch adds a validation test for the `LAUNCH_NESTED_CONTAINER_SESSION` call. Review:
[ { "change_type": "MODIFY", "old_path": "src/tests/slave_validation_tests.cpp", "new_path": "src/tests/slave_validation_tests.cpp", "diff": "@@ -219,6 +219,76 @@ TEST(AgentCallValidationTest, KillNestedContainer)\nEXPECT_NONE(error);\n}\n+\n+TEST(AgentCallValidationTest, LaunchNestedContainerSession)...
C++
Apache License 2.0
apache/mesos
Added validation for 'LAUNCH_NESTED_CONTAINER_SESSION'. This patch adds a validation test for the `LAUNCH_NESTED_CONTAINER_SESSION` call. Review: https://reviews.apache.org/r/56055/
46,056
20.01.2017 20:08:35
-3,600
522f1f176d8785cc4417d3b1fe306f2f3c3ac466
Avoided shadowing in `Slave::run()`. Review:
[ { "change_type": "MODIFY", "old_path": "src/slave/slave.cpp", "new_path": "src/slave/slave.cpp", "diff": "@@ -1576,12 +1576,12 @@ void Slave::run(\nLOG(INFO) << \"Got assigned \" << taskOrTaskGroup(task, taskGroup)\n<< \" for framework \" << frameworkId;\n- foreach (const TaskInfo& task, tasks) {\n-...
C++
Apache License 2.0
apache/mesos
Avoided shadowing in `Slave::run()`. Review: https://reviews.apache.org/r/55876
46,181
01.02.2017 23:52:14
-3,600
2b7cd892e295096dfe75c074c1af5ed7ff076bfa
Restored quota correctly during allocator recovery. The previous coding neglected to restore the quota during allocator recovery if the expected agent count is zero. Review:
[ { "change_type": "MODIFY", "old_path": "src/master/allocator/mesos/hierarchical.cpp", "new_path": "src/master/allocator/mesos/hierarchical.cpp", "diff": "@@ -161,7 +161,7 @@ void HierarchicalAllocatorProcess::recover(\n{\n// Recovery should start before actual allocation starts.\nCHECK(initialized);...
C++
Apache License 2.0
apache/mesos
Restored quota correctly during allocator recovery. The previous coding neglected to restore the quota during allocator recovery if the expected agent count is zero. Review: https://reviews.apache.org/r/55995/
46,056
02.02.2017 00:27:13
-3,600
457cf86dcda94a1e31831754e28f6027bee897af
Added to CHANGELOG for 1.0.3 and 1.1.1.
[ { "change_type": "MODIFY", "old_path": "CHANGELOG", "new_path": "CHANGELOG", "diff": "@@ -41,6 +41,7 @@ All Issues:\n* [MESOS-6848] - The default executor does not exit if a single task pod fails.\n* [MESOS-6852] - Nested container's launch command is not set correctly in docker/runtime isolator.\n*...
C++
Apache License 2.0
apache/mesos
Added MESOS-7008 to CHANGELOG for 1.0.3 and 1.1.1.
46,056
02.02.2017 00:39:08
-3,600
8dffd1a471d37c574d2b436dafcd7ed8eac1f949
Fixed a typo in "mesos.proto".
[ { "change_type": "MODIFY", "old_path": "include/mesos/mesos.proto", "new_path": "include/mesos/mesos.proto", "diff": "@@ -414,8 +414,8 @@ message CheckInfo {\noptional Http http = 3;\n// Amount of time to wait to start checking the task after it\n- // transitions to `TASK_RUNNING` or `TASK_STATING` ...
C++
Apache License 2.0
apache/mesos
Fixed a typo in "mesos.proto".
46,136
02.02.2017 07:10:55
28,800
f179400b15ab18a9d315a7c48d0325b6fb0e66ae
Minor fix to a disabled test to use the new request streaming headers. This test was missed as part of the cleanup for
[ { "change_type": "MODIFY", "old_path": "src/tests/containerizer/io_switchboard_tests.cpp", "new_path": "src/tests/containerizer/io_switchboard_tests.cpp", "diff": "@@ -525,7 +525,8 @@ TEST_F(IOSwitchboardServerTest, DISABLED_AttachInput)\nrequest.url.path = \"/\";\nrequest.keepAlive = true;\nrequest...
C++
Apache License 2.0
apache/mesos
Minor fix to a disabled test to use the new request streaming headers. This test was missed as part of the cleanup for MESOS-6936.
46,129
02.02.2017 10:16:05
28,800
95c177e95a529248718e3bbd6350f9c68ba68220
Implemented new http::Headers abstraction for WWW-Authenticate. This patch introduced a new abstraction for http::Headers and helper methods for the http::Headers hashmap, as well as a new http::WWWAuthenticate class for the new `Headers` abstraction. Review:
[ { "change_type": "MODIFY", "old_path": "3rdparty/libprocess/include/process/http.hpp", "new_path": "3rdparty/libprocess/include/process/http.hpp", "diff": "@@ -256,12 +256,6 @@ struct Status\n};\n-typedef hashmap<std::string,\n- std::string,\n- CaseInsensitiveHash,\n- CaseInsensitiveEqual> Headers;\...
C++
Apache License 2.0
apache/mesos
Implemented new http::Headers abstraction for WWW-Authenticate. This patch introduced a new abstraction for http::Headers and helper methods for the http::Headers hashmap, as well as a new http::WWWAuthenticate class for the new `Headers` abstraction. Review: https://reviews.apache.org/r/56116/
46,129
02.02.2017 10:16:09
28,800
988b52039e8e052e0722deafc26c972c762e89ac
Fixed mesos test helper createBasicAuthHeaders() on http header. Fixed the initialization of http::Headers in mesos test helper. Review:
[ { "change_type": "MODIFY", "old_path": "src/tests/mesos.hpp", "new_path": "src/tests/mesos.hpp", "diff": "@@ -919,11 +919,11 @@ template <typename TCredential>\ninline process::http::Headers createBasicAuthHeaders(\nconst TCredential& credential)\n{\n- return process::http::Headers{{\n+ return proce...
C++
Apache License 2.0
apache/mesos
Fixed mesos test helper createBasicAuthHeaders() on http header. Fixed the initialization of http::Headers in mesos test helper. Review: https://reviews.apache.org/r/56117/
46,129
02.02.2017 13:09:19
28,800
0741135372151667ad17138752c3cd2a0c9a63ac
Added unit test for http::Headers abstraction. Review:
[ { "change_type": "MODIFY", "old_path": "3rdparty/libprocess/src/tests/http_tests.cpp", "new_path": "3rdparty/libprocess/src/tests/http_tests.cpp", "diff": "@@ -1443,6 +1443,58 @@ TEST_P_TEMP_DISABLED_ON_WINDOWS(HTTPTest, QueryEncodeDecode)\n}\n+TEST_P(HTTPTest, Headers)\n+{\n+ http::Headers headers(...
C++
Apache License 2.0
apache/mesos
Added unit test for http::Headers abstraction. Review: https://reviews.apache.org/r/56144/
46,165
22.01.2017 16:56:12
28,800
ec12ed58811e21229628b08221a6519e0d8c6825
Introduce a helper for injecting AllocationInfo into offer operations. Previously, `Resource` did not contain `AllocationInfo`. So for backwards compatibility with old schedulers and tooling, we must allow operations to contain `Resource`s without an `AllocationInfo`. This introduces a function which allows the master ...
[ { "change_type": "MODIFY", "old_path": "src/common/protobuf_utils.cpp", "new_path": "src/common/protobuf_utils.cpp", "diff": "@@ -348,6 +348,98 @@ Label createLabel(const string& key, const Option<string>& value)\n}\n+void adjustOfferOperation(\n+ Offer::Operation* operation,\n+ const Resource::Allo...
C++
Apache License 2.0
apache/mesos
Introduce a helper for injecting AllocationInfo into offer operations. Previously, `Resource` did not contain `AllocationInfo`. So for backwards compatibility with old schedulers and tooling, we must allow operations to contain `Resource`s without an `AllocationInfo`. This introduces a function which allows the maste...
46,165
24.01.2017 17:25:49
28,800
a4946a30b4d811e6e13c06e0ce175ab8c5ef7f09
Prevent unintended mutation in the allocator. Currently, a lof of code in the allocator makes use of the `[]` operator to access the agents, frameworks and sorters, which can lead to subtle bugs where insertion was unintended. With this change, a few const functions can be marked as such. Review:
[ { "change_type": "MODIFY", "old_path": "src/master/allocator/mesos/hierarchical.cpp", "new_path": "src/master/allocator/mesos/hierarchical.cpp", "diff": "@@ -62,7 +62,7 @@ class OfferFilter\npublic:\nvirtual ~OfferFilter() {}\n- virtual bool filter(const Resources& resources) = 0;\n+ virtual bool fi...
C++
Apache License 2.0
apache/mesos
Prevent unintended mutation in the allocator. Currently, a lof of code in the allocator makes use of the `[]` operator to access the agents, frameworks and sorters, which can lead to subtle bugs where insertion was unintended. With this change, a few const functions can be marked as such. Review: https://reviews.apa...
46,177
02.02.2017 18:03:20
28,800
2e49953b154459b4696095a1f84fc59309d615cb
Windows: Disabled MasterAPITest.GetRecoveredAgents. This test requires the replicated log, which is not implemented on Windows currently.
[ { "change_type": "MODIFY", "old_path": "src/tests/api_tests.cpp", "new_path": "src/tests/api_tests.cpp", "diff": "@@ -1466,7 +1466,7 @@ TEST_P(MasterAPITest, SubscribeAgentEvents)\n// This test verifies that recovered but yet to reregister agents are returned\n// in `recovered_agents` field of `GetA...
C++
Apache License 2.0
apache/mesos
Windows: Disabled MasterAPITest.GetRecoveredAgents. This test requires the replicated log, which is not implemented on Windows currently.
46,111
03.02.2017 11:46:07
28,800
eec6f32ad5f86527c211b775baade55b1e5bcf8e
Added `--3way` option to `support/apply-reviews.py`. This can help on some patches which includes conflicts that can be resolved by 3-way merge. Review:
[ { "change_type": "MODIFY", "old_path": "support/apply-reviews.py", "new_path": "support/apply-reviews.py", "diff": "@@ -118,8 +118,8 @@ def apply_review():\n# Make sure we don't leave the patch behind in case of failure.\n# We store the patch ID in a local variable to ensure the lambda\n# captures t...
C++
Apache License 2.0
apache/mesos
Added `--3way` option to `support/apply-reviews.py`. This can help on some patches which includes conflicts that can be resolved by 3-way merge. Review: https://reviews.apache.org/r/55732/
46,089
03.02.2017 14:29:54
28,800
3a537a1d18e500fb1efe2f4d4f0718fb25c51848
Updated the persistent volume test framework to include shared volumes. Review:
[ { "change_type": "MODIFY", "old_path": "src/examples/persistent_volume_framework.cpp", "new_path": "src/examples/persistent_volume_framework.cpp", "diff": "#include <mesos/authorizer/acls.hpp>\n#include <stout/flags.hpp>\n+#include <stout/hashset.hpp>\n#include <stout/json.hpp>\n#include <stout/opti...
C++
Apache License 2.0
apache/mesos
Updated the persistent volume test framework to include shared volumes. Review: https://reviews.apache.org/r/45962/
46,074
03.02.2017 15:51:07
28,800
f686f04f57b967dfe1cc2d3a5f09250812013d46
Fix to potential dangling pointer in `batch()`. If `HierarchicalAllocatorProcess` is gone after `allocate` but before `AnyCallback` then `this->allocationInterval` may reference garbage. Review:
[ { "change_type": "MODIFY", "old_path": "src/master/allocator/mesos/hierarchical.cpp", "new_path": "src/master/allocator/mesos/hierarchical.cpp", "diff": "@@ -1259,11 +1259,12 @@ void HierarchicalAllocatorProcess::resume()\nvoid HierarchicalAllocatorProcess::batch()\n{\n- auto pid = self();\n+ proces...
C++
Apache License 2.0
apache/mesos
Fix to potential dangling pointer in `batch()`. - If `HierarchicalAllocatorProcess` is gone after `allocate` but before `AnyCallback` then `this->allocationInterval` may reference garbage. Review: https://reviews.apache.org/r/56296/
46,165
25.01.2017 16:26:04
28,800
45786b69cd08ae8527204193de2747ba3a5b575e
Updated the master's HTTP operations to handle MULTI_ROLE changes. With the addition of MULTI_ROLE framework support, allocated resources in the master have `Resource.AllocationInfo` set. This means that the master's http endpoints that apply operations or perform checks between unallocated and allocated resources must...
[ { "change_type": "MODIFY", "old_path": "src/master/http.cpp", "new_path": "src/master/http.cpp", "diff": "@@ -4649,7 +4649,7 @@ Future<Response> Master::Http::_operation(\n}\n// The resources recovered by rescinding outstanding offers.\n- Resources recovered;\n+ Resources totalRecovered;\n// We pess...
C++
Apache License 2.0
apache/mesos
Updated the master's HTTP operations to handle MULTI_ROLE changes. With the addition of MULTI_ROLE framework support, allocated resources in the master have `Resource.AllocationInfo` set. This means that the master's http endpoints that apply operations or perform checks between unallocated and allocated resources mus...
46,076
14.01.2017 13:20:20
28,800
0fbc04b4fcd4564405353e53cc2e049e25ed5fe0
Replaced recursive implementation in http::Connection with loop. Review:
[ { "change_type": "MODIFY", "old_path": "3rdparty/libprocess/src/http.cpp", "new_path": "3rdparty/libprocess/src/http.cpp", "diff": "@@ -1259,14 +1259,19 @@ protected:\nprivate:\nstatic Future<Nothing> _send(network::Socket socket, Pipe::Reader reader)\n{\n- return reader.read()\n- .then([socket, rea...
C++
Apache License 2.0
apache/mesos
Replaced recursive implementation in http::Connection with loop. Review: https://reviews.apache.org/r/55539
46,076
14.01.2017 13:20:35
28,800
ca3fe986006b1fa8502f0a2d0ca2b56c7154e7d3
Re-enabled disabled test. Review:
[ { "change_type": "MODIFY", "old_path": "src/tests/containerizer/io_switchboard_tests.cpp", "new_path": "src/tests/containerizer/io_switchboard_tests.cpp", "diff": "@@ -462,8 +462,7 @@ TEST_F(IOSwitchboardServerTest, SendHeartbeat)\n}\n-// TODO(alexr): Enable this test once MESOS-6912 is resolved.\n-...
C++
Apache License 2.0
apache/mesos
Re-enabled disabled test. Review: https://reviews.apache.org/r/55540
46,076
14.01.2017 13:49:38
28,800
d611162c7d4a2bd0734e808b7e1ac8d6b0daa1a2
Replaced (another) recursive implementation with process::loop. Review:
[ { "change_type": "MODIFY", "old_path": "3rdparty/libprocess/src/http.cpp", "new_path": "3rdparty/libprocess/src/http.cpp", "diff": "@@ -1000,9 +1000,6 @@ ostream& operator<<(ostream& stream, const URL& url)\nnamespace internal {\n-void _encode(Pipe::Reader reader, Pipe::Writer writer); // Forward de...
C++
Apache License 2.0
apache/mesos
Replaced (another) recursive implementation with process::loop. Review: https://reviews.apache.org/r/55541
46,076
14.01.2017 13:49:53
28,800
9316268eef000831a77b33fdfc68e080f03e99ae
Re-enabled a test. Review:
[ { "change_type": "MODIFY", "old_path": "src/tests/api_tests.cpp", "new_path": "src/tests/api_tests.cpp", "diff": "@@ -5028,11 +5028,9 @@ TEST_P_TEMP_DISABLED_ON_WINDOWS(AgentAPIStreamingTest,\n// entrypoint and verifies that any data streamed to the container via\n// an ATTACH_CONTAINER_INPUT call i...
C++
Apache License 2.0
apache/mesos
Re-enabled a test. Review: https://reviews.apache.org/r/55542
46,076
18.12.2016 18:49:08
28,800
d6fde52eb2f09e156c46b3e094f597c8cf04134a
Introduced process::after. Review:
[ { "change_type": "MODIFY", "old_path": "3rdparty/libprocess/Makefile.am", "new_path": "3rdparty/libprocess/Makefile.am", "diff": "@@ -234,6 +234,7 @@ libprocess_la_LIBADD = \\\ncheck_PROGRAMS = libprocess-tests benchmarks\nlibprocess_tests_SOURCES = \\\n+ src/tests/after_tests.cpp \\\nsrc/tests/coll...
C++
Apache License 2.0
apache/mesos
Introduced process::after. Review: https://reviews.apache.org/r/55321
46,076
18.12.2016 18:49:29
28,800
56da6bbb4e84088cbb75d01a333605238ce83fc1
Used process::after instead of process::RateLimiter. Review:
[ { "change_type": "MODIFY", "old_path": "src/slave/containerizer/mesos/io/switchboard.cpp", "new_path": "src/slave/containerizer/mesos/io/switchboard.cpp", "diff": "#include <vector>\n#include <process/address.hpp>\n+#include <process/after.hpp>\n#include <process/clock.hpp>\n#include <process/collec...
C++
Apache License 2.0
apache/mesos
Used process::after instead of process::RateLimiter. Review: https://reviews.apache.org/r/55322
46,165
04.02.2017 13:32:34
28,800
165b5c6b85791b20cb71cf1e4ccc14006cf33cbe
Fixed a regression in the balloon framework test. This test broke with the introduction of `Resource.allocation_info` for MULTI_ROLE framework support. Since the balloon framework uses the `Resources` library (which is now updated to observe the allocation info), the test needs to be made aware of the distinction betwe...
[ { "change_type": "MODIFY", "old_path": "src/examples/balloon_framework.cpp", "new_path": "src/examples/balloon_framework.cpp", "diff": "@@ -136,9 +136,11 @@ class BalloonSchedulerProcess : public process::Process<BalloonSchedulerProcess>\n{\npublic:\nBalloonSchedulerProcess(\n+ const FrameworkInfo& ...
C++
Apache License 2.0
apache/mesos
Fixed a regression in the balloon framework test. This test broke with the introduction of `Resource.allocation_info` for MULTI_ROLE framework support. Since the balloon framework uses the `Resources` library (which is now updated to observe the allocation info), the test needs to be made aware of the distinction betw...
46,159
04.02.2017 15:55:29
28,800
aefae58499ac49a1e75c02a7365ef8cbdf296d4e
Removed unnecessary mkdirs in ProvisionerDockerLocalStoreTest. `LocalStoreTestWithTar` and `PullingSameImageSimutanuously` started with creating directories that were already created by `SetUp()` and directories that are not used. Review:
[ { "change_type": "MODIFY", "old_path": "src/tests/containerizer/provisioner_docker_tests.cpp", "new_path": "src/tests/containerizer/provisioner_docker_tests.cpp", "diff": "@@ -182,13 +182,8 @@ protected:\n// stored in the proper locations accessible to the Docker provisioner.\nTEST_F(ProvisionerDock...
C++
Apache License 2.0
apache/mesos
Removed unnecessary mkdirs in ProvisionerDockerLocalStoreTest. `LocalStoreTestWithTar` and `PullingSameImageSimutanuously` started with creating directories that were already created by `SetUp()` and directories that are not used. Review: https://reviews.apache.org/r/56291/
46,159
04.02.2017 17:14:18
28,800
6043624aba9b3315eccf2ab19ddaf3a30ac9952c
Added skipping already stored layers to local Docker puller. If a layer is already in the store, there's no need to extract it. `RegistryPuller` already does this and `Store` is ready for such puller behaviour. Review:
[ { "change_type": "MODIFY", "old_path": "src/slave/containerizer/mesos/provisioner/docker/local_puller.cpp", "new_path": "src/slave/containerizer/mesos/provisioner/docker/local_puller.cpp", "diff": "@@ -51,8 +51,9 @@ namespace docker {\nclass LocalPullerProcess : public Process<LocalPullerProcess>\n{...
C++
Apache License 2.0
apache/mesos
Added skipping already stored layers to local Docker puller. If a layer is already in the store, there's no need to extract it. `RegistryPuller` already does this and `Store` is ready for such puller behaviour. Review: https://reviews.apache.org/r/56174/
46,128
04.02.2017 19:01:13
28,800
e181119323d4470dd55efe886c35060d12998248
Updated isolator module docs with checkpointing information. This patch adds information to the module documentation which specifies the standard location for checkpointing custom isolator module state. Review:
[ { "change_type": "MODIFY", "old_path": "docs/modules.md", "new_path": "docs/modules.md", "diff": "@@ -222,6 +222,12 @@ Isolator modules enable experimenting with specialized isolation and monitoring\ncapabilities. Examples of these could be 3rdparty resource isolation mechanisms\nfor GPGPU hardware,...
C++
Apache License 2.0
apache/mesos
Updated isolator module docs with checkpointing information. This patch adds information to the module documentation which specifies the standard location for checkpointing custom isolator module state. Review: https://reviews.apache.org/r/56292/
46,128
04.02.2017 19:06:21
28,800
9737a529fa8bb906b37ba71367580a5cbab229a1
Added '--runtime_dir' flag to the agent configuration docs. This patch adds the `--runtime_dir` flag to the agent configuration documentation. Review:
[ { "change_type": "MODIFY", "old_path": "docs/configuration.md", "new_path": "docs/configuration.md", "diff": "@@ -1765,6 +1765,17 @@ normal containers (non-revocable cpu). Currently only\nsupported by the cgroups/cpu isolator. (default: true)\n</td>\n</tr>\n+<tr>\n+ <td>\n+ --runtime_dir\n+ </td>\n+...
C++
Apache License 2.0
apache/mesos
Added '--runtime_dir' flag to the agent configuration docs. This patch adds the `--runtime_dir` flag to the agent configuration documentation. Review: https://reviews.apache.org/r/56293/
46,062
05.02.2017 00:46:13
28,800
4dbbf44ed1538a615e1cf16d4be144ec4bd1253d
Fixed non-Linux builds. Since `src/tests/containerizer/rootfs.hpp` was made Linux-only, the non-Linux builds were broken.
[ { "change_type": "MODIFY", "old_path": "src/tests/containerizer/provisioner_docker_tests.cpp", "new_path": "src/tests/containerizer/provisioner_docker_tests.cpp", "diff": "#include \"tests/mesos.hpp\"\n#include \"tests/utils.hpp\"\n+#ifdef __linux__\n#include \"tests/containerizer/docker_archive.hpp...
C++
Apache License 2.0
apache/mesos
Fixed non-Linux builds. Since `src/tests/containerizer/rootfs.hpp` was made Linux-only, the non-Linux builds were broken.
46,077
06.02.2017 17:41:26
-28,800
6ee71154ae67983e528cd7f950e70163b8ec6096
Added missing backslashes for `curl` commands in maintenance.md.
[ { "change_type": "MODIFY", "old_path": "docs/maintenance.md", "new_path": "docs/maintenance.md", "diff": "@@ -120,9 +120,9 @@ The operator can then post the schedule to the master's\n[/maintenance/schedule](endpoints/master/maintenance/schedule.md) endpoint:\n```\n-curl http://localhost:5050/mainten...
C++
Apache License 2.0
apache/mesos
Added missing backslashes for `curl` commands in maintenance.md.
46,165
06.02.2017 11:45:52
28,800
b150a4ff0e10a175d8271f1c94e760d04c4a000d
Removed an unnecessary copy of operations in the allocator. This was accidentally introduced during the changes to make the allocator support MULTI_ROLE frameworks. Review:
[ { "change_type": "MODIFY", "old_path": "src/master/allocator/mesos/hierarchical.cpp", "new_path": "src/master/allocator/mesos/hierarchical.cpp", "diff": "@@ -651,7 +651,7 @@ void HierarchicalAllocatorProcess::updateAllocation(\nconst FrameworkID& frameworkId,\nconst SlaveID& slaveId,\nconst Resource...
C++
Apache License 2.0
apache/mesos
Removed an unnecessary copy of operations in the allocator. This was accidentally introduced during the changes to make the allocator support MULTI_ROLE frameworks. Review: https://reviews.apache.org/r/56338
46,062
08.12.2016 03:38:21
28,800
4ebff5cd7455e8580e96a8695c6d7767de3d057e
Introduced an `os::dup` abstraction in stout. Review:
[ { "change_type": "MODIFY", "old_path": "3rdparty/stout/include/Makefile.am", "new_path": "3rdparty/stout/include/Makefile.am", "diff": "@@ -65,6 +65,7 @@ nobase_include_HEADERS = \\\nstout/os/chroot.hpp \\\nstout/os/close.hpp \\\nstout/os/constants.hpp \\\n+ stout/os/dup.hpp \\\nstout/os/environment...
C++
Apache License 2.0
apache/mesos
Introduced an `os::dup` abstraction in stout. Review: https://reviews.apache.org/r/54595
46,062
08.12.2016 11:02:39
28,800
e0a2b0bc36b5f6aae77dc570470d2d4291569ded
Introduced an `os::lseek` abstraction in stout. Review:
[ { "change_type": "MODIFY", "old_path": "3rdparty/stout/include/Makefile.am", "new_path": "3rdparty/stout/include/Makefile.am", "diff": "@@ -81,6 +81,7 @@ nobase_include_HEADERS = \\\nstout/os/killtree.hpp \\\nstout/os/linux.hpp \\\nstout/os/ls.hpp \\\n+ stout/os/lseek.hpp \\\nstout/os/mkdir.hpp \\\n...
C++
Apache License 2.0
apache/mesos
Introduced an `os::lseek` abstraction in stout. Review: https://reviews.apache.org/r/54592
46,062
13.12.2016 17:08:39
28,800
6590b3de987a72d22ef2c654ea13464240b38af1
Introduced an `os::pipe` abstraction to stout. Review:
[ { "change_type": "MODIFY", "old_path": "3rdparty/stout/include/Makefile.am", "new_path": "3rdparty/stout/include/Makefile.am", "diff": "@@ -90,6 +90,7 @@ nobase_include_HEADERS = \\\nstout/os/osx.hpp \\\nstout/os/pagesize.hpp \\\nstout/os/permissions.hpp \\\n+ stout/os/pipe.hpp \\\nstout/os/process....
C++
Apache License 2.0
apache/mesos
Introduced an `os::pipe` abstraction to stout. Review: https://reviews.apache.org/r/54762
46,062
06.02.2017 14:25:05
28,800
7ff8cd49e43eb33b9faeffce836a2276484848a7
Fixed incorrect `CHECK_EQ`s in `WindowsFD`. We store both the `CRT` and `HANDLE` in `WindowsFD` whether we construct from `CRT` or `HANDLE` by using `_get_osfhandle` and `_open_osfhandle`. Thus, accessing the `CRT` via `crt()` does not require that it be in the `CRT` state, but rather `CRT` or `HANDLE`, for example. Re...
[ { "change_type": "MODIFY", "old_path": "3rdparty/stout/include/stout/os/windows/fd.hpp", "new_path": "3rdparty/stout/include/stout/os/windows/fd.hpp", "diff": "@@ -93,13 +93,13 @@ public:\nint crt() const\n{\n- CHECK_EQ(FD_CRT, type());\n+ CHECK((type() == FD_CRT) || (type() == FD_HANDLE));\nreturn ...
C++
Apache License 2.0
apache/mesos
Fixed incorrect `CHECK_EQ`s in `WindowsFD`. We store both the `CRT` and `HANDLE` in `WindowsFD` whether we construct from `CRT` or `HANDLE` by using `_get_osfhandle` and `_open_osfhandle`. Thus, accessing the `CRT` via `crt()` does not require that it be in the `CRT` state, but rather `CRT` or `HANDLE`, for example. ...
46,062
06.02.2017 16:18:39
28,800
974581bdbb522e43ad07c6c78b6acb892d6c80a7
Fixed a few typos in `os/windows/fd.hpp`.
[ { "change_type": "MODIFY", "old_path": "3rdparty/stout/include/stout/os/windows/fd.hpp", "new_path": "3rdparty/stout/include/stout/os/windows/fd.hpp", "diff": "@@ -68,7 +68,7 @@ public:\n// IMPORTANT: The `HANDLE` here is expected to be file handles. Specifically,\n// `HANDLE`s returned by file API ...
C++
Apache License 2.0
apache/mesos
Fixed a few typos in `os/windows/fd.hpp`.
46,055
07.02.2017 16:54:24
-28,800
6726cd19cad23480d68f92fe3b6019b9452ab1e7
Add protobuf messages for OCI image spec. Review:
[ { "change_type": "ADD", "old_path": null, "new_path": "include/mesos/oci/spec.hpp", "diff": "+// Licensed to the Apache Software Foundation (ASF) under one\n+// or more contributor license agreements. See the NOTICE file\n+// distributed with this work for additional information\n+// regarding copyr...
C++
Apache License 2.0
apache/mesos
Add protobuf messages for OCI image spec. Review: https://reviews.apache.org/r/52349/
46,055
07.02.2017 16:54:35
-28,800
3681d61aa6469bdb0ea7955dd7c9680c0fb5496b
Implemented parse methods for OCI image spec. Review:
[ { "change_type": "MODIFY", "old_path": "include/mesos/oci/spec.hpp", "new_path": "include/mesos/oci/spec.hpp", "diff": "@@ -24,7 +24,29 @@ namespace spec {\nnamespace image {\nnamespace v1 {\n-// TODO(qianzhang): Add methods to parse OCI image spec\n+// Constant strings for OCI image media types:\n+...
C++
Apache License 2.0
apache/mesos
Implemented parse methods for OCI image spec. Review: https://reviews.apache.org/r/55139/
46,055
07.02.2017 16:54:56
-28,800
25f4feae487d53a701adb787fd8a2e5f6166b789
Added tests for parsing OCI image spec. Review:
[ { "change_type": "MODIFY", "old_path": "src/Makefile.am", "new_path": "src/Makefile.am", "diff": "@@ -2309,6 +2309,7 @@ mesos_tests_SOURCES = \\\ntests/containerizer/memory_test_helper.cpp \\\ntests/containerizer/mesos_containerizer_tests.cpp \\\ntests/containerizer/mesos_containerizer_paths_tests.c...
C++
Apache License 2.0
apache/mesos
Added tests for parsing OCI image spec. Review: https://reviews.apache.org/r/55140/
46,188
07.02.2017 09:13:14
28,800
08f4cdd0eaecd953c5daf5d447336d1a707b4612
Fixed a compile warning from clang.
[ { "change_type": "MODIFY", "old_path": "src/oci/spec.cpp", "new_path": "src/oci/spec.cpp", "diff": "@@ -46,7 +46,9 @@ Option<Error> validateDigest(const string& digest)\nOption<Error> validate(const ManifestList& manifestList)\n{\nif (manifestList.schemaversion() != 2) {\n- return Error(\"Incorrect ...
C++
Apache License 2.0
apache/mesos
Fixed a compile warning from clang.
46,136
07.02.2017 09:42:08
28,800
2c26d577203ecc0afc706d3484de80099512e1cb
Made `kill` not use pipelining in the default executor. The previous code used to pipeline all the `KILL_NESTED_CONTAINER` calls on the same connection. This change removes this and invokes `post` for each child container. This simplifies the code and makes it more readable. Review:
[ { "change_type": "MODIFY", "old_path": "src/launcher/default_executor.cpp", "new_path": "src/launcher/default_executor.cpp", "diff": "@@ -717,42 +717,17 @@ protected:\nCHECK_EQ(SUBSCRIBED, state);\n- process::http::connect(agent)\n- .onAny(defer(self(), &Self::_shutdown, lambda::_1));\n- }\n-\n- voi...
C++
Apache License 2.0
apache/mesos
Made `kill` not use pipelining in the default executor. The previous code used to pipeline all the `KILL_NESTED_CONTAINER` calls on the same connection. This change removes this and invokes `post` for each child container. This simplifies the code and makes it more readable. Review: https://reviews.apache.org/r/56267...
46,136
07.02.2017 09:42:14
28,800
2a45dc9effd664056d616bcdc843d3a4c1c26548
Modified active containers key to be `TaskID` in the default executor. We have more occurences of look up by `TaskID` then the other way around. Hence, modified the active containers hashmap to be keyed on `TaskID` instead. Review:
[ { "change_type": "MODIFY", "old_path": "src/launcher/default_executor.cpp", "new_path": "src/launcher/default_executor.cpp", "diff": "@@ -389,7 +389,7 @@ protected:\nContainerID containerId = pending.front();\ntasks[taskId] = task;\n- containers[containerId] = taskId;\n+ containers[taskId] = contain...
C++
Apache License 2.0
apache/mesos
Modified active containers key to be `TaskID` in the default executor. We have more occurences of look up by `TaskID` then the other way around. Hence, modified the active containers hashmap to be keyed on `TaskID` instead. Review: https://reviews.apache.org/r/56308/
46,136
07.02.2017 09:42:19
28,800
7458ba52dee908608f452e9adabca930656d39bf
Made `kill()` not invoke `shutdown()` in the default executor. This ensures that when we add support for the default executor launch multiple task groups, kill for a particular task should _only_ result in the killing of a task group and not the entire executor as was the case currently. Review:
[ { "change_type": "MODIFY", "old_path": "src/launcher/default_executor.cpp", "new_path": "src/launcher/default_executor.cpp", "diff": "@@ -92,6 +92,9 @@ private:\n// that a container is active but a connection for sending the\n// `WAIT_NESTED_CONTAINER` call has not been established yet.\nOption<Conn...
C++
Apache License 2.0
apache/mesos
Made `kill()` not invoke `shutdown()` in the default executor. This ensures that when we add support for the default executor launch multiple task groups, kill for a particular task should _only_ result in the killing of a task group and not the entire executor as was the case currently. Review: https://reviews.apach...
46,136
07.02.2017 09:42:22
28,800
cca928be81b765f4ec5fa0f038e9f4109145d5b4
Made the default executor launch multiple task groups. If a task fails or is explicitly killed by the scheduler, the default on termination policy kills the particular task group. The executor commits suicide when there are no active tasks. Review:
[ { "change_type": "MODIFY", "old_path": "src/launcher/default_executor.cpp", "new_path": "src/launcher/default_executor.cpp", "diff": "@@ -95,6 +95,9 @@ private:\n// Set to true if the child container is in the process of being killed.\nbool killing;\n+\n+ // Set to true if the task group is in the p...
C++
Apache License 2.0
apache/mesos
Made the default executor launch multiple task groups. If a task fails or is explicitly killed by the scheduler, the default on termination policy kills the particular task group. The executor commits suicide when there are no active tasks. Review: https://reviews.apache.org/r/56270/
46,165
07.02.2017 14:10:30
28,800
e1fbab8fb2920384715565ccf1b0d12a58447086
Fixed a regression in the execute CLI command. With the addition of `Resource.allocation_info` to support MULTI_ROLE frameworks, the execute helper has pulled in the updated `Resources` library and needs to be updated. We strip the allocation info to ensure that `execute` will work against both old and new masters. Rev...
[ { "change_type": "MODIFY", "old_path": "src/cli/execute.cpp", "new_path": "src/cli/execute.cpp", "diff": "@@ -475,7 +475,9 @@ protected:\nCHECK_EQ(SUBSCRIBED, state);\nforeach (const Offer& offer, offers) {\n+ // Strip the allocation from the offer since we use a single role.\nResources offered = of...
C++
Apache License 2.0
apache/mesos
Fixed a regression in the execute CLI command. With the addition of `Resource.allocation_info` to support MULTI_ROLE frameworks, the execute helper has pulled in the updated `Resources` library and needs to be updated. We strip the allocation info to ensure that `execute` will work against both old and new masters. R...
46,089
07.02.2017 14:35:40
28,800
e73a778dde10b46e3d03dfa643f7300abbaf951d
Consolidate update of allocations in `updateAllocation()`. We handle shared resources for `LAUNCH` operations separately in the `updateAllocation()` API to add additional copies of shared resources. But the updates to the allocations in the allocator and sorters can be consolidated together. Review:
[ { "change_type": "MODIFY", "old_path": "src/master/allocator/mesos/hierarchical.cpp", "new_path": "src/master/allocator/mesos/hierarchical.cpp", "diff": "@@ -673,10 +673,25 @@ void HierarchicalAllocatorProcess::updateAllocation(\nCHECK(frameworkSorters.contains(role));\nconst Owned<Sorter>& framewor...
C++
Apache License 2.0
apache/mesos
Consolidate update of allocations in `updateAllocation()`. We handle shared resources for `LAUNCH` operations separately in the `updateAllocation()` API to add additional copies of shared resources. But the updates to the allocations in the allocator and sorters can be consolidated together. Review: https://reviews.a...
46,181
06.02.2017 13:04:41
28,800
503294331012af4812aa9c461dee7a5249995f22
Fixed typos in names of test suite in `src/tests/role_tests.cpp`. Review:
[ { "change_type": "MODIFY", "old_path": "src/tests/role_tests.cpp", "new_path": "src/tests/role_tests.cpp", "diff": "@@ -697,7 +697,7 @@ TEST_F_TEMP_DISABLED_ON_WINDOWS(\n// This tests the parse function of roles.\n-TEST(RolesTest, Parsing)\n+TEST_F(RoleTest, Parsing)\n{\nvector<string> v = {\"abc\",...
C++
Apache License 2.0
apache/mesos
Fixed typos in names of test suite in `src/tests/role_tests.cpp`. Review: https://reviews.apache.org/r/56245/
46,181
06.02.2017 13:04:49
28,800
02a7cf2a66a97f1f16a8b7b05e2129876d99b375
Fixed a few typos. Review:
[ { "change_type": "MODIFY", "old_path": "src/authentication/cram_md5/authenticatee.cpp", "new_path": "src/authentication/cram_md5/authenticatee.cpp", "diff": "@@ -130,7 +130,7 @@ public:\n// NOTE: Some SASL mechanisms do not allow/enable \"proxying\",\n// i.e., authorization. Therefore, some mechanis...
C++
Apache License 2.0
apache/mesos
Fixed a few typos. Review: https://reviews.apache.org/r/56246/
46,181
06.02.2017 13:05:08
28,800
d7f4776235a13fdd4b2421b919071eca396df3f0
Switched to implicit roles in master quota tests. Using an explicit role list is deprecated; this change will also make it easier to write test cases for hierarchical roles. Review:
[ { "change_type": "MODIFY", "old_path": "src/tests/master_quota_tests.cpp", "new_path": "src/tests/master_quota_tests.cpp", "diff": "@@ -98,12 +98,11 @@ protected:\n\"cpus:2;gpus:0;mem:1024;disk:1024;ports:[31000-32000]\").get()));\n}\n- // Sets up the master flags with two roles and a short allocati...
C++
Apache License 2.0
apache/mesos
Switched to implicit roles in master quota tests. Using an explicit role list is deprecated; this change will also make it easier to write test cases for hierarchical roles. Review: https://reviews.apache.org/r/56247/
46,181
06.02.2017 13:05:15
28,800
bb97ff4466ce7c3db4b3c088e7224451c6a5f767
Replaced use of ".get()" in master quota tests with "->". Review:
[ { "change_type": "MODIFY", "old_path": "src/tests/master_quota_tests.cpp", "new_path": "src/tests/master_quota_tests.cpp", "diff": "@@ -180,7 +180,7 @@ TEST_F(MasterQuotaTest, SetForNonExistentRole)\ncreateRequestBody(\"non-existent-role\", quotaResources, FORCE));\nAWAIT_EXPECT_RESPONSE_STATUS_EQ(B...
C++
Apache License 2.0
apache/mesos
Replaced use of ".get()" in master quota tests with "->". Review: https://reviews.apache.org/r/56248/
46,181
06.02.2017 13:05:18
28,800
2d41532ee6d381f1928a18e0041da2460595c621
Cleaned up code style slightly in the DRF sorter. Review:
[ { "change_type": "MODIFY", "old_path": "src/master/allocator/sorter/drf/sorter.cpp", "new_path": "src/master/allocator/sorter/drf/sorter.cpp", "diff": "@@ -178,9 +178,8 @@ void DRFSorter::allocated(\nallocations[name].totals[resource.name()] += resource.scalar();\n}\n- // If the total resources have...
C++
Apache License 2.0
apache/mesos
Cleaned up code style slightly in the DRF sorter. Review: https://reviews.apache.org/r/56249/
46,181
06.02.2017 13:05:22
28,800
61d3f39029ed8a616ff165859f5350861bcc4748
Cleaned up headers in sorter and allocator metrics. Review:
[ { "change_type": "MODIFY", "old_path": "src/master/allocator/mesos/metrics.cpp", "new_path": "src/master/allocator/mesos/metrics.cpp", "diff": "// See the License for the specific language governing permissions and\n// limitations under the License.\n+#include \"master/allocator/mesos/metrics.hpp\"\...
C++
Apache License 2.0
apache/mesos
Cleaned up headers in sorter and allocator metrics. Review: https://reviews.apache.org/r/56250/
46,181
06.02.2017 13:05:25
28,800
f1df9b80229986d06ed6003b77ea95e95cb95ebe
Tightened assertions in sorter and allocator + fixed a mistaken comment. Review:
[ { "change_type": "MODIFY", "old_path": "src/master/allocator/mesos/hierarchical.cpp", "new_path": "src/master/allocator/mesos/hierarchical.cpp", "diff": "@@ -466,6 +466,7 @@ void HierarchicalAllocatorProcess::addSlave(\n// framework's role.\nCHECK(roleSorter->contains(role));\nCHECK(frameworkSorters...
C++
Apache License 2.0
apache/mesos
Tightened assertions in sorter and allocator + fixed a mistaken comment. Review: https://reviews.apache.org/r/56251/
46,177
07.02.2017 17:20:06
28,800
7319e014bbc3756d0b0599e919afb945351f6728
Fixed order of arguments in DockerArchive manifest format. The strings for `entrypoint` and `cmd` were substituted in the `Cmd` and `Entrypoint` fields respectively. Precisely the opposite of what is expected.
[ { "change_type": "MODIFY", "old_path": "src/tests/containerizer/docker_archive.hpp", "new_path": "src/tests/containerizer/docker_archive.hpp", "diff": "@@ -150,8 +150,8 @@ public:\n\"architecture\": \"amd64\",\n\"os\": \"linux\"\n})~\",\n- entrypoint,\n- cmd).get()).get();\n+ cmd,\n+ entrypoint).get...
C++
Apache License 2.0
apache/mesos
Fixed order of arguments in DockerArchive manifest format. The strings for `entrypoint` and `cmd` were substituted in the `Cmd` and `Entrypoint` fields respectively. Precisely the opposite of what is expected.
46,177
07.02.2017 13:54:15
28,800
954eaea71037bbbd19e324332faa33b213b6dcb5
Enabled flag parsing of the 'Environment' protobuf. This adds 'mesos::Environment' to the template specializations required for stout flags to parse the protobuf directly. Review:
[ { "change_type": "MODIFY", "old_path": "include/mesos/type_utils.hpp", "new_path": "include/mesos/type_utils.hpp", "diff": "@@ -261,6 +261,7 @@ std::ostream& operator<<(\nstd::ostream& stream,\nconst ContainerInfo& containerInfo);\n+std::ostream& operator<<(std::ostream& stream, const Environment& e...
C++
Apache License 2.0
apache/mesos
Enabled flag parsing of the 'Environment' protobuf. This adds 'mesos::Environment' to the template specializations required for stout flags to parse the protobuf directly. Review: https://reviews.apache.org/r/56409
46,056
20.01.2017 15:02:30
-3,600
948466912dce570f81778ffd9d166f43bf98a206
Updated the naming of unacknowledged tasks in executors for clarity. Review:
[ { "change_type": "MODIFY", "old_path": "src/launcher/default_executor.cpp", "new_path": "src/launcher/default_executor.cpp", "diff": "@@ -193,10 +193,11 @@ public:\ncase Event::ACKNOWLEDGED: {\n// Remove the corresponding update.\n- updates.erase(UUID::fromBytes(event.acknowledged().uuid()).get());\...
C++
Apache License 2.0
apache/mesos
Updated the naming of unacknowledged tasks in executors for clarity. Review: https://reviews.apache.org/r/55884
46,056
08.02.2017 17:35:30
-3,600
7a3df44eb6a59bd95604fd38a18dc745363d468d
Updated a comment in health checker library.
[ { "change_type": "MODIFY", "old_path": "src/checks/health_checker.hpp", "new_path": "src/checks/health_checker.hpp", "diff": "@@ -58,7 +58,7 @@ public:\n* @param taskId The TaskID of the target task.\n* @param taskPid The target task's pid used to enter the specified\n* namespaces.\n- * @param names...
C++
Apache License 2.0
apache/mesos
Updated a comment in health checker library.
46,157
08.02.2017 13:57:56
28,800
503a810c3dc68bacd393df1061a8281a0fab22aa
Fixed consistency in offer validation error messages. Review:
[ { "change_type": "MODIFY", "old_path": "src/master/validation.cpp", "new_path": "src/master/validation.cpp", "diff": "@@ -1376,7 +1376,7 @@ Try<SlaveID> getSlaveId(Master* master, const OfferID& offerId)\nreturn inverseOffer->slave_id();\n}\n- return Error(\"Offer id no longer valid\");\n+ return Er...
C++
Apache License 2.0
apache/mesos
Fixed consistency in offer validation error messages. Review: https://reviews.apache.org/r/56360/
46,159
08.02.2017 14:00:00
28,800
22a07afddd909c73c8719d46b1f6d06c40958df9
Added ProvisionerDockerLocalStoreTest.MissingLayer test. Added a test that verifies that the layer that is missing from the store will be pulled. Review:
[ { "change_type": "MODIFY", "old_path": "src/tests/containerizer/provisioner_docker_tests.cpp", "new_path": "src/tests/containerizer/provisioner_docker_tests.cpp", "diff": "@@ -238,6 +238,39 @@ TEST_F(ProvisionerDockerLocalStoreTest, MetadataManagerInitialization)\n}\n+// This test verifies that the ...
C++
Apache License 2.0
apache/mesos
Added ProvisionerDockerLocalStoreTest.MissingLayer test. Added a test that verifies that the layer that is missing from the store will be pulled. Review: https://reviews.apache.org/r/56284/
46,157
08.02.2017 14:00:57
28,800
dfe53db6ba6b7c53bcf0d769a412df4e99739795
Added validation for roles in ACCEPT call. For a multi-role framework, it may receive offers for different roles in that framework. However, we disallow multiple offers with different roles being accepted in single ACCEPT call. Review:
[ { "change_type": "MODIFY", "old_path": "src/master/master.cpp", "new_path": "src/master/master.cpp", "diff": "@@ -3621,9 +3621,6 @@ void Master::accept(\n// TODO(jieyu): Add metrics for non launch operations.\n}\n- // TODO(bmahler): MULTI_ROLE: Validate that the accepted offers\n- // do not mix allo...
C++
Apache License 2.0
apache/mesos
Added validation for roles in ACCEPT call. For a multi-role framework, it may receive offers for different roles in that framework. However, we disallow multiple offers with different roles being accepted in single ACCEPT call. Review: https://reviews.apache.org/r/54650/
46,082
08.02.2017 15:42:51
28,800
78614f52e932a2f638d3da0b627c8e81772e3930
Fixed error handling when writing to a cgroup control file. Due to internal buffering in ofstream, actual write to the underlying device may not be performed by the time of checking for failures. This patch flushes written data to ensure fail check uses actual value. Review:
[ { "change_type": "MODIFY", "old_path": "src/linux/cgroups.cpp", "new_path": "src/linux/cgroups.cpp", "diff": "@@ -395,7 +395,7 @@ static Try<Nothing> write(\n// NOTE: cgroups convention does not append a endln!\n// Recent kernels will cause operations to fail if 'endl' is\n// appended to the control...
C++
Apache License 2.0
apache/mesos
Fixed error handling when writing to a cgroup control file. Due to internal buffering in ofstream, actual write to the underlying device may not be performed by the time of checking for failures. This patch flushes written data to ensure fail check uses actual value. Review: https://reviews.apache.org/r/56080/
46,082
08.02.2017 15:43:01
28,800
973abd043701c06203060a4fafc723bbc002ee6a
Simplified cgroups control files reading and writing. Review:
[ { "change_type": "MODIFY", "old_path": "src/linux/cgroups.cpp", "new_path": "src/linux/cgroups.cpp", "diff": "@@ -350,25 +350,7 @@ static Try<string> read(\nconst string& control)\n{\nstring path = path::join(hierarchy, cgroup, control);\n-\n- // TODO(benh): Use os::read. Note that we do not use os:...
C++
Apache License 2.0
apache/mesos
Simplified cgroups control files reading and writing. Review: https://reviews.apache.org/r/56122/
46,063
09.02.2017 08:28:43
-28,800
748675352964ccfbf4e45d6cd7b4b4cacb1c58bf
Updated Suppress and Revive proto to support per role. Updated Suppress and Revive proto to support per role. Review:
[ { "change_type": "MODIFY", "old_path": "include/mesos/scheduler/scheduler.proto", "new_path": "include/mesos/scheduler/scheduler.proto", "diff": "@@ -283,6 +283,13 @@ message Call {\noptional Filters filters = 2;\n}\n+ // Revive offers for a specified role. If role is unset, the\n+ // `REVIVE` call ...
C++
Apache License 2.0
apache/mesos
Updated Suppress and Revive proto to support per role. Updated Suppress and Revive proto to support per role. Review: https://reviews.apache.org/r/56327/
46,063
09.02.2017 08:30:21
-28,800
348c06bb0f06c3229ba897fc7fd568473c5bd11b
Augmented master `Suppress` API to accept `Call::Suppress`. Augmented master `Suppress` API to accept `Call::Suppress`. Review:
[ { "change_type": "MODIFY", "old_path": "src/master/http.cpp", "new_path": "src/master/http.cpp", "diff": "@@ -918,7 +918,7 @@ Future<Response> Master::Http::scheduler(\nreturn Accepted();\ncase scheduler::Call::SUPPRESS:\n- master->suppress(framework);\n+ master->suppress(framework, call.suppress())...
C++
Apache License 2.0
apache/mesos
Augmented master `Suppress` API to accept `Call::Suppress`. Augmented master `Suppress` API to accept `Call::Suppress`. Review: https://reviews.apache.org/r/56328/
46,165
07.02.2017 18:28:57
28,800
8362e2f7b22bc929fa4ebace304ec533368dc71b
Inject resource allocation info in agent for received tasks. Per the agent needs to inject allocation info into tasks and executors coming from an old master to maintain the invariant that all tasks and executors on the agent have an allocation info. Review:
[ { "change_type": "MODIFY", "old_path": "src/slave/slave.cpp", "new_path": "src/slave/slave.cpp", "diff": "@@ -1561,7 +1561,7 @@ void Slave::runTask(\nvoid Slave::run(\nconst FrameworkInfo& frameworkInfo,\n- const ExecutorInfo& executorInfo,\n+ ExecutorInfo executorInfo,\nOption<TaskInfo> task,\nOpti...
C++
Apache License 2.0
apache/mesos
Inject resource allocation info in agent for received tasks. Per MESOS-7077, the agent needs to inject allocation info into tasks and executors coming from an old master to maintain the invariant that all tasks and executors on the agent have an allocation info. Review: https://reviews.apache.org/r/56422
46,165
07.02.2017 18:32:35
28,800
dc48ed29026bbb3f0329c2b22133ea15a49678ba
Added CHECKs to the agent to ensure allocation info is set. The agent has an invariant that all tasks and executors have an allocation info. This adds CHECKs to ensure this is the case. Review:
[ { "change_type": "MODIFY", "old_path": "src/slave/slave.cpp", "new_path": "src/slave/slave.cpp", "diff": "@@ -6418,6 +6418,13 @@ Executor* Framework::launchExecutor(\nconst ExecutorInfo& executorInfo,\nconst Option<TaskInfo>& taskInfo)\n{\n+ // Verify that Resource.AllocationInfo is set, if coming\n...
C++
Apache License 2.0
apache/mesos
Added CHECKs to the agent to ensure allocation info is set. The agent has an invariant that all tasks and executors have an allocation info. This adds CHECKs to ensure this is the case. Review: https://reviews.apache.org/r/56423
46,165
07.02.2017 18:33:13
28,800
d1c7fe31badf8910e0e7c97c6300ddbbf5c1693f
Removed a stale TODO in the agent code. This TODO was written before the code below it handled the optionality of the state `info` fields. Review:
[ { "change_type": "MODIFY", "old_path": "src/slave/slave.cpp", "new_path": "src/slave/slave.cpp", "diff": "@@ -5290,8 +5290,6 @@ Future<Nothing> Slave::recover(const Try<state::State>& state)\n// also must do this for MULTI_ROLE frameworks since they\n// may have tasks that were present before the fr...
C++
Apache License 2.0
apache/mesos
Removed a stale TODO in the agent code. This TODO was written before the code below it handled the optionality of the state `info` fields. Review: https://reviews.apache.org/r/56424
46,165
08.02.2017 16:29:43
28,800
91944b45815d44a4e27c2722f67dc4335e29b473
Cleaned up a for loop in the agent recovery code.
[ { "change_type": "MODIFY", "old_path": "src/slave/slave.cpp", "new_path": "src/slave/slave.cpp", "diff": "@@ -5295,17 +5295,15 @@ Future<Nothing> Slave::recover(const Try<state::State>& state)\nconst FrameworkInfo& frameworkInfo) {\nset<string> roles = protobuf::framework::getRoles(frameworkInfo);\n...
C++
Apache License 2.0
apache/mesos
Cleaned up a for loop in the agent recovery code.
46,103
08.02.2017 17:22:04
28,800
7c0be16d3fac03a4a6eecc1bc6231419b860f6ad
Made RESERVE operation validation multi-role aware. Review:
[ { "change_type": "MODIFY", "old_path": "src/master/master.cpp", "new_path": "src/master/master.cpp", "diff": "@@ -4023,7 +4023,7 @@ void Master::_accept(\n// Make sure this reserve operation is valid.\nOption<Error> error = validation::operation::validate(\n- operation.reserve(), principal, framewor...
C++
Apache License 2.0
apache/mesos
Made RESERVE operation validation multi-role aware. Review: https://reviews.apache.org/r/55461/