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,072
04.10.2019 18:14:49
14,400
83e262132c680a59aaf4a616db25f0bb2182f956
Track per-role and per-agent allocated resources in the allocator. This patch adds tracking of per-role allocated resources in the allocator's roles tree. Also, tracking of per-agent allocated resources is added to facilitate correct untracking of the role's allocated resources on agent removal. Review:
[ { "change_type": "MODIFY", "old_path": "src/master/allocator/mesos/hierarchical.cpp", "new_path": "src/master/allocator/mesos/hierarchical.cpp", "diff": "@@ -315,6 +315,11 @@ bool RoleTree::tryRemove(const std::string& role)\nbreak;\n}\n+ CHECK(current->allocatedScalars_.empty())\n+ << \"An empty ro...
C++
Apache License 2.0
apache/mesos
Track per-role and per-agent allocated resources in the allocator. This patch adds tracking of per-role allocated resources in the allocator's roles tree. Also, tracking of per-agent allocated resources is added to facilitate correct untracking of the role's allocated resources on agent removal. Review: https://revie...
46,072
04.10.2019 18:14:56
14,400
6d77d7784c41cc13eb856e337a2f7a77cf3d2554
Replaced removal+adding of quota metrics with updating them. This patch factor out the common code for updating quota guarantee and quota limit metrics, and replaces pairs of `process::metrics::remove()`/`process::metrics::add()` called for the same metric with calling `PushGauge::operator = ()`. This is a perequisite ...
[ { "change_type": "MODIFY", "old_path": "src/master/allocator/mesos/metrics.cpp", "new_path": "src/master/allocator/mesos/metrics.cpp", "diff": "@@ -43,6 +43,53 @@ namespace master {\nnamespace allocator {\nnamespace internal {\n+\n+template<class Quantities>\n+void QuotaMetrics::update(const string&...
C++
Apache License 2.0
apache/mesos
Replaced removal+adding of quota metrics with updating them. This patch factor out the common code for updating quota guarantee and quota limit metrics, and replaces pairs of `process::metrics::remove()`/`process::metrics::add()` called for the same metric with calling `PushGauge::operator = ()`. This is a perequisite...
46,072
04.10.2019 18:15:01
14,400
442acc772a38473bf16167379b98d0df126c3262
Added quota consumption metrics to the hierarchial allocator. Review:
[ { "change_type": "MODIFY", "old_path": "src/master/allocator/mesos/hierarchical.cpp", "new_path": "src/master/allocator/mesos/hierarchical.cpp", "diff": "@@ -340,6 +340,14 @@ bool RoleTree::tryRemove(const std::string& role)\n}\n+void RoleTree::updateQuotaConsumedMetric(const Role* role)\n+{\n+ if (...
C++
Apache License 2.0
apache/mesos
Added quota consumption metrics to the hierarchial allocator. Review: https://reviews.apache.org/r/71490/
46,072
04.10.2019 18:15:09
14,400
486646adf38ee1ed206d0d35331aa4263c952565
Added tests of metrics for tracking quota consumption. Review:
[ { "change_type": "MODIFY", "old_path": "src/Makefile.am", "new_path": "src/Makefile.am", "diff": "@@ -2622,6 +2622,7 @@ mesos_tests_SOURCES = \\\ntests/cluster.hpp \\\ntests/command_executor_tests.cpp \\\ntests/common_validation_tests.cpp \\\n+ tests/consumption_metrics_tests.cpp \\\ntests/container...
C++
Apache License 2.0
apache/mesos
Added tests of metrics for tracking quota consumption. Review: https://reviews.apache.org/r/71491/
46,072
04.10.2019 18:18:14
14,400
0166d4bac067b4deaf1c09a7ef72f017809b56a5
Introduced a role tree helper to modify a role and all its ancestors. Review:
[ { "change_type": "MODIFY", "old_path": "src/master/allocator/mesos/hierarchical.cpp", "new_path": "src/master/allocator/mesos/hierarchical.cpp", "diff": "@@ -354,16 +354,13 @@ void RoleTree::trackReservations(const Resources& resources)\nCHECK(Resources::isReserved(r));\nconst string& reservationRol...
C++
Apache License 2.0
apache/mesos
Introduced a role tree helper to modify a role and all its ancestors. Review: https://reviews.apache.org/r/71498/
46,148
23.09.2019 14:30:10
25,200
24ae038a2b1a205894bd074a798923c3eb04a5a1
Kept SlaveID in the Slave struct in the allocator. Review:
[ { "change_type": "MODIFY", "old_path": "src/master/allocator/mesos/hierarchical.hpp", "new_path": "src/master/allocator/mesos/hierarchical.hpp", "diff": "@@ -306,7 +306,8 @@ public:\nbool _activated,\nconst Resources& _total,\nconst hashmap<FrameworkID, Resources>& _allocated)\n- : info(_info),\n+ :...
C++
Apache License 2.0
apache/mesos
Kept SlaveID in the Slave struct in the allocator. Review: https://reviews.apache.org/r/71546
46,165
08.10.2019 23:47:52
14,400
0c5c0935fdad1345aa110252380d56207880b619
Added quota config validation for large numbers. Per large scalar values overflow and can crash the master. This patch imposes maximums for guarantees and limits well below the overflow point, to prevent this from happening. Review:
[ { "change_type": "MODIFY", "old_path": "src/master/quota.cpp", "new_path": "src/master/quota.cpp", "diff": "@@ -214,6 +214,63 @@ Option<Error> validate(const QuotaConfig& config)\nreturn Error(\"Invalid 'QuotaConfig.role': \" + error->message);\n}\n+ // Before we validate the scalars, we need to che...
C++
Apache License 2.0
apache/mesos
Added quota config validation for large numbers. Per MESOS-10008, large scalar values overflow and can crash the master. This patch imposes maximums for guarantees and limits well below the overflow point, to prevent this from happening. Review: https://reviews.apache.org/r/71595
46,165
08.10.2019 23:54:05
14,400
4cdef8c5c9db1050da7dc1cd81438ce57ede01f3
Added tests for validation of large quota scalars. Review:
[ { "change_type": "MODIFY", "old_path": "src/tests/master_quota_tests.cpp", "new_path": "src/tests/master_quota_tests.cpp", "diff": "@@ -538,6 +538,67 @@ TEST_F(MasterQuotaTest, UpdateQuotaMultipleRoles)\n}\n+TEST_F(MasterQuotaTest, UpdateQuotaTooLarge)\n+{\n+ TestAllocator<> allocator;\n+ EXPECT_CAL...
C++
Apache License 2.0
apache/mesos
Added tests for validation of large quota scalars. Review: https://reviews.apache.org/r/71596
46,165
09.10.2019 00:06:36
14,400
e9edd205a09fa10df2c6e36e42b7db7e0ad7a005
Rejected invalid quota configs from registry operation. The registry operation for updating quota was assuming that the quota configs were valid. This validates them and fails the operation if invalid. Note that the caller should be validating this already, but this serves as an extra guard. Review:
[ { "change_type": "MODIFY", "old_path": "src/master/quota.cpp", "new_path": "src/master/quota.cpp", "diff": "@@ -57,6 +57,24 @@ UpdateQuota::UpdateQuota(\nTry<bool> UpdateQuota::perform(\nRegistry* registry, hashset<SlaveID>* /*slaveIDs*/)\n{\n+ // Sanity check that we're not writing any invalid conf...
C++
Apache License 2.0
apache/mesos
Rejected invalid quota configs from registry operation. The registry operation for updating quota was assuming that the quota configs were valid. This validates them and fails the operation if invalid. Note that the caller should be validating this already, but this serves as an extra guard. Review: https://reviews.a...
46,165
09.10.2019 00:09:20
14,400
831499b058b69d4030c3a121cef81e02b22ca2f6
Added a registrar test that invalid quota configs are rejected. Now that invalid quota configs are rejected during the update quota operation, this test ensures it works as expected. Review:
[ { "change_type": "MODIFY", "old_path": "src/tests/registrar_tests.cpp", "new_path": "src/tests/registrar_tests.cpp", "diff": "@@ -73,6 +73,7 @@ using mesos::internal::log::Replica;\nusing std::cout;\nusing std::endl;\nusing std::map;\n+using std::pair;\nusing std::set;\nusing std::string;\nusing std...
C++
Apache License 2.0
apache/mesos
Added a registrar test that invalid quota configs are rejected. Now that invalid quota configs are rejected during the update quota operation, this test ensures it works as expected. Review: https://reviews.apache.org/r/71598
46,055
17.10.2019 17:41:10
-28,800
b5929429c9638d6c0d03db6d44ac673d67e49a8c
Improved logging in Docker store and registry puller. Review:
[ { "change_type": "MODIFY", "old_path": "src/slave/containerizer/mesos/provisioner/docker/registry_puller.cpp", "new_path": "src/slave/containerizer/mesos/provisioner/docker/registry_puller.cpp", "diff": "@@ -305,9 +305,8 @@ Future<Image> RegistryPullerProcess::_pull(\nport);\n}\n- VLOG(1) << \"Pulli...
C++
Apache License 2.0
apache/mesos
Improved logging in Docker store and registry puller. Review: https://reviews.apache.org/r/71629
46,165
21.10.2019 19:57:54
14,400
87bfb76640fbcd83ce1dc48e3ba62d00bb1a4613
Logged failed TLS reverse DNS lookups as warnings for 'legacy' scheme. These were getting logged at VLOG(2), whereas we want all networking related errors to be logged as warnings (or errors if appropriate). Review:
[ { "change_type": "MODIFY", "old_path": "3rdparty/libprocess/src/openssl.cpp", "new_path": "3rdparty/libprocess/src/openssl.cpp", "diff": "@@ -887,8 +887,8 @@ Try<Nothing> verify(\n}\nif (lookup.isError()) {\n- VLOG(2) << \"Could not determine hostname of peer: \"\n- << lookup.error();\n+ LOG(WARNING...
C++
Apache License 2.0
apache/mesos
Logged failed TLS reverse DNS lookups as warnings for 'legacy' scheme. These were getting logged at VLOG(2), whereas we want all networking related errors to be logged as warnings (or errors if appropriate). Review: https://reviews.apache.org/r/71643
46,185
23.10.2019 08:34:21
18,000
427b927a7eae048cf554297ead97b57e5488c13c
Fixed bad link The bintray link was incorrect. Now working correctly
[ { "change_type": "MODIFY", "old_path": "docs/binary-packages.md", "new_path": "docs/binary-packages.md", "diff": "@@ -13,7 +13,7 @@ Download and install the latest stable RPM binary from the [Bintray Repository](\n#bintray-mesos-el - packages by mesos from Bintray\n[bintray-mesos-el]\nname=bintray-m...
C++
Apache License 2.0
apache/mesos
Fixed bad link The bintray link was incorrect. Now working correctly
46,165
21.10.2019 19:19:58
14,400
06d8d438063a06cf2f50c6bfb7392ebe2818fd20
Avoid double reaping race in the command executor. Previously, it was possible for the command executor to miss the exit status of the subprocess since it performs its own reap and doesn't use the Subprocess::status. See Review:
[ { "change_type": "MODIFY", "old_path": "src/launcher/executor.cpp", "new_path": "src/launcher/executor.cpp", "diff": "@@ -413,7 +413,7 @@ protected:\ndelay(Seconds(1), self(), &Self::doReliableRegistration);\n}\n- static pid_t launchTaskSubprocess(\n+ static Subprocess launchTaskSubprocess(\nconst C...
C++
Apache License 2.0
apache/mesos
Avoid double reaping race in the command executor. Previously, it was possible for the command executor to miss the exit status of the subprocess since it performs its own reap and doesn't use the Subprocess::status. See MESOS-10007. Review: https://reviews.apache.org/r/71652
46,148
23.10.2019 16:44:03
25,200
e13929d62663015162db7e66c6600fe414d03ec3
Disabled test `AgentPendingOperationAfterMasterFailover`. Temporarily disabled flaky test `OperationReconciliationTest. AgentPendingOperationAfterMasterFailover`. See
[ { "change_type": "MODIFY", "old_path": "src/tests/operation_reconciliation_tests.cpp", "new_path": "src/tests/operation_reconciliation_tests.cpp", "diff": "@@ -780,7 +780,9 @@ TEST_P(OperationReconciliationTest, UnknownOperationUnknownAgent)\n// This test verifies that, after a master failover, reco...
C++
Apache License 2.0
apache/mesos
Disabled test `AgentPendingOperationAfterMasterFailover`. Temporarily disabled flaky test `OperationReconciliationTest. AgentPendingOperationAfterMasterFailover`. See MESOS-10014.
46,148
20.10.2019 21:54:08
25,200
69e92ae61ee352b3e0fbd7cfb577738ad66a7450
Added an benchmark for `allocator->UpdateAllocation()`. This benchmark evaluates the performance of `allocator->UpdateAllocation()` where the agent has various sizes of resource reservations. Review:
[ { "change_type": "MODIFY", "old_path": "src/tests/hierarchical_allocator_tests.cpp", "new_path": "src/tests/hierarchical_allocator_tests.cpp", "diff": "@@ -8367,6 +8367,215 @@ TEST_P(HierarchicalAllocator_BENCHMARK_Test, AllocatorBacklog)\n<< \" allocation runs\" << endl;\n}\n+\n+struct ResourcePara...
C++
Apache License 2.0
apache/mesos
Added an benchmark for `allocator->UpdateAllocation()`. This benchmark evaluates the performance of `allocator->UpdateAllocation()` where the agent has various sizes of resource reservations. Review: https://reviews.apache.org/r/71639
46,148
31.10.2019 09:44:19
25,200
76f75a827bb11908ede5cd571a398e42f8204212
Removed an unnecessary const expression capture in a lambda.
[ { "change_type": "MODIFY", "old_path": "src/tests/hierarchical_allocator_tests.cpp", "new_path": "src/tests/hierarchical_allocator_tests.cpp", "diff": "@@ -8451,7 +8451,7 @@ TEST_P(HierarchicalAllocator__BENCHMARK_WithResourceParam, UpdateAllocation)\n// \"parent_role/role-[random letters with child...
C++
Apache License 2.0
apache/mesos
Removed an unnecessary const expression capture in a lambda.
46,149
29.10.2019 12:41:30
-3,600
0273fbc2638c581528cc5819da2e0c9b1a9c235e
Added namespace qualifications for std algorithms. Several locations were relying on ADL to discover algorithms from the standard library namespace which was in turn relying on an implementation detail of protobuf, in particular the fact that `protobuf::internal::RepeatedPtrIterator` is derived from `std::iterator`. Th...
[ { "change_type": "MODIFY", "old_path": "src/common/protobuf_utils.cpp", "new_path": "src/common/protobuf_utils.cpp", "diff": "@@ -1375,7 +1375,7 @@ void addMinimumCapability(\nconst MasterInfo::Capability::Type& capability)\n{\nint capabilityIndex =\n- find_if(\n+ std::find_if(\ncapabilities->begin(...
C++
Apache License 2.0
apache/mesos
Added namespace qualifications for std algorithms. Several locations were relying on ADL to discover algorithms from the standard library namespace which was in turn relying on an implementation detail of protobuf, in particular the fact that `protobuf::internal::RepeatedPtrIterator` is derived from `std::iterator`. ...
46,165
01.11.2019 15:24:47
14,400
776b31c6658be234497218a9a33e3961075c83e6
Re-worked TODOs for the RecordIO encoder/decoder.
[ { "change_type": "MODIFY", "old_path": "3rdparty/stout/include/stout/recordio.hpp", "new_path": "3rdparty/stout/include/stout/recordio.hpp", "diff": "* other \"Record-IO\" implementations use a fixed-size header\n* of 4 bytes to directly encode an unsigned 32 bit length.\n*\n- * TODO(bmahler): Move ...
C++
Apache License 2.0
apache/mesos
Re-worked TODOs for the RecordIO encoder/decoder.
46,148
04.11.2019 17:10:24
28,800
fc0069ba639cb82c6bebb9893dc67caef7d81b50
Fixed a compilation issue due to const capture in a lambda. MSVC on Windows requires explicit capture of const expression while clang on Mac complains about such capture. This patch removes the const qualifier and capture the non-const variable so that both can be happy.
[ { "change_type": "MODIFY", "old_path": "src/tests/hierarchical_allocator_tests.cpp", "new_path": "src/tests/hierarchical_allocator_tests.cpp", "diff": "@@ -8449,9 +8449,9 @@ TEST_P(HierarchicalAllocator__BENCHMARK_WithResourceParam, UpdateAllocation)\n// We introduce a level of role hierarchy here. ...
C++
Apache License 2.0
apache/mesos
Fixed a compilation issue due to const capture in a lambda. MSVC on Windows requires explicit capture of const expression while clang on Mac complains about such capture. This patch removes the const qualifier and capture the non-const variable so that both can be happy.
46,057
07.11.2019 14:55:20
-3,600
c00595446f00ee4d139ee45f829644a512795ffd
Added 'nodiscard' attribute to some member functions of Resources. Added the `[[nodiscard]]` attribute to `Resources::pushReservation()` and `Resources::popReservation()`, in order to prevent mistakes by authors incorrectly assuming that these functions would modify the resources objects in place. Review:
[ { "change_type": "MODIFY", "old_path": "include/mesos/resources.hpp", "new_path": "include/mesos/resources.hpp", "diff": "@@ -523,11 +523,12 @@ public:\n// Returns a `Resources` object with the new reservation added to the back.\n// The new reservation must be a valid refinement of the current reser...
C++
Apache License 2.0
apache/mesos
Added 'nodiscard' attribute to some member functions of Resources. Added the `[[nodiscard]]` attribute to `Resources::pushReservation()` and `Resources::popReservation()`, in order to prevent mistakes by authors incorrectly assuming that these functions would modify the resources objects in place. Review: https://rev...
46,057
08.11.2019 13:57:16
-3,600
48d79c25f639d7cd79ca7a78c23ad0e680bcdcbb
Improved error reporting in 'Resources::pushReservation()'. Make sure to print the actual error message after an assertion failure in `Resources::pushReservations()`. Review:
[ { "change_type": "MODIFY", "old_path": "src/common/resources.cpp", "new_path": "src/common/resources.cpp", "diff": "@@ -1722,7 +1722,10 @@ Resources Resources::pushReservation(\nresourcesNoMutationWithoutExclusiveOwnership) {\nResource_ r_ = *resource_;\nr_.resource.add_reservations()->CopyFrom(rese...
C++
Apache License 2.0
apache/mesos
Improved error reporting in 'Resources::pushReservation()'. Make sure to print the actual error message after an assertion failure in `Resources::pushReservations()`. Review: https://reviews.apache.org/r/71722/
46,057
08.11.2019 14:01:13
-3,600
78b071c3e4f00f932ff5530b5fa97ea66b837ee9
Added 'source' field to operator reservation API. Added a new 'source' field to the operator API `ReserveResources` protobuf to prepare for the pending reservation update changes. Review:
[ { "change_type": "MODIFY", "old_path": "include/mesos/master/master.proto", "new_path": "include/mesos/master/master.proto", "diff": "@@ -154,6 +154,7 @@ message Call {\n// Reserve resources dynamically on a specific agent.\nmessage ReserveResources {\nrequired SlaveID slave_id = 1;\n+ repeated Reso...
C++
Apache License 2.0
apache/mesos
Added 'source' field to operator reservation API. Added a new 'source' field to the operator API `ReserveResources` protobuf to prepare for the pending reservation update changes. Review: https://reviews.apache.org/r/71679/
46,057
08.11.2019 14:02:31
-3,600
398a13e6fe8956d463a571e93551331dcfbdabeb
Added 'source' field to scheduler reservation API. Added a new 'source' field to the `Reserve` message in the scheduler reservation API. Review:
[ { "change_type": "MODIFY", "old_path": "include/mesos/mesos.proto", "new_path": "include/mesos/mesos.proto", "diff": "@@ -2053,6 +2053,7 @@ message Offer {\n}\nmessage Reserve {\n+ repeated Resource source = 2;\nrepeated Resource resources = 1;\n}\n" }, { "change_type": "MODIFY", "old_pa...
C++
Apache License 2.0
apache/mesos
Added 'source' field to scheduler reservation API. Added a new 'source' field to the `Reserve` message in the scheduler reservation API. Review: https://reviews.apache.org/r/71686/
46,057
08.11.2019 14:03:40
-3,600
fb37ddaa847b12a139e4fcb1d107a923e1355cff
Consolidated 'Master::authorizeReserveResources' overloads. Removed one overload of `authorizeReserveResources()` that was not being used anywhere. Review:
[ { "change_type": "MODIFY", "old_path": "src/master/master.cpp", "new_path": "src/master/master.cpp", "diff": "@@ -3752,16 +3752,6 @@ Future<bool> Master::authorizeTask(\nFuture<bool> Master::authorizeReserveResources(\nconst Offer::Operation::Reserve& reserve,\nconst Option<Principal>& principal)\n-...
C++
Apache License 2.0
apache/mesos
Consolidated 'Master::authorizeReserveResources' overloads. Removed one overload of `authorizeReserveResources()` that was not being used anywhere. Review: https://reviews.apache.org/r/71699/
46,057
08.11.2019 14:03:48
-3,600
231321559485ea4b6e3024b86c74914065521e45
Rejected scheduler calls that include reservation updates. Until reservation updates are implemented, ensure that calls making use of them are properly rejected. Review:
[ { "change_type": "MODIFY", "old_path": "src/master/master.cpp", "new_path": "src/master/master.cpp", "diff": "@@ -4484,6 +4484,30 @@ void Master::accept(\nforeach (Offer::Operation& operation, operations) {\nOption<Error> error = validateAndUpgradeResources(&operation);\n+\n+ // Additional operation...
C++
Apache License 2.0
apache/mesos
Rejected scheduler calls that include reservation updates. Until reservation updates are implemented, ensure that calls making use of them are properly rejected. Review: https://reviews.apache.org/r/71687/
46,057
08.11.2019 14:04:57
-3,600
c44b4fb3580d3ca5349168552e068a2343b91f61
Rejected operator API calls that include reservation updates. Review:
[ { "change_type": "MODIFY", "old_path": "src/master/http.cpp", "new_path": "src/master/http.cpp", "diff": "@@ -2005,9 +2005,16 @@ Future<Response> Master::Http::reserveResources(\nCHECK_EQ(mesos::master::Call::RESERVE_RESOURCES, call.type());\nconst SlaveID& slaveId = call.reserve_resources().slave_i...
C++
Apache License 2.0
apache/mesos
Rejected operator API calls that include reservation updates. Review: https://reviews.apache.org/r/71688/
46,057
08.11.2019 14:05:06
-3,600
8e742ebb72918ce349025fc6bf1ef03f2b3c7e4d
Added function to compute a common reservation ancestor. Added a new function `Resources::getReservationAncestor()` to compute a common reservation ancestor between two `Resources`. Review:
[ { "change_type": "MODIFY", "old_path": "include/mesos/resources.hpp", "new_path": "include/mesos/resources.hpp", "diff": "@@ -376,6 +376,20 @@ public:\n// E.g. MOUNT volume).\nstatic bool shrink(Resource* resource, const Value::Scalar& target);\n+ // Returns the most refined reserved resource that c...
C++
Apache License 2.0
apache/mesos
Added function to compute a common reservation ancestor. Added a new function `Resources::getReservationAncestor()` to compute a common reservation ancestor between two `Resources`. Review: https://reviews.apache.org/r/71690/
46,057
08.11.2019 14:06:16
-3,600
b368d897d83df2f261e01fa7583798d80d098052
Updated 'Master::Http::_reserve' to pass along new 'source' field. Updated 'Master::Http::_reserve()' to correctly set the new `source` field in the `Offer::Operation` created from operator API input. Review:
[ { "change_type": "MODIFY", "old_path": "src/master/http.cpp", "new_path": "src/master/http.cpp", "diff": "@@ -1914,51 +1914,78 @@ Future<Response> Master::Http::reserve(\nreturn BadRequest(\"Unable to decode query string: \" + decode.error());\n}\n- const hashmap<string, string>& values = decode.get...
C++
Apache License 2.0
apache/mesos
Updated 'Master::Http::_reserve' to pass along new 'source' field. Updated 'Master::Http::_reserve()' to correctly set the new `source` field in the `Offer::Operation` created from operator API input. Review: https://reviews.apache.org/r/71695/
46,057
08.11.2019 14:07:29
-3,600
1aedc02e5cf8ab2a5aea7c9ed8327139ca9c0f0e
Updated validation of 'Reserve' call. Updated `master::validation::operation::validate(Reserve&)` to account for the new `source` field in the reserve call, verifying that `source` and `resources` have a common reservation ancestor. Review:
[ { "change_type": "MODIFY", "old_path": "src/master/validation.cpp", "new_path": "src/master/validation.cpp", "diff": "@@ -2214,6 +2214,63 @@ Option<Error> validate(\nreturn Error(\"Invalid resources: \" + error->message);\n}\n+ error = resource::validate(reserve.source());\n+ if (error.isSome()) {\n...
C++
Apache License 2.0
apache/mesos
Updated validation of 'Reserve' call. Updated `master::validation::operation::validate(Reserve&)` to account for the new `source` field in the reserve call, verifying that `source` and `resources` have a common reservation ancestor. Review: https://reviews.apache.org/r/71696/
46,057
08.11.2019 14:08:40
-3,600
f1a9d7206c7f6fee8e435e8fbe8e69802b1e9388
Updated offer operation resource validation for reservation updates. Updated `validateAndUpgradeResources()` to also validate the `source` field in a reservation. Review:
[ { "change_type": "MODIFY", "old_path": "src/common/resources_utils.cpp", "new_path": "src/common/resources_utils.cpp", "diff": "@@ -618,6 +618,12 @@ Option<Error> validateAndUpgradeResources(Offer::Operation* operation)\nreturn error;\n}\n+ error = Resources::validate(operation->reserve().source());...
C++
Apache License 2.0
apache/mesos
Updated offer operation resource validation for reservation updates. Updated `validateAndUpgradeResources()` to also validate the `source` field in a reservation. Review: https://reviews.apache.org/r/71700/
46,057
08.11.2019 14:19:11
-3,600
1d225b4c0270f06b901f0fafd777a347aae921cd
Updated 'getResourceConversion()' for reservation updates. Updated the `getResourcesConversion()` function to correctly handle the `source` field in `RESERVE` operations. Review:
[ { "change_type": "MODIFY", "old_path": "src/common/resources_utils.cpp", "new_path": "src/common/resources_utils.cpp", "diff": "@@ -119,11 +119,20 @@ Try<vector<TResourceConversion>> getResourceConversions(\nreturn Error(\"Operation not supported\");\ncase TOperation::RESERVE: {\n- foreach (const TR...
C++
Apache License 2.0
apache/mesos
Updated 'getResourceConversion()' for reservation updates. Updated the `getResourcesConversion()` function to correctly handle the `source` field in `RESERVE` operations. Review: https://reviews.apache.org/r/71719/
46,057
08.11.2019 14:19:22
-3,600
b6bdc74c896303dc1775c68642023ee4513834b1
Added end-to-end test for operator API reservation updates. Added a new test to verify that reservations can be updated using the operator API. Review:
[ { "change_type": "MODIFY", "old_path": "src/tests/api_tests.cpp", "new_path": "src/tests/api_tests.cpp", "diff": "@@ -1439,6 +1439,150 @@ TEST_P(MasterAPITest, ReserveResources)\n}\n+// This test verifies that an operator can update existing reservation through\n+// the `RESERVE_RESOURCES` call.\n+T...
C++
Apache License 2.0
apache/mesos
Added end-to-end test for operator API reservation updates. Added a new test to verify that reservations can be updated using the operator API. Review: https://reviews.apache.org/r/71725/
46,060
13.11.2019 10:07:44
28,800
2a1c5d518b43be21673b2cfdf72fc2e60658a826
Allow `mesos task exec/attach` for any task_id the `/tasks` endpoint only list the first 100 available tasks. (See docs at http://mesos.apache.org/documentation/latest/endpoints/master/tasks/) With this patch `mesos task exec/attach` commands will work for clusters with more than 100 tasks. This closes
[ { "change_type": "MODIFY", "old_path": "src/python/cli_new/lib/cli/http.py", "new_path": "src/python/cli_new/lib/cli/http.py", "diff": "@@ -29,7 +29,7 @@ import cli\nfrom cli.exceptions import CLIException\n-def read_endpoint(addr, endpoint):\n+def read_endpoint(addr, endpoint, query=None):\n\"\"\"\...
C++
Apache License 2.0
apache/mesos
Allow `mesos task exec/attach` for any task_id the `/tasks` endpoint only list the first 100 available tasks. (See docs at http://mesos.apache.org/documentation/latest/endpoints/master/tasks/) With this patch `mesos task exec/attach` commands will work for clusters with more than 100 tasks. This closes #345
46,165
19.11.2019 16:25:04
18,000
a61dba64e92d3142c5e4e58d54e764ac1956f644
Corrected documentation for a missed TASK_DROPPED case. The first case for REASON_SLAVE_DISCONNECTED will return TASK_DROPPED, see: src/master/master.cpp#L4939-L4943
[ { "change_type": "MODIFY", "old_path": "docs/task-state-reasons.md", "new_path": "docs/task-state-reasons.md", "diff": "@@ -236,6 +236,9 @@ As of Mesos 1.4, the following reasons are being used.\n<code> REASON_SLAVE_DISCONNECTED\n</code></td><td> The agent on which the task was running disconnected,...
C++
Apache License 2.0
apache/mesos
Corrected documentation for a missed TASK_DROPPED case. The first case for REASON_SLAVE_DISCONNECTED will return TASK_DROPPED, see: https://github.com/apache/mesos/blob/1.9.0/ src/master/master.cpp#L4939-L4943
46,165
08.11.2019 16:11:20
28,800
4b355d84a3114c8fc8b9e20263321ff5b083e6da
Eliminate unnecessary body copying in http::Response constructor. This allows the caller to pass an rvalue reference to the body, without it being copied. Review:
[ { "change_type": "MODIFY", "old_path": "3rdparty/libprocess/include/process/http.hpp", "new_path": "3rdparty/libprocess/include/process/http.hpp", "diff": "@@ -608,11 +608,11 @@ struct Response\n}\nexplicit Response(\n- const std::string& _body,\n+ std::string _body,\nuint16_t _code,\nconst std::str...
C++
Apache License 2.0
apache/mesos
Eliminate unnecessary body copying in http::Response constructor. This allows the caller to pass an rvalue reference to the body, without it being copied. Review: https://reviews.apache.org/r/71747
46,165
08.11.2019 16:56:16
28,800
4f4dab961bd45ca444d13b831cdb2541dd10ced8
Improved performance of v1 operator API GetFrameworks call. This follow the same approach used in the GetAgents call; serializing directly to protobuf or json from the in-memory v0 state. Review:
[ { "change_type": "MODIFY", "old_path": "src/master/http.cpp", "new_path": "src/master/http.cpp", "diff": "@@ -1334,16 +1334,197 @@ Future<Response> Master::Http::getFrameworks(\n.then(defer(\nmaster->self(),\n[=](const Owned<ObjectApprovers>& approvers) -> Future<Response> {\n- mesos::master::Respon...
C++
Apache License 2.0
apache/mesos
Improved performance of v1 operator API GetFrameworks call. This follow the same approach used in the GetAgents call; serializing directly to protobuf or json from the in-memory v0 state. Review: https://reviews.apache.org/r/71751
46,165
08.11.2019 16:57:28
28,800
6ab835459a452e53fec8982a5aaab7e78094bbcb
Improved performance of v1 operator API GetExecutors call. This follow the same approach used in the GetAgents call; serializing directly to protobuf or json from the in-memory v0 state. Review:
[ { "change_type": "MODIFY", "old_path": "src/master/http.cpp", "new_path": "src/master/http.cpp", "diff": "@@ -1567,17 +1567,257 @@ Future<Response> Master::Http::getExecutors(\n.then(defer(\nmaster->self(),\n[=](const Owned<ObjectApprovers>& approvers) -> Response {\n- mesos::master::Response respon...
C++
Apache License 2.0
apache/mesos
Improved performance of v1 operator API GetExecutors call. This follow the same approach used in the GetAgents call; serializing directly to protobuf or json from the in-memory v0 state. Review: https://reviews.apache.org/r/71752
46,165
08.11.2019 16:58:47
28,800
d7dd4d0e8493331d7b7a21b504ebeab702ff06d5
Improved performance of v1 operator API GetTasks call. This follow the same approach used in the GetAgents call; serializing directly to protobuf or json from the in-memory v0 state. Review:
[ { "change_type": "MODIFY", "old_path": "src/master/http.cpp", "new_path": "src/master/http.cpp", "diff": "@@ -3691,17 +3691,307 @@ Future<Response> Master::Http::getTasks(\n.then(defer(\nmaster->self(),\n[=](const Owned<ObjectApprovers>& approvers) -> Response {\n- mesos::master::Response response;\...
C++
Apache License 2.0
apache/mesos
Improved performance of v1 operator API GetTasks call. This follow the same approach used in the GetAgents call; serializing directly to protobuf or json from the in-memory v0 state. Review: https://reviews.apache.org/r/71753
46,165
08.11.2019 17:00:37
28,800
469f2ebaf65b1642d1eb4a1df81abfc2c94889dd
Improved performance of v1 operator API GetMetrics call. This follow the same approach used in the GetAgents call; serializing directly to protobuf or json from the in-memory v0 state. Review:
[ { "change_type": "MODIFY", "old_path": "src/master/http.cpp", "new_path": "src/master/http.cpp", "diff": "@@ -2258,6 +2258,118 @@ Future<Response> Master::Http::getVersion(\n}\n+// NOTE: The `metrics` object provided as an argument must outlive\n+// the returned function, since the function captures...
C++
Apache License 2.0
apache/mesos
Improved performance of v1 operator API GetMetrics call. This follow the same approach used in the GetAgents call; serializing directly to protobuf or json from the in-memory v0 state. Review: https://reviews.apache.org/r/71755
46,057
22.11.2019 12:00:43
28,800
e52d0d1f25a91f9940bea4329eb5359373ee0ed0
Fixed memory leak in openssl verification function. When the hostname validation scheme was set to 'openssl', the `openssl::verify()` function would return without freeing a previously allocated `X509*` object. To fix the leak, a long-standing TODO to switch to RAII-based memory management for the certificate was resol...
[ { "change_type": "MODIFY", "old_path": "3rdparty/libprocess/src/openssl.cpp", "new_path": "3rdparty/libprocess/src/openssl.cpp", "diff": "@@ -841,8 +841,9 @@ Try<Nothing> verify(\n}\n// The X509 object must be freed if this call succeeds.\n- // TODO(jmlvanre): handle this better. How about RAII?\n- ...
C++
Apache License 2.0
apache/mesos
Fixed memory leak in openssl verification function. When the hostname validation scheme was set to 'openssl', the `openssl::verify()` function would return without freeing a previously allocated `X509*` object. To fix the leak, a long-standing TODO to switch to RAII-based memory management for the certificate was res...
46,057
27.11.2019 16:27:44
-3,600
1a6463ee923b7b6894abe2ba8143613c6b9a3929
Dont reject the word 'WIP' in commit titles. Changed gitlint rules to not reject the word 'WIP' in commit titles anymore, since we want to encourage placing this marker as visible as possible for WIP commits to prevent accidental merging of a commit that was not considered ready by the author. Review:
[ { "change_type": "MODIFY", "old_path": "support/gitlint", "new_path": "support/gitlint", "diff": "@@ -15,11 +15,11 @@ ignore=title-trailing-punctuation, T3, body-is-missing, B6, body-min-length\n[title-max-length]\nline-length=72\n-# [title-must-not-contain-word]\n+[title-must-not-contain-word]\n# C...
C++
Apache License 2.0
apache/mesos
Dont reject the word 'WIP' in commit titles. Changed gitlint rules to not reject the word 'WIP' in commit titles anymore, since we want to encourage placing this marker as visible as possible for WIP commits to prevent accidental merging of a commit that was not considered ready by the author. Review: https://reviews...
46,103
29.11.2019 08:49:34
-3,600
901cc9c572633c59b3130a8794ea4161b1720ba0
Used post-reservation refinement format in some operator API docs. Review:
[ { "change_type": "MODIFY", "old_path": "docs/operator-http-api.md", "new_path": "docs/operator-http-api.md", "diff": "@@ -1888,24 +1888,30 @@ Accept: application/json\n{\n\"type\": \"SCALAR\",\n\"name\": \"cpus\",\n- \"reservation\": {\n- \"principal\": \"my-principal\"\n- },\n- \"role\": \"role\",\...
C++
Apache License 2.0
apache/mesos
Used post-reservation refinement format in some operator API docs. Review: https://reviews.apache.org/r/71739/
46,103
29.11.2019 08:49:36
-3,600
5fcd25c70819f6bd3f51af86e4c51d7fd40f307a
Updated operator API documention to use rereservation format. Review:
[ { "change_type": "MODIFY", "old_path": "docs/operator-http-api.md", "new_path": "docs/operator-http-api.md", "diff": "@@ -1866,8 +1866,25 @@ Content-Type: application/json\n### RESERVE_RESOURCES\n-This call reserve resources dynamically on a specific agent. This call takes\n-`agent_id` and `resource...
C++
Apache License 2.0
apache/mesos
Updated operator API documention to use rereservation format. Review: https://reviews.apache.org/r/71741/
46,103
29.11.2019 09:27:30
-3,600
5c50403eb233991eaa8f83b5bc50eae2c33d5850
Fixed an incorrect resource mutation. `Resources::pushReservation` does not mutate the `Resources` it is invoked on; instead it returns its result which should then be used. This issue was identified by making `Resources::pushReservation` `nodiscard`. Review:
[ { "change_type": "MODIFY", "old_path": "src/tests/scheduler_tests.cpp", "new_path": "src/tests/scheduler_tests.cpp", "diff": "@@ -1232,9 +1232,8 @@ TEST_P(SchedulerTest, OperationFeedbackValidationNoResourceProviderCapability)\nconst v1::Offer& offer = offers->offers(0);\nv1::Resources resources = v...
C++
Apache License 2.0
apache/mesos
Fixed an incorrect resource mutation. `Resources::pushReservation` does not mutate the `Resources` it is invoked on; instead it returns its result which should then be used. This issue was identified by making `Resources::pushReservation` `nodiscard`. Review: https://reviews.apache.org/r/71732/
46,165
26.11.2019 15:01:46
18,000
3dda3622f5ed01e8c132dc5ca594b1f1ef51a298
Simplified V0 -> V1 direct serialization logic. There are higher level utility functions that can be used to make the code simpler and less error prone. Also, while not a bug, we should be using WriteBytes instead of WriteString for writing submessage bytes. Review:
[ { "change_type": "MODIFY", "old_path": "src/common/protobuf_utils.hpp", "new_path": "src/common/protobuf_utils.hpp", "diff": "@@ -66,6 +66,28 @@ struct Slave;\nnamespace protobuf {\n+// Modeled after WireFormatLite from protobuf, but to provide\n+// missing helpers.\n+class WireFormatLite2\n+{\n+pub...
C++
Apache License 2.0
apache/mesos
Simplified V0 -> V1 direct serialization logic. There are higher level utility functions that can be used to make the code simpler and less error prone. Also, while not a bug, we should be using WriteBytes instead of WriteString for writing submessage bytes. Review: https://reviews.apache.org/r/71823
46,165
25.11.2019 17:43:18
18,000
a15e5a3b5f5620b933ab709839a5ac5714e5c56c
Updated StreamingHttpConnection to allow writing serialized records. In order to more efficiently write the initial payload of the master's operator API event stream, we will need to directly serialize from the in-memory master state. To enable this, this patch updates the streaming http connection to allow writing an ...
[ { "change_type": "MODIFY", "old_path": "src/common/http.hpp", "new_path": "src/common/http.hpp", "diff": "@@ -168,6 +168,12 @@ struct StreamingHttpConnection\nreturn writer.write(::recordio::encode(record));\n}\n+ // Like the above send, but for already serialized data.\n+ bool send(const std::strin...
C++
Apache License 2.0
apache/mesos
Updated StreamingHttpConnection to allow writing serialized records. In order to more efficiently write the initial payload of the master's operator API event stream, we will need to directly serialize from the in-memory master state. To enable this, this patch updates the streaming http connection to allow writing an...
46,057
05.12.2019 12:21:12
-3,600
925ad30c0f3b249afe74bdeb1921c5fdbf1c5886
Added and to the 1.9.1 CHANGELOG.
[ { "change_type": "MODIFY", "old_path": "CHANGELOG", "new_path": "CHANGELOG", "diff": "@@ -14,6 +14,8 @@ Release Notes - Mesos - Version 1.9.1 (WIP)\n* [MESOS-9964] - Support destroying UCR containers in provisioning state.\n* [MESOS-9965] - Agent should not send `TASK_GONE_BY_OPERATOR` if the framew...
C++
Apache License 2.0
apache/mesos
Added MESOS-9968 and MESOS-9972 to the 1.9.1 CHANGELOG.
46,103
09.12.2019 09:19:22
-3,600
bc93e9c6f0f965225b5850d145ae5219c5ecedba
Added link to binary packages doc to the documentation landing doc. Review:
[ { "change_type": "MODIFY", "old_path": "docs/home.md", "new_path": "docs/home.md", "diff": "@@ -11,6 +11,7 @@ layout: documentation\n## Build / Installation\n* [Building](building.md) for basic instructions on compiling and installing Mesos.\n+* [Binary Packages](binary-packages.md) for how to use M...
C++
Apache License 2.0
apache/mesos
Added link to binary packages doc to the documentation landing doc. Review: https://reviews.apache.org/r/71644/
46,103
09.12.2019 15:28:58
-3,600
0bf3646174e02062abc5170e5f0c68376f1ced96
Used CMake's automatic parallelization in mesos-tidy setup. Since the `--parallel` flag for `cmake build` is only supported in more recent CMake versions we bump the installed version to the latest release. Review:
[ { "change_type": "MODIFY", "old_path": "support/mesos-tidy/Dockerfile", "new_path": "support/mesos-tidy/Dockerfile", "diff": "@@ -34,7 +34,7 @@ RUN apt-get update && \\\n#\n# TODO(abudnik): Skip this step when a newer version of CMake package is\n# available in OS repository.\n-RUN curl -sSL https:/...
C++
Apache License 2.0
apache/mesos
Used CMake's automatic parallelization in mesos-tidy setup. Since the `--parallel` flag for `cmake build` is only supported in more recent CMake versions we bump the installed version to the latest release. Review: https://reviews.apache.org/r/71852/
46,165
12.12.2019 17:50:10
18,000
b7a7f66ff8908bbefc8f2193ee93d8ae86ee516e
Updated /quota GET handler to use jsonify. This is not only more efficient (no temporary object construction), but it's now convention to prefer jsonify over json object construction.
[ { "change_type": "MODIFY", "old_path": "src/master/quota_handler.cpp", "new_path": "src/master/quota_handler.cpp", "diff": "@@ -351,7 +351,8 @@ Future<http::Response> Master::QuotaHandler::status(\nreturn _status(principal)\n.then([request](const QuotaStatus& status) -> Future<http::Response> {\n- r...
C++
Apache License 2.0
apache/mesos
Updated /quota GET handler to use jsonify. This is not only more efficient (no temporary object construction), but it's now convention to prefer jsonify over json object construction.
46,177
09.10.2019 16:35:05
25,200
4a92c709fbafd382a030b8e87decf8d56357b57b
SSL Socket: Allowed SSL without libevent. This removes the configure-time check on having both ENABLE_SSL and ENABLE_LIBEVENT set to true in order to have SSL sockets. The subsequent commits will add SSL support based on the existing poll socket class. This also updates the related documentation for SSL, including on ...
[ { "change_type": "MODIFY", "old_path": "cmake/CompilationConfigure.cmake", "new_path": "cmake/CompilationConfigure.cmake", "diff": "@@ -260,12 +260,6 @@ if (WIN32 AND ENABLE_LIBEVENT)\n\"See MESOS-8668 for context.\")\nendif ()\n-if (ENABLE_SSL AND (NOT ENABLE_LIBEVENT))\n- message(\n- FATAL_ERROR\n...
C++
Apache License 2.0
apache/mesos
SSL Socket: Allowed SSL without libevent. This removes the configure-time check on having both ENABLE_SSL and ENABLE_LIBEVENT set to true in order to have SSL sockets. The subsequent commits will add SSL support based on the existing poll socket class. This also updates the related documentation for SSL, including o...
46,177
13.11.2019 10:52:02
28,800
3376698bafe2587f51b3cee020e7e38bf674297d
Autotools: Libprocess: Allowed SSL without libevent. This removes the restriction requiring libevent to enable SSL support, specifically for libprocess built with autotools. Review:
[ { "change_type": "MODIFY", "old_path": "3rdparty/libprocess/configure.ac", "new_path": "3rdparty/libprocess/configure.ac", "diff": "@@ -1001,8 +1001,6 @@ libcrypto is required for an SSL-enabled build.\nif test \"x$with_bundled_libevent\" != \"xyes\"; then\nMESOS_HAVE_LIBEVENT_SSL()\nfi\n- else\n- A...
C++
Apache License 2.0
apache/mesos
Autotools: Libprocess: Allowed SSL without libevent. This removes the restriction requiring libevent to enable SSL support, specifically for libprocess built with autotools. Review: https://reviews.apache.org/r/71764
46,177
09.10.2019 16:37:45
25,200
7afabb53fe0b6c0bf416807b0a2bc7c074db20e3
SSL Socket: Stubbed out a SSL socket class. This creates some new files implementing the PollSocketImpl class, in preparation for implementing generic SSL sockets. The new class is used whenever SSL is enabled, but Libevent is not. Review:
[ { "change_type": "MODIFY", "old_path": "3rdparty/libprocess/Makefile.am", "new_path": "3rdparty/libprocess/Makefile.am", "diff": "@@ -251,11 +251,20 @@ if ENABLE_SSL\nlibprocess_la_SOURCES += \\\nsrc/jwt.cpp \\\nsrc/jwt_authenticator.cpp \\\n- src/posix/libevent/libevent_ssl_socket.cpp \\\n- src/pos...
C++
Apache License 2.0
apache/mesos
SSL Socket: Stubbed out a SSL socket class. This creates some new files implementing the PollSocketImpl class, in preparation for implementing generic SSL sockets. The new class is used whenever SSL is enabled, but Libevent is not. Review: https://reviews.apache.org/r/71660
46,177
23.10.2019 12:21:19
25,200
111f40a00cd8caa90e1a205116de5cf65719dce7
Added missing header guards for poll_socket.hpp. Review:
[ { "change_type": "MODIFY", "old_path": "3rdparty/libprocess/src/poll_socket.hpp", "new_path": "3rdparty/libprocess/src/poll_socket.hpp", "diff": "// See the License for the specific language governing permissions and\n// limitations under the License\n+#ifndef __PROCESS_POLL_SOCKET__\n+#define __PRO...
C++
Apache License 2.0
apache/mesos
Added missing header guards for poll_socket.hpp. Review: https://reviews.apache.org/r/71661
46,177
09.10.2019 18:20:01
25,200
4ecd463ed3c8c34176aeb814ccba599ce3944d61
SSL Socket: Windows: Guarded the SSL-only connect method. Since the new SSL socket class wraps the PollSocket, the Windows version of the PollSocket needs to be guarded for SSL-only methods. Review:
[ { "change_type": "MODIFY", "old_path": "3rdparty/libprocess/src/windows/poll_socket.cpp", "new_path": "3rdparty/libprocess/src/windows/poll_socket.cpp", "diff": "@@ -162,6 +162,16 @@ Future<Nothing> PollSocketImpl::connect(\n}\n+#ifdef USE_SSL_SOCKET\n+Future<Nothing> PollSocketImpl::connect(\n+ con...
C++
Apache License 2.0
apache/mesos
SSL Socket: Windows: Guarded the SSL-only connect method. Since the new SSL socket class wraps the PollSocket, the Windows version of the PollSocket needs to be guarded for SSL-only methods. Review: https://reviews.apache.org/r/71662
46,177
23.10.2019 18:01:35
25,200
a827b1ee2ec1528e54514b38e01873970e7cfaf6
SSL Socket: Implemented send/recv and shutdown. This completes a fully functional SSL socket, satisfying all the existing SSL socket tests in libprocess. Review:
[ { "change_type": "MODIFY", "old_path": "3rdparty/libprocess/src/ssl/openssl_socket.cpp", "new_path": "3rdparty/libprocess/src/ssl/openssl_socket.cpp", "diff": "@@ -299,7 +299,8 @@ Try<std::shared_ptr<SocketImpl>> OpenSSLSocketImpl::create(int_fd socket)\nOpenSSLSocketImpl::OpenSSLSocketImpl(int_fd s...
C++
Apache License 2.0
apache/mesos
SSL Socket: Implemented send/recv and shutdown. This completes a fully functional SSL socket, satisfying all the existing SSL socket tests in libprocess. Review: https://reviews.apache.org/r/71666
46,177
19.11.2019 15:01:44
28,800
f8f6720591931ee6a71e4aeffd50192f6fc96df1
SSL Socket: Implemented sendfile. This implements the SSL socket's sendfile method, which must read the file (unlike the zero-copy os::sendfile). This also moves a test exercising sendfile from process_tests.cpp into http_tests.cpp and parameterizes it for SSL and non-SSL. Review:
[ { "change_type": "MODIFY", "old_path": "3rdparty/libprocess/src/ssl/openssl_socket.cpp", "new_path": "3rdparty/libprocess/src/ssl/openssl_socket.cpp", "diff": "#include <openssl/ssl.h>\n#include <openssl/err.h>\n+#include <algorithm>\n#include <atomic>\n#include <queue>\n+#include <boost/shared_arra...
C++
Apache License 2.0
apache/mesos
SSL Socket: Implemented sendfile. This implements the SSL socket's sendfile method, which must read the file (unlike the zero-copy os::sendfile). This also moves a test exercising sendfile from process_tests.cpp into http_tests.cpp and parameterizes it for SSL and non-SSL. Review: https://reviews.apache.org/r/71790
46,177
17.12.2019 15:23:27
28,800
34bac34419ebec8441e69d3a5684381468352399
SSL Socket: Guarded against downgrade while unimplemented. The SSL downgrade feature present in our libevent-SSL socket is currently not supported on the plain-OpenSSL socket. For this reason, we make sure to check the related flag and prevent the related tests from running. Review:
[ { "change_type": "MODIFY", "old_path": "3rdparty/libprocess/src/openssl.cpp", "new_path": "3rdparty/libprocess/src/openssl.cpp", "diff": "@@ -550,8 +550,14 @@ void reinitialize()\n// Notify users of the 'SSL_SUPPORT_DOWNGRADE' flag that this\n// setting allows insecure connections.\nif (ssl_flags->s...
C++
Apache License 2.0
apache/mesos
SSL Socket: Guarded against downgrade while unimplemented. The SSL downgrade feature present in our libevent-SSL socket is currently not supported on the plain-OpenSSL socket. For this reason, we make sure to check the related flag and prevent the related tests from running. Review: https://reviews.apache.org/r/7192...
46,055
03.12.2019 21:36:01
-28,800
33a4f5883066a235ea45bcf1b8b287e77f74fbec
Added resource limits into `TaskInfo`. Review:
[ { "change_type": "MODIFY", "old_path": "include/mesos/mesos.proto", "new_path": "include/mesos/mesos.proto", "diff": "@@ -2283,6 +2283,9 @@ message TaskInfo {\n// It is the executor's responsibility to implement this, so it might not be\n// supported by all custom executors.\noptional DurationInfo m...
C++
Apache License 2.0
apache/mesos
Added resource limits into `TaskInfo`. Review: https://reviews.apache.org/r/71855
46,055
20.12.2019 09:42:50
-28,800
968ff95cd4ad51359e3fcb19c2c6f6984a941ae8
Added the `share_cgroups` field into `LinuxInfo`. Review:
[ { "change_type": "MODIFY", "old_path": "include/mesos/mesos.proto", "new_path": "include/mesos/mesos.proto", "diff": "@@ -3342,6 +3342,21 @@ message LinuxInfo {\n// note that we only support setting this field when the `ipc_mode` field is\n// set to `PRIVATE` otherwise the container launch will be r...
C++
Apache License 2.0
apache/mesos
Added the `share_cgroups` field into `LinuxInfo`. Review: https://reviews.apache.org/r/71931
46,055
03.12.2019 21:36:50
-28,800
4de6f2698c6a0a79cc3bdc254f938a4c4ee65160
Added resource limits into `ContainerConfig`. Review:
[ { "change_type": "MODIFY", "old_path": "include/mesos/slave/containerizer.proto", "new_path": "include/mesos/slave/containerizer.proto", "diff": "@@ -136,11 +136,14 @@ message ContainerConfig {\n// same across all fields.\noptional ContainerInfo container_info = 12;\n- // Resources associated with t...
C++
Apache License 2.0
apache/mesos
Added resource limits into `ContainerConfig`. Review: https://reviews.apache.org/r/71856
46,143
03.01.2020 17:26:51
21,600
598726423731f65d4b17a6543970f74fa876038b
Removed the link to mesos.slackarchive.io slackarchive.io is no longer active. Also, since we upgraded to Slack's standard plan, archiving is built-in to Slack.
[ { "change_type": "MODIFY", "old_path": "site/source/community.html.md", "new_path": "site/source/community.html.md", "diff": "@@ -41,8 +41,6 @@ layout: community_section\n<p>To request an invite for slack please click <a href=\"https://mesos-slackin.herokuapp.com\">here</a>.</p>\n- <p>All slack comm...
C++
Apache License 2.0
apache/mesos
Removed the link to mesos.slackarchive.io slackarchive.io is no longer active. Also, since we upgraded to Slack's standard plan, archiving is built-in to Slack.
46,103
06.01.2020 14:08:35
-3,600
0ec5d91e9f89e078d2cb851c733d13ea152e6fe6
Made sure all targets are build for cmake `tests` target. This target not only contains dependencies for the `test` target (which actually exercises the tests), but for all build dependencies so we can make sure the targets still build. Review:
[ { "change_type": "MODIFY", "old_path": "src/tests/CMakeLists.txt", "new_path": "src/tests/CMakeLists.txt", "diff": "@@ -332,7 +332,8 @@ if (NOT WIN32)\nmesos-local\nmesos-log\nmesos-logrotate-logger\n- mesos-master)\n+ mesos-master\n+ mesos-resolve)\n# The tests require all the test modules. These a...
C++
Apache License 2.0
apache/mesos
Made sure all targets are build for cmake `tests` target. This target not only contains dependencies for the `test` target (which actually exercises the tests), but for all build dependencies so we can make sure the targets still build. Review: https://reviews.apache.org/r/71717/
46,072
06.01.2020 13:46:34
18,000
d94d047c4b25b8b1e8fdf1a547e62fc6e4fbf53a
Moved creating authorization Object out of Master::authorizeFramework. Review:
[ { "change_type": "MODIFY", "old_path": "src/master/authorization.cpp", "new_path": "src/master/authorization.cpp", "diff": "@@ -38,6 +38,29 @@ ActionObject ActionObject::taskLaunch(\n}\n+ActionObject ActionObject::frameworkRegistration(\n+ const FrameworkInfo& frameworkInfo)\n+{\n+ Object object;\n+...
C++
Apache License 2.0
apache/mesos
Moved creating authorization Object out of Master::authorizeFramework. Review: https://reviews.apache.org/r/71860/
46,103
07.01.2020 13:19:04
-3,600
ddf59b8b99b95fe3dc0e862f36dfeed2c0fd287a
Added iteration support to stout's Path. Review:
[ { "change_type": "MODIFY", "old_path": "3rdparty/stout/include/stout/path.hpp", "new_path": "3rdparty/stout/include/stout/path.hpp", "diff": "#include <utility>\n#include <vector>\n+#include <glog/logging.h>\n+\n#include <stout/stringify.hpp>\n#include <stout/strings.hpp>\n@@ -379,6 +381,89 @@ publi...
C++
Apache License 2.0
apache/mesos
Added iteration support to stout's Path. Review: https://reviews.apache.org/r/71878/
46,103
07.01.2020 13:19:26
-3,600
b32dd46549e8bd2761e18e0fae69f38858279ea9
Allowed specifying path separator in a `path::join` overload. Review:
[ { "change_type": "MODIFY", "old_path": "3rdparty/stout/include/stout/path.hpp", "new_path": "3rdparty/stout/include/stout/path.hpp", "diff": "@@ -134,7 +134,9 @@ inline std::string join(\n}\n-inline std::string join(const std::vector<std::string>& paths)\n+inline std::string join(\n+ const std::vect...
C++
Apache License 2.0
apache/mesos
Allowed specifying path separator in a `path::join` overload. Review: https://reviews.apache.org/r/71881/
46,103
07.01.2020 13:19:31
-3,600
12e4ee81599f1b696f501901d246002310dcb9c1
Added a stout function to compute relative paths. Review:
[ { "change_type": "MODIFY", "old_path": "3rdparty/stout/include/stout/path.hpp", "new_path": "3rdparty/stout/include/stout/path.hpp", "diff": "@@ -515,4 +515,72 @@ inline std::ostream& operator<<(\nreturn stream << path.string();\n}\n+\n+namespace path {\n+\n+// Compute path of `path` relative to `ba...
C++
Apache License 2.0
apache/mesos
Added a stout function to compute relative paths. Review: https://reviews.apache.org/r/71882/
46,057
07.01.2020 13:30:58
-3,600
9d9d97c607359f5d2df95f6ef955054d80d130d1
Added support for deprecated attribute to stout. Added support for the [[deprecated]] attribute to stout. Review:
[ { "change_type": "MODIFY", "old_path": "3rdparty/stout/include/stout/attributes.hpp", "new_path": "3rdparty/stout/include/stout/attributes.hpp", "diff": "# define STOUT_HAS_CPP_ATTRIBUTE(x) 0\n#endif\n+\n// We unconditionally require compiler support for `noreturn`,\n// both for legacy reasons and b...
C++
Apache License 2.0
apache/mesos
Added support for deprecated attribute to stout. Added support for the [[deprecated]] attribute to stout. Review: https://reviews.apache.org/r/71960/
46,057
07.01.2020 13:31:16
-3,600
0e8b96ce90980e47adff9ecc5d7b1d31a688727b
Added deprecated absolute() function for backwards compatibility. Review:
[ { "change_type": "MODIFY", "old_path": "3rdparty/stout/include/stout/path.hpp", "new_path": "3rdparty/stout/include/stout/path.hpp", "diff": "#include <glog/logging.h>\n+#include <stout/attributes.hpp>\n#include <stout/stringify.hpp>\n#include <stout/strings.hpp>\n@@ -194,6 +195,11 @@ inline bool is...
C++
Apache License 2.0
apache/mesos
Added deprecated absolute() function for backwards compatibility. Review: https://reviews.apache.org/r/71961/
46,057
27.11.2019 12:37:37
-3,600
af676fd6f967a4d7ce18f4cccaf26711e3bd608c
Added 'issocket()' helper to stout. Added a new helper 'issocket()' that tells whether a given file is a socket or not. Review:
[ { "change_type": "MODIFY", "old_path": "3rdparty/stout/include/stout/os/posix/stat.hpp", "new_path": "3rdparty/stout/include/stout/os/posix/stat.hpp", "diff": "@@ -114,6 +114,15 @@ inline bool isfile(\n}\n+inline bool issocket(\n+ const std::string& path,\n+ const FollowSymlink follow = FollowSymlin...
C++
Apache License 2.0
apache/mesos
Added 'issocket()' helper to stout. Added a new helper 'issocket()' that tells whether a given file is a socket or not. Review: https://reviews.apache.org/r/71832
46,072
07.01.2020 12:10:31
18,000
fb97080ba53e6387779c37b18a42c8375969493c
Moved creating authz Object out of Master::authorizeResizeVolume. Review:
[ { "change_type": "MODIFY", "old_path": "src/master/authorization.cpp", "new_path": "src/master/authorization.cpp", "diff": "#include \"master/authorization.hpp\"\nusing std::ostream;\n+using std::string;\nnamespace mesos {\nnamespace authorization {\n+ActionObject ActionObject::fromResourceWithLegac...
C++
Apache License 2.0
apache/mesos
Moved creating authz Object out of Master::authorizeResizeVolume. Review: https://reviews.apache.org/r/71861/
46,072
07.01.2020 12:27:54
18,000
fd0b7618312aedbbf77aacc2f9b2524b1ef18f15
Moved creating authorization Object out of Master::authorize*Disk. Review:
[ { "change_type": "MODIFY", "old_path": "src/master/authorization.cpp", "new_path": "src/master/authorization.cpp", "diff": "@@ -116,6 +116,65 @@ ActionObject ActionObject::shrinkVolume(\n}\n+Try<ActionObject> ActionObject::createDisk(\n+ const Offer::Operation::CreateDisk& createDisk)\n+{\n+ auto ac...
C++
Apache License 2.0
apache/mesos
Moved creating authorization Object out of Master::authorize*Disk. Review: https://reviews.apache.org/r/71862/
46,072
07.01.2020 12:56:53
18,000
b4c705fb884b23e7a016b873aca6369a26eaa32a
Moved creating authorization Object out of Master::authorize*Volume. Review:
[ { "change_type": "MODIFY", "old_path": "src/master/authorization.cpp", "new_path": "src/master/authorization.cpp", "diff": "using std::ostream;\nusing std::string;\n-\n+using std::vector;\nnamespace mesos {\nnamespace authorization {\n@@ -97,6 +97,62 @@ string getReservationRole(const Resource& reso...
C++
Apache License 2.0
apache/mesos
Moved creating authorization Object out of Master::authorize*Volume. Review: https://reviews.apache.org/r/71863/
46,072
07.01.2020 13:42:17
18,000
ec2d1cb1f291b6ffa4e814151ad4a82a0daa950a
Moved creating authorization Object out of Master::authorize*reserve. NOTE: This patch also partially addresses issue by modifying the logic of authorizing UNRESERVE operations. Now, if some reservations have no principal, both authorization of UNRESERVE_RESOURCES for ANY object and authorizations for unreserving all r...
[ { "change_type": "MODIFY", "old_path": "src/master/authorization.cpp", "new_path": "src/master/authorization.cpp", "diff": "@@ -23,6 +23,8 @@ using std::ostream;\nusing std::string;\nusing std::vector;\n+using google::protobuf::RepeatedPtrField;\n+\nnamespace mesos {\nnamespace authorization {\n@@ -...
C++
Apache License 2.0
apache/mesos
Moved creating authorization Object out of Master::authorize*reserve. NOTE: This patch also partially addresses MESOS-9562 issue by modifying the logic of authorizing UNRESERVE operations. Now, if some reservations have no principal, both authorization of UNRESERVE_RESOURCES for ANY object and authorizations for unres...
46,072
07.01.2020 14:00:43
18,000
e5342fd00405551022984bf8d4e0b541e369c2e1
Moved creating authorization Object out of Master::authorizeSlave. Review:
[ { "change_type": "MODIFY", "old_path": "src/master/authorization.cpp", "new_path": "src/master/authorization.cpp", "diff": "@@ -77,6 +77,30 @@ ActionObject ActionObject::frameworkRegistration(\n}\n+vector<ActionObject> ActionObject::agentRegistration(\n+ const SlaveInfo& slaveInfo)\n+{\n+ vector<Act...
C++
Apache License 2.0
apache/mesos
Moved creating authorization Object out of Master::authorizeSlave. Review: https://reviews.apache.org/r/71865/
46,057
08.01.2020 12:16:14
-3,600
752b6f24c6682c949526cc3e27a704b7383e5fa6
Added special case to stout's handling of C++ attributes. Added a special case for the `[[deprecated]]` attribute to handle configurations where clang claims to support this attribute but also emits a warning that it should not be used. Review:
[ { "change_type": "MODIFY", "old_path": "3rdparty/stout/include/stout/attributes.hpp", "new_path": "3rdparty/stout/include/stout/attributes.hpp", "diff": "# define STOUT_NORETURN __attribute__((noreturn))\n#endif\n-\n// Non-namespaced version for backwards compatibility.\n#define NORETURN STOUT_NORET...
C++
Apache License 2.0
apache/mesos
Added special case to stout's handling of C++ attributes. Added a special case for the `[[deprecated]]` attribute to handle configurations where clang claims to support this attribute but also emits a warning that it should not be used. Review: https://reviews.apache.org/r/71971
46,103
02.12.2019 13:44:40
-3,600
9c0689fbd55a04a70c01555f6b0d893e5fb2ab51
Constructed `HttpEvent` from owning instead of raw pointers. Review:
[ { "change_type": "MODIFY", "old_path": "3rdparty/libprocess/include/process/event.hpp", "new_path": "3rdparty/libprocess/include/process/event.hpp", "diff": "@@ -142,10 +142,10 @@ struct MessageEvent : Event\nstruct HttpEvent : Event\n{\nHttpEvent(\n- http::Request* _request,\n- Promise<http::Respon...
C++
Apache License 2.0
apache/mesos
Constructed `HttpEvent` from owning instead of raw pointers. Review: https://reviews.apache.org/r/71853
46,211
10.01.2020 13:20:45
-3,600
5d05696715a66c752fd2b0397ecd79686944c82c
Added wargaming.net to the Powered By Mesos Page. Wargaming uses Mesos clusters for at least 4 years. This closes
[ { "change_type": "MODIFY", "old_path": "docs/powered-by-mesos.md", "new_path": "docs/powered-by-mesos.md", "diff": "@@ -122,6 +122,7 @@ layout: documentation\n* [Verizon Labs](https://www.verizon.com/about/our-company/what-we-do)\n* [Viadeo](http://www.viadeo.com)\n* [Virdata](http://www.virdata.com...
C++
Apache License 2.0
apache/mesos
Added wargaming.net to the Powered By Mesos Page. Wargaming uses Mesos clusters for at least 4 years. This closes #348
46,057
25.11.2019 15:59:27
-3,600
998c2e2cdfb5c79e611a3129a708eac661daa4b7
Added support for new 'http+unix' URL scheme in libprocess. Added support for a new 'http+unix' URL scheme, to denote resources accessible by HTTP connections over unix domain sockets. The encoding looks like http+unix://<url-encoded filesystem path>/<http path> optionally followed by query and fragment sections. Revie...
[ { "change_type": "MODIFY", "old_path": "3rdparty/libprocess/include/process/http.hpp", "new_path": "3rdparty/libprocess/include/process/http.hpp", "diff": "@@ -55,8 +55,9 @@ namespace http {\nenum class Scheme {\nHTTP,\n+ HTTP_UNIX,\n#ifdef USE_SSL_SOCKET\n- HTTPS\n+ HTTPS,\n#endif\n};\n@@ -130,6 +1...
C++
Apache License 2.0
apache/mesos
Added support for new 'http+unix' URL scheme in libprocess. Added support for a new 'http+unix' URL scheme, to denote resources accessible by HTTP connections over unix domain sockets. The encoding looks like http+unix://<url-encoded filesystem path>/<http path> optionally followed by query and fragment section...
46,057
27.11.2019 12:38:44
-3,600
f2ba621a6b6c48205f885007aa09d6c674de0e91
Created unix domain socket on agent startup. Added agent code to check whether domain socket support is enabled, and if so to create or open the socket at MESOS_DOMAIN_SOCKET_LOCATION. Review:
[ { "change_type": "MODIFY", "old_path": "src/Makefile.am", "new_path": "src/Makefile.am", "diff": "@@ -1067,6 +1067,7 @@ libmesos_no_3rdparty_la_SOURCES += \\\ncommon/build.hpp \\\ncommon/command_utils.cpp \\\ncommon/command_utils.hpp \\\n+ common/domain_sockets.hpp \\\ncommon/future_tracker.hpp \\\n...
C++
Apache License 2.0
apache/mesos
Created unix domain socket on agent startup. Added agent code to check whether domain socket support is enabled, and if so to create or open the socket at MESOS_DOMAIN_SOCKET_LOCATION. Review: https://reviews.apache.org/r/71833
46,057
25.11.2019 16:02:52
-3,600
62829583bccbd4ed8c0360b70e2ae084acaef061
Made the default executors connect via domain sockets if available. Added support for the `MESOS_DOMAIN_SOCKET` environment variable to the default executor. If this variable is present, the executor will use the specified domain socket to connect to the agent, as opposed to the IP address encoded in the agent PID. Rev...
[ { "change_type": "MODIFY", "old_path": "src/executor/executor.cpp", "new_path": "src/executor/executor.cpp", "diff": "#include <stout/unreachable.hpp>\n#include <stout/uuid.hpp>\n+#include \"common/domain_sockets.hpp\"\n#include \"common/http.hpp\"\n#include \"common/recordio.hpp\"\n#include \"commo...
C++
Apache License 2.0
apache/mesos
Made the default executors connect via domain sockets if available. Added support for the `MESOS_DOMAIN_SOCKET` environment variable to the default executor. If this variable is present, the executor will use the specified domain socket to connect to the agent, as opposed to the IP address encoded in the agent PID. R...
46,057
09.01.2020 15:43:29
-3,600
b73965de9874559c02bed42cd597e6ec678a461d
Added support for systemd socket activation API. Added support for the systemd socket activation api, that allows systemd to pass listening file descriptors to a given service. Review:
[ { "change_type": "MODIFY", "old_path": "src/linux/systemd.cpp", "new_path": "src/linux/systemd.cpp", "diff": "#include \"linux/systemd.hpp\"\n+#include <algorithm>\n#include <string>\n#include <vector>\n#include <stout/os/realpath.hpp>\n+#include <stout/flags/parse.hpp>\n+\n#include \"linux/cgroups....
C++
Apache License 2.0
apache/mesos
Added support for systemd socket activation API. Added support for the systemd socket activation api, that allows systemd to pass listening file descriptors to a given service. Review: https://reviews.apache.org/r/71976
46,057
09.01.2020 15:48:48
-3,600
8a9eb868ff3979df1cb68ebf56cb451b411e06a9
Added systemd support to domain socket agent flag. Added the ability to specify a unix domain socket as `systemd:<identifier>` for the `--domain_socket_location` agent flag. This will instruct the agent to expect the domain socket being passed by systemd with the specified name. Review:
[ { "change_type": "MODIFY", "old_path": "src/slave/flags.cpp", "new_path": "src/slave/flags.cpp", "diff": "@@ -988,10 +988,12 @@ mesos::internal::slave::Flags::Flags()\nadd(&Flags::domain_socket_location,\n\"domain_socket_location\",\n\"Location on the host filesystem of the domain socket used for\\n...
C++
Apache License 2.0
apache/mesos
Added systemd support to domain socket agent flag. Added the ability to specify a unix domain socket as `systemd:<identifier>` for the `--domain_socket_location` agent flag. This will instruct the agent to expect the domain socket being passed by systemd with the specified name. Review: https://reviews.apache.org/r/...
46,103
13.01.2020 10:24:05
-3,600
5648764c47cc151dccbe0dc6ec391987699aec5d
Properly initialized dummy variable. Since `Try` does not have a default constructor we need to provide a dummy value. Review:
[ { "change_type": "MODIFY", "old_path": "src/slave/main.cpp", "new_path": "src/slave/main.cpp", "diff": "@@ -645,7 +645,8 @@ int main(int argc, char** argv)\nTry<std::vector<int>> socketFds =\nsystemd::socket_activation::listenFdsWithName(name);\n#else\n- Try<std::vector<int>> socketFds; // Dummy to ...
C++
Apache License 2.0
apache/mesos
Properly initialized dummy variable. Since `Try` does not have a default constructor we need to provide a dummy value. Review: https://reviews.apache.org/r/71985
46,103
13.01.2020 10:27:50
-3,600
ff363db6e6da8a0e9b26a82a48aba08cf4451e2e
Removed redundant calls to `c_str` flagged by mesos-tidy. These calls were flagged by the upstream `readability-redundant-string-cstr` check. Review:
[ { "change_type": "MODIFY", "old_path": "src/linux/systemd.cpp", "new_path": "src/linux/systemd.cpp", "diff": "@@ -374,7 +374,7 @@ Try<std::vector<int>> listenFds()\nreturn result;\n}\n- Try<pid_t> listenPid = flags::parse<pid_t>(listenPidEnv->c_str());\n+ Try<pid_t> listenPid = flags::parse<pid_t>(l...
C++
Apache License 2.0
apache/mesos
Removed redundant calls to `c_str` flagged by mesos-tidy. These calls were flagged by the upstream `readability-redundant-string-cstr` check. Review: https://reviews.apache.org/r/71986
46,105
12.01.2020 12:29:10
-32,400
c353199cc6103417d40fc89f4475ed892482f7c0
site: update the year to 2020 in the footer
[ { "change_type": "MODIFY", "old_path": "site/source/layouts/basic.erb", "new_path": "site/source/layouts/basic.erb", "diff": "</div>\n<div class=\"col-md-6 trademark\">\n- <p>&copy; 2012-2018 <a href=\"http://apache.org\">The Apache Software Foundation</a>.\n+ <p>&copy; 2012-2020 <a href=\"http://ap...
C++
Apache License 2.0
apache/mesos
site: update the year to 2020 in the footer
46,103
14.01.2020 17:36:28
-3,600
1e75e3875a14e5d358a4f2f278831057bf689267
Fixed issues flagged by cpplint. Review:
[ { "change_type": "MODIFY", "old_path": "src/master/authorization.hpp", "new_path": "src/master/authorization.hpp", "diff": "#include <vector>\n#include <stout/option.hpp>\n+#include <stout/try.hpp>\n+\n+#include <mesos/mesos.hpp>\n+#include <mesos/resources.hpp>\n-#include <mesos/mesos.pb.h>\n#inclu...
C++
Apache License 2.0
apache/mesos
Fixed issues flagged by cpplint. Review: https://reviews.apache.org/r/71996
46,128
16.01.2020 18:40:50
28,800
42e9b889900be9934dbb5ffc06504b21a3d8c206
Added a new task status reason. The new reason will be sent to frameworks when one of their tasks is OOM-killed on an agent while the task is exceeding its memory request. Review:
[ { "change_type": "MODIFY", "old_path": "include/mesos/mesos.proto", "new_path": "include/mesos/mesos.proto", "diff": "@@ -2636,6 +2636,7 @@ message TaskStatus {\nREASON_CONTAINER_LIMITATION = 19;\nREASON_CONTAINER_LIMITATION_DISK = 20;\nREASON_CONTAINER_LIMITATION_MEMORY = 8;\n+ REASON_CONTAINER_MEM...
C++
Apache License 2.0
apache/mesos
Added a new task status reason. The new reason will be sent to frameworks when one of their tasks is OOM-killed on an agent while the task is exceeding its memory request. Review: https://reviews.apache.org/r/71935/
46,103
17.01.2020 15:10:17
-3,600
5ce5d20360b82da6bc0dda5fed82748b0812aa67
Removed unintentional copies of for loop iteration variables. Review:
[ { "change_type": "MODIFY", "old_path": "src/master/validation.cpp", "new_path": "src/master/validation.cpp", "diff": "@@ -2579,7 +2579,7 @@ Option<Error> validate(\nreturn Error(\"Not a persistent volume: \" + error->message);\n}\n- foreach (const Resource volume, volumes) {\n+ foreach (const Resour...
C++
Apache License 2.0
apache/mesos
Removed unintentional copies of for loop iteration variables. Review: https://reviews.apache.org/r/72011/
46,103
23.01.2020 14:19:57
-3,600
877b5886804a17ea4aee4f251a43a3f5dbc84ca1
Remembered whether an executor was agent-generated. This patch adds code to pass on whether was generated in the agent from the point where the executor is generated to the point where we create an actual `slave::Executor` instance. This allows us to persist this information in the executor state. Review:
[ { "change_type": "MODIFY", "old_path": "src/slave/slave.cpp", "new_path": "src/slave/slave.cpp", "diff": "@@ -2112,13 +2112,16 @@ void Slave::runTask(\nconst ExecutorInfo executorInfo = getExecutorInfo(frameworkInfo, task);\n+ bool executorGeneratedForCommandTask = !task.has_executor();\n+\nrun(fram...
C++
Apache License 2.0
apache/mesos
Remembered whether an executor was agent-generated. This patch adds code to pass on whether was generated in the agent from the point where the executor is generated to the point where we create an actual `slave::Executor` instance. This allows us to persist this information in the executor state. Review: https://rev...
46,103
27.01.2020 15:57:46
-3,600
ec067b683212f7759e8c3d132523af94ef4e649e
Switched verify-reviews from docker-build to prepared Docker image. Review:
[ { "change_type": "MODIFY", "old_path": "support/verify-reviews.py", "new_path": "support/verify-reviews.py", "diff": "@@ -243,9 +243,6 @@ def verify_review(review_request):\n'%s 2>&1 > %s' % (command, build_output)])\nelse:\n# Launch docker build script.\n-\n- # TODO(jojy): Launch 'docker_build.sh' ...
C++
Apache License 2.0
apache/mesos
Switched verify-reviews from docker-build to prepared Docker image. Review: https://reviews.apache.org/r/71421/
46,103
28.01.2020 10:51:58
-3,600
7f0d0ad7d431aa33255c5cdf475d53caa7f65e25
Switched `verify-reviews.py` to use ubuntu-16.04-based image. This not only uses a more recent platform to verify review, but also works around which affects only older systems like e.g., ubuntu-14.04. Review:
[ { "change_type": "MODIFY", "old_path": "support/verify-reviews.py", "new_path": "support/verify-reviews.py", "diff": "@@ -244,7 +244,7 @@ def verify_review(review_request):\nelse:\n# Launch docker build script.\nconfiguration = (\"export \"\n- \"OS='ubuntu:14.04' \"\n+ \"OS='ubuntu:16.04' \"\n\"BUIL...
C++
Apache License 2.0
apache/mesos
Switched `verify-reviews.py` to use ubuntu-16.04-based image. This not only uses a more recent platform to verify review, but also works around MESOS-10091 which affects only older systems like e.g., ubuntu-14.04. Review: https://reviews.apache.org/r/72054
46,177
29.01.2020 09:35:32
-3,600
1e9b121273a6d9248a78ab44798bd4c1138c31ee
Windows: Excluded some unix socket code. Unix sockets are currently not supported on Windows, so should be excluded from the build. Review:
[ { "change_type": "MODIFY", "old_path": "3rdparty/libprocess/src/http.cpp", "new_path": "3rdparty/libprocess/src/http.cpp", "diff": "@@ -1620,6 +1620,7 @@ Future<Connection> connect(const URL& url)\n#endif\n}\n+#ifndef __WINDOWS__\nif (scheme == \"http+unix\") {\nif (!url.domain.isSome()) {\nreturn F...
C++
Apache License 2.0
apache/mesos
Windows: Excluded some unix socket code. Unix sockets are currently not supported on Windows, so should be excluded from the build. Review: https://reviews.apache.org/r/72018/
46,103
03.02.2020 09:30:25
-3,600
3d197d8e815f1f2de0565ce64547f409997c5e82
Fixed the build on Windows. The addition of executor domain socket support broke the build on Windows. This patch updates preprocessor directives in order to fix the build. Review:
[ { "change_type": "MODIFY", "old_path": "src/executor/executor.cpp", "new_path": "src/executor/executor.cpp", "diff": "#include <stout/unreachable.hpp>\n#include <stout/uuid.hpp>\n+#ifndef __WINDOWS__\n#include \"common/domain_sockets.hpp\"\n+#endif // __WINDOWS__\n+\n#include \"common/http.hpp\"\n#i...
C++
Apache License 2.0
apache/mesos
Fixed the build on Windows. The addition of executor domain socket support broke the build on Windows. This patch updates preprocessor directives in order to fix the build. Review: https://reviews.apache.org/r/72070/
46,072
05.02.2020 21:30:17
-3,600
4990d2cd6e76da340b30e200be0d700124dac2b1
Added Andrei Sekretenko to the committers list.
[ { "change_type": "MODIFY", "old_path": "docs/committers.md", "new_path": "docs/committers.md", "diff": "@@ -303,6 +303,13 @@ canonical list is located on\n<td>andschwa</td>\n<td>andschwa@apache.org</td>\n</tr>\n+ <tr>\n+ <td>+1</td>\n+ <td>Andrei Sekretenko</td>\n+ <td>Mesosphere</td>\n+ <td></td>\n...
C++
Apache License 2.0
apache/mesos
Added Andrei Sekretenko to the committers list.
46,072
30.01.2020 12:39:31
-3,600
4ed912c6b6eee95ad5a1267fad20b7c279ccc153
Factored out common code for building URIs on a registry host. This is a prerequisite for adding fallback authorization server URI generation (see in the next patches, which will need one more URI extractor similar to `getManifestUri()`/`getBlobUri()`. Review:
[ { "change_type": "MODIFY", "old_path": "src/uri/fetchers/docker.cpp", "new_path": "src/uri/fetchers/docker.cpp", "diff": "@@ -438,6 +438,35 @@ static http::Headers getAuthHeaderBearer(\nreturn headers;\n}\n+\n+static URI constructRegistryUri(const URI& imageUri, string&& path)\n+{\n+ const string sc...
C++
Apache License 2.0
apache/mesos
Factored out common code for building URIs on a registry host. This is a prerequisite for adding fallback authorization server URI generation (see MESOS-10092) in the next patches, which will need one more URI extractor similar to `getManifestUri()`/`getBlobUri()`. Review: https://reviews.apache.org/r/72077
46,072
30.01.2020 13:02:45
-3,600
d97a01b5f7e5351564b530c08ee6fd937ef62732
Factored out getting authorization service URI. Review:
[ { "change_type": "MODIFY", "old_path": "src/uri/fetchers/docker.cpp", "new_path": "src/uri/fetchers/docker.cpp", "diff": "@@ -467,6 +467,59 @@ static URI getBlobUri(const URI& imageUri)\n}\n+// Obtains URI of the V2 authorization service based on the\n+// initial \"401 unauthorized\" response of the...
C++
Apache License 2.0
apache/mesos
Factored out getting authorization service URI. Review: https://reviews.apache.org/r/72078
46,072
30.01.2020 14:26:38
-3,600
c37e6df142322917288aa01e7226f9a5fb59125d
Added workaround for Docker repositories not providing scope/service. This patch adds a fallback Docker authorization server URI generation mechanism (see for repository servers that provide no "scope"/"service" params in the "WWW-Authenticate" header of the initial "401 Unathorized" response. Review:
[ { "change_type": "MODIFY", "old_path": "src/uri/fetchers/docker.cpp", "new_path": "src/uri/fetchers/docker.cpp", "diff": "@@ -450,6 +450,12 @@ static URI constructRegistryUri(const URI& imageUri, string&& path)\n}\n+static URI getRegistryRootUri(const URI& imageUri)\n+{\n+ return constructRegistryUr...
C++
Apache License 2.0
apache/mesos
Added workaround for Docker repositories not providing scope/service. This patch adds a fallback Docker authorization server URI generation mechanism (see MESOS-10092) for repository servers that provide no "scope"/"service" params in the "WWW-Authenticate" header of the initial "401 Unathorized" response. Review: ht...
46,072
23.01.2020 12:42:33
-3,600
b7076c9fe5ece573361dcfb899962f4f30df2fd2
Added test for fetch from repositories not providing scope/service. Review:
[ { "change_type": "MODIFY", "old_path": "src/tests/uri_fetcher_tests.cpp", "new_path": "src/tests/uri_fetcher_tests.cpp", "diff": "@@ -394,6 +394,61 @@ TEST_F(DockerFetcherPluginTest, DISABLED_INTERNET_CURL_FetchImage)\n}\n+// Fetches an image from a registry for which fetcher falls back to generatin...
C++
Apache License 2.0
apache/mesos
Added test for fetch from repositories not providing scope/service. Review: https://reviews.apache.org/r/72080