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,181
17.01.2017 14:28:13
-3,600
71d8c243648fd27ccc74798bc9238c66e7889cf0
Fixed flakiness in SlaveRecoveryTest.RegisterDisconnectedSlave. Review:
[ { "change_type": "MODIFY", "old_path": "src/tests/slave_recovery_tests.cpp", "new_path": "src/tests/slave_recovery_tests.cpp", "diff": "@@ -2809,18 +2809,16 @@ TYPED_TEST(SlaveRecoveryTest, RegisterDisconnectedSlave)\nEXPECT_CALL(sched, slaveLost(_, _))\n.Times(AtMost(1));\n- UPID slavePid = slave.g...
C++
Apache License 2.0
apache/mesos
Fixed flakiness in SlaveRecoveryTest.RegisterDisconnectedSlave. Review: https://reviews.apache.org/r/55438/
46,092
17.01.2017 14:52:49
-3,600
09fa1c4b814aed219da33fa1fdbfa3ace4bae0e3
Fix segfault when the executor sets a UUID that is not a valid v4 UUID. This fixes the segfault that occurs when an executor sets a UUID that's not a valid v4 UUID and sends it off to the agent: Review:
[ { "change_type": "MODIFY", "old_path": "src/slave/validation.cpp", "new_path": "src/slave/validation.cpp", "diff": "@@ -342,7 +342,7 @@ Option<Error> validate(const mesos::executor::Call& call)\nreturn Error(\"Expecting 'uuid' to be present\");\n}\n- Try<UUID> uuid = UUID::fromBytes(status.uuid()).g...
C++
Apache License 2.0
apache/mesos
Fix segfault when the executor sets a UUID that is not a valid v4 UUID. This fixes the segfault that occurs when an executor sets a UUID that's not a valid v4 UUID and sends it off to the agent: Review: https://reviews.apache.org/r/55480/
46,159
17.01.2017 14:33:00
-3,600
92595f4f120e48c98b48add4a58548cba7745312
Added support for pulling Docker images by digest. For now we can only use digests to pull images that were pushed with Docker 1.9 and older or from Registry 2.2.1 and older. Newer versions use Schema 2 manifests that are not converted by the registry when pulling by digest. Review:
[ { "change_type": "MODIFY", "old_path": "src/docker/spec.cpp", "new_path": "src/docker/spec.cpp", "diff": "@@ -90,7 +90,9 @@ ostream& operator<<(ostream& stream, const ImageReference& reference)\nstream << reference.repository();\n}\n- if (reference.has_tag()) {\n+ if (reference.has_digest()) {\n+ st...
C++
Apache License 2.0
apache/mesos
Added support for pulling Docker images by digest. For now we can only use digests to pull images that were pushed with Docker 1.9 and older or from Registry 2.2.1 and older. Newer versions use Schema 2 manifests that are not converted by the registry when pulling by digest. Review: https://reviews.apache.org/r/53848...
46,157
17.01.2017 13:15:47
28,800
4099daa87b9751d2917656e56dad2e416acc8a02
Added capabilities to the master's Slave struct. Review:
[ { "change_type": "MODIFY", "old_path": "src/common/protobuf_utils.hpp", "new_path": "src/common/protobuf_utils.hpp", "diff": "@@ -121,6 +121,29 @@ FileInfo createFileInfo(const std::string& path, const struct stat& s);\nnamespace slave {\n+struct Capabilities\n+{\n+ Capabilities() = default;\n+\n+ t...
C++
Apache License 2.0
apache/mesos
Added capabilities to the master's Slave struct. Review: https://reviews.apache.org/r/55563/
46,157
17.01.2017 13:22:58
28,800
be6f40178bdb98d96ecee41c84638cfb2dc06125
Fixed an inconsistency in argument ordering. In the master's validation of offers, the functions take offer IDs first, followed by the master pointer. This fixes an inconsistent function. Review:
[ { "change_type": "MODIFY", "old_path": "src/master/validation.cpp", "new_path": "src/master/validation.cpp", "diff": "@@ -1327,8 +1327,8 @@ Try<FrameworkID> getFrameworkId(Master* master, const OfferID& offerId)\nOption<Error> validateOfferIds(\n- Master* master,\n- const RepeatedPtrField<OfferID>& ...
C++
Apache License 2.0
apache/mesos
Fixed an inconsistency in argument ordering. In the master's validation of offers, the functions take offer IDs first, followed by the master pointer. This fixes an inconsistent function. Review: https://reviews.apache.org/r/54649/
46,062
17.01.2017 14:26:19
28,800
9f3e11dd5ac238ca56853450ab57a332c5cac29c
Slimmed down the size of the docker image from 2GB to roughly 650MB. Review:
[ { "change_type": "MODIFY", "old_path": "support/mesos-tidy/Dockerfile", "new_path": "support/mesos-tidy/Dockerfile", "diff": "@@ -34,8 +34,9 @@ RUN \\\ngit clone --depth 1 -b mesos_39 http://github.com/mesos/clang.git /tmp/llvm/tools/clang && \\\ngit clone --depth 1 -b mesos_39 http://github.com/mes...
C++
Apache License 2.0
apache/mesos
Slimmed down the size of the docker image from 2GB to roughly 650MB. Review: https://reviews.apache.org/r/55488/
46,062
17.01.2017 14:27:09
28,800
3c40db69a1de8a7ff42b1a7abfb0414d1eb988ca
Used CMake to generate the compilation database instead. Review:
[ { "change_type": "MODIFY", "old_path": "support/mesos-tidy.sh", "new_path": "support/mesos-tidy.sh", "diff": "-#!/bin/bash\n+#!/usr/bin/env bash\n# Licensed to the Apache Software Foundation (ASF) under one\n# or more contributor license agreements. See the NOTICE file\n# See the License for the spe...
C++
Apache License 2.0
apache/mesos
Used CMake to generate the compilation database instead. Review: https://reviews.apache.org/r/55489/
46,078
09.01.2017 13:53:51
28,800
f9758a693a2fb116018c6a063a5dcc867725c05f
Added common validation for IDs. The common validation logic is shared by the master and the agent. Review:
[ { "change_type": "MODIFY", "old_path": "src/CMakeLists.txt", "new_path": "src/CMakeLists.txt", "diff": "@@ -228,6 +228,7 @@ set(COMMON_SRC\ncommon/resources_utils.cpp\ncommon/roles.cpp\ncommon/type_utils.cpp\n+ common/validation.cpp\ncommon/values.cpp\n)\n" }, { "change_type": "MODIFY", ...
C++
Apache License 2.0
apache/mesos
Added common validation for IDs. - The common validation logic is shared by the master and the agent. Review: https://reviews.apache.org/r/55446
46,078
09.01.2017 16:15:21
28,800
e2d9ff0555622e0241db8da2c6c42ac8597fc0bb
Validate executor IDs in master validation. Review:
[ { "change_type": "MODIFY", "old_path": "src/master/validation.cpp", "new_path": "src/master/validation.cpp", "diff": "@@ -620,6 +620,14 @@ Option<Error> validate(const RepeatedPtrField<Resource>& resources)\nnamespace executor {\nnamespace internal {\n+Option<Error> validateExecutorID(const Executor...
C++
Apache License 2.0
apache/mesos
Validate executor IDs in master validation. Review: https://reviews.apache.org/r/55449
46,078
09.01.2017 15:48:33
28,800
2d21d96f701b3921b840176ccc405cacc984c329
Implemented TODOs to use common ID validation. Review:
[ { "change_type": "MODIFY", "old_path": "src/master/validation.cpp", "new_path": "src/master/validation.cpp", "diff": "// See the License for the specific language governing permissions and\n// limitations under the License.\n-#include <algorithm>\n+#include \"master/validation.hpp\"\n+\n#include <st...
C++
Apache License 2.0
apache/mesos
Implemented TODOs to use common ID validation. Review: https://reviews.apache.org/r/55448
46,078
09.01.2017 13:54:51
28,800
458fa754e7b83feb19dd2426953b828793b4a175
Added sanity checks on IDs and roles before creating directories. Review:
[ { "change_type": "MODIFY", "old_path": "src/slave/paths.cpp", "new_path": "src/slave/paths.cpp", "diff": "#include <vector>\n#include <mesos/mesos.hpp>\n+#include <mesos/roles.hpp>\n#include <mesos/type_utils.hpp>\n#include <stout/check.hpp>\n#include <stout/try.hpp>\n#include <stout/unreachable.hpp...
C++
Apache License 2.0
apache/mesos
Added sanity checks on IDs and roles before creating directories. Review: https://reviews.apache.org/r/55447
46,078
17.01.2017 18:19:22
28,800
eab14c08678fd4ecc2ba5b6693a902ccf92aeeef
Clarified the assumptions on some returned Futures. Review:
[ { "change_type": "MODIFY", "old_path": "3rdparty/libprocess/include/process/reap.hpp", "new_path": "3rdparty/libprocess/include/process/reap.hpp", "diff": "@@ -61,7 +61,7 @@ extern PID<ReaperProcess> reaper;\n// the process is a direct child and it has not already been reaped.\n// Otherwise, returns...
C++
Apache License 2.0
apache/mesos
Clarified the assumptions on some returned Futures. Review: https://reviews.apache.org/r/55638/
46,078
17.01.2017 18:24:31
28,800
efe99f5a9bb53c09a02b08446190813982ac3c07
Added union assignment operator in hashset. Review:
[ { "change_type": "MODIFY", "old_path": "3rdparty/stout/include/stout/hashset.hpp", "new_path": "3rdparty/stout/include/stout/hashset.hpp", "diff": "@@ -126,8 +126,19 @@ hashset<Elem, Hash, Equal> operator|(\n// Note, we're not using 'set_union' since it affords us no benefit\n// in efficiency and is...
C++
Apache License 2.0
apache/mesos
Added union assignment operator in hashset. Review: https://reviews.apache.org/r/54643/
46,062
17.01.2017 19:27:02
28,800
596a463ed44e167e0e2ed167793678e0ddf9bb16
Removed duplicate code that caused redeclaration build failure.
[ { "change_type": "MODIFY", "old_path": "src/master/master.cpp", "new_path": "src/master/master.cpp", "diff": "@@ -5852,15 +5852,6 @@ void Master::statusUpdate(StatusUpdate update, const UPID& pid)\nreturn;\n}\n- Try<UUID> uuid = UUID::fromBytes(update.uuid());\n- if (uuid.isError()) {\n- LOG(WARNING...
C++
Apache License 2.0
apache/mesos
Removed duplicate code that caused redeclaration build failure.
46,143
17.01.2017 11:58:42
-3,600
da5375771d5f1fa13aeb248112595491556c06f2
Paused the status update manager in `Slave::initialize()`. This is done so that any updates that the status update manager receives while the agent is in recovery (e.g., executor terminated) are not un-necessarily forwarded to and dropped by the agent. Review:
[ { "change_type": "MODIFY", "old_path": "src/slave/slave.cpp", "new_path": "src/slave/slave.cpp", "diff": "@@ -554,6 +554,11 @@ void Slave::initialize()\nstatusUpdateManager->initialize(defer(self(), &Slave::forward, lambda::_1)\n.operator std::function<void(StatusUpdate)>());\n+ // We pause the stat...
C++
Apache License 2.0
apache/mesos
Paused the status update manager in `Slave::initialize()`. This is done so that any updates that the status update manager receives while the agent is in recovery (e.g., executor terminated) are not un-necessarily forwarded to and dropped by the agent. Review: https://reviews.apache.org/r/55611
46,143
17.01.2017 12:19:58
-3,600
24cbc0baa2568447e36243119d61eea02cba6a6a
Fixed SlaveRecoveryTest.RecoverTerminatedExecutor test. Just like RecoverHTTPTerminatedExecutor test, the scheduler should handle duplicate status updates after agent restarts. See the attached ticket for details. Review:
[ { "change_type": "MODIFY", "old_path": "src/tests/slave_recovery_tests.cpp", "new_path": "src/tests/slave_recovery_tests.cpp", "diff": "@@ -1201,7 +1201,7 @@ TYPED_TEST(SlaveRecoveryTest, RecoverTerminatedHTTPExecutor)\nFuture<TaskStatus> status;\nEXPECT_CALL(sched, statusUpdate(_, _))\n.WillOnce(Fu...
C++
Apache License 2.0
apache/mesos
Fixed SlaveRecoveryTest.RecoverTerminatedExecutor test. Just like RecoverHTTPTerminatedExecutor test, the scheduler should handle duplicate status updates after agent restarts. See the attached ticket for details. Review: https://reviews.apache.org/r/55612
46,066
18.01.2017 15:56:30
-3,600
3d21d776d444acd288f3107b8edff326c6cc44ae
Added support for HTTP responses with unspecified length. Some HTTP responses might not set the 'Content-Length' header. This usually means that the message body should be read until EOF. This will be done by an additional call of 'decoder.decode' with an empty string. Review:
[ { "change_type": "MODIFY", "old_path": "3rdparty/libprocess/src/http.cpp", "new_path": "3rdparty/libprocess/src/http.cpp", "diff": "@@ -763,27 +763,26 @@ Try<vector<Response>> decodeResponses(const string& s)\n{\nResponseDecoder decoder;\n- deque<http::Response*> responses = decoder.decode(s.data(),...
C++
Apache License 2.0
apache/mesos
Added support for HTTP responses with unspecified length. Some HTTP responses might not set the 'Content-Length' header. This usually means that the message body should be read until EOF. This will be done by an additional call of 'decoder.decode' with an empty string. Review: https://reviews.apache.org/r/55496/
46,066
18.01.2017 16:35:29
-3,600
ef138309e3ff747dc5bdd5947570c0284784a98c
Fixed issues with the Docker fetcher when using a proxy. When behing a proxy, 'curl' uses HTTP CONNECT tunneling to access HTTPS. This lead to problems with our HTTP parser because the response of a 'CONNECT' doesn't have neither headers nor a body. Review:
[ { "change_type": "MODIFY", "old_path": "src/uri/fetchers/docker.cpp", "new_path": "src/uri/fetchers/docker.cpp", "diff": "@@ -165,6 +165,25 @@ static Future<http::Response> curl(\nTry<vector<http::Response>> responses =\nhttp::decodeResponses(output.get());\n+ // TODO(nfnt): If we're behing a proxy,...
C++
Apache License 2.0
apache/mesos
Fixed issues with the Docker fetcher when using a proxy. When behing a proxy, 'curl' uses HTTP CONNECT tunneling to access HTTPS. This lead to problems with our HTTP parser because the response of a 'CONNECT' doesn't have neither headers nor a body. Review: https://reviews.apache.org/r/55621/
46,192
18.01.2017 19:20:34
-3,600
81a804b2ccc2ee125138a57bda344f29a37c9482
Fixed getting-started guide for Centos7. When this code block was run, it would evaluate `$basearch` in the shell typically giving "", this variable was intended to be used by yum, meaning it should be escaped so as to pass `$basearch` rather than "" (blank) to the yum config file. This closes
[ { "change_type": "MODIFY", "old_path": "docs/getting-started.md", "new_path": "docs/getting-started.md", "diff": "@@ -187,7 +187,7 @@ Following are the instructions for stock CentOS 7.1. If you are using a differen\n[WANdiscoSVN]\nname=WANdisco SVN Repo 1.9\nenabled=1\n- baseurl=http://opensource.wa...
C++
Apache License 2.0
apache/mesos
Fixed getting-started guide for Centos7. When this code block was run, it would evaluate `$basearch` in the shell typically giving "", this variable was intended to be used by yum, meaning it should be escaped so as to pass `$basearch` rather than "" (blank) to the yum config file. This closes #196
46,103
18.01.2017 11:09:42
18,000
7846587c75b55d8072d6aca17114591dd3d7bab6
Avoided use of CHECK macros in libprocess. Review:
[ { "change_type": "MODIFY", "old_path": "3rdparty/libprocess/src/tests/http_tests.cpp", "new_path": "3rdparty/libprocess/src/tests/http_tests.cpp", "diff": "@@ -61,6 +61,7 @@ using authentication::Authenticator;\nusing authentication::AuthenticationResult;\nusing authentication::BasicAuthenticator;\n...
C++
Apache License 2.0
apache/mesos
Avoided use of CHECK macros in libprocess. Review: https://reviews.apache.org/r/55268/
46,103
18.01.2017 11:09:53
18,000
dd553b237e5bdb3ebac48d275a27b1e997b257bc
Avoided use of CHECK macros. Review:
[ { "change_type": "MODIFY", "old_path": "src/tests/command_executor_tests.cpp", "new_path": "src/tests/command_executor_tests.cpp", "diff": "@@ -355,7 +355,7 @@ TEST_F_TEMP_DISABLED_ON_WINDOWS(HTTPCommandExecutorTest, TerminateWithACK)\nTry<MesosContainerizer*> _containerizer =\nMesosContainerizer::c...
C++
Apache License 2.0
apache/mesos
Avoided use of CHECK macros. Review: https://reviews.apache.org/r/55269/
46,062
18.01.2017 11:46:24
28,800
d5d52b4617905372889c0fd4ad56d6aee2b6ddfb
Added `libssl-dev` to `support/mesos-tidy/Dockerfile`. See summary. Refer to Review:
[ { "change_type": "MODIFY", "old_path": "support/mesos-tidy/Dockerfile", "new_path": "support/mesos-tidy/Dockerfile", "diff": "@@ -45,12 +45,14 @@ RUN \\\nENV PATH /opt/bin:$PATH\n# Install Mesos dependencies\n+# TODO(mpark): Remove `libssl-dev` from this list once `MESOS-6942` is resolved.\nRUN apt-...
C++
Apache License 2.0
apache/mesos
Added `libssl-dev` to `support/mesos-tidy/Dockerfile`. See summary. Refer to MESOS-6942. Review: https://reviews.apache.org/r/55667/
46,062
18.01.2017 11:46:40
28,800
1a1b91adf8667638ac3e7ed720595ea1994a033e
Used the `mesos/mesos-tidy` image from DockerHub. Review:
[ { "change_type": "MODIFY", "old_path": "support/mesos-tidy.sh", "new_path": "support/mesos-tidy.sh", "diff": "set -e\nset -o pipefail\n+MESOS_DIR=$(git rev-parse --show-toplevel)\n+\n# Configure how checks are run. These variables can be overridden by setting the\n# respective environment variables ...
C++
Apache License 2.0
apache/mesos
Used the `mesos/mesos-tidy` image from DockerHub. Review: https://reviews.apache.org/r/55490/
46,062
18.01.2017 11:46:52
28,800
34b26825b200478238436f08f2fed05d3d0dc4a5
Renamed `CONFIGURE_FLAGS` to `CMAKE_ARGS`. Updated `support/mesos-tidy/README.md` accordingly + minor updates. Review:
[ { "change_type": "MODIFY", "old_path": "support/mesos-tidy.sh", "new_path": "support/mesos-tidy.sh", "diff": "@@ -40,5 +40,5 @@ docker run \\\n--rm \\\n-v \"${MESOS_DIR}\":/SRC:Z \\\n-e CHECKS=\"${CHECKS}\" \\\n- -e CONFIGURE_FLAGS=\"${CONFIGURE_FLAGS}\" \\\n+ -e CMAKE_ARGS=\"${CMAKE_ARGS}\" \\\nmes...
C++
Apache License 2.0
apache/mesos
Renamed `CONFIGURE_FLAGS` to `CMAKE_ARGS`. Updated `support/mesos-tidy/README.md` accordingly + minor updates. Review: https://reviews.apache.org/r/55654/
46,062
18.01.2017 11:47:03
28,800
745b3c7589e5252cf93f62e081b78fa420771d0c
Added a `support/README.md` and the `support/jenkins` directory. Review:
[ { "change_type": "ADD", "old_path": null, "new_path": "support/README.md", "diff": "+# Supporting tools\n+\n+This directory contains various helper scripts.\n+\n+The scripts directly in this directory are intended to be used by Mesos\n+developers on the command-line.\n" }, { "change_type": "...
C++
Apache License 2.0
apache/mesos
Added a `support/README.md` and the `support/jenkins` directory. Review: https://reviews.apache.org/r/55491/
46,145
19.01.2017 19:00:28
-3,600
a9857c778f2e707930bbb9ebdaaddac7c5a5d088
Updated Addition, modification and deletion of CNI configurations. Review:
[ { "change_type": "MODIFY", "old_path": "docs/cni.md", "new_path": "docs/cni.md", "diff": "@@ -20,10 +20,10 @@ default.\n- [Motivation](#motivation)\n- [Usage](#usage)\n- [Configuring CNI networks](#configuring-cni-networks)\n+ - [Adding/Deleting/Modifying CNI networks](#adding-modifying-deleting)\n-...
C++
Apache License 2.0
apache/mesos
Updated Addition, modification and deletion of CNI configurations. Review: https://reviews.apache.org/r/55658/
46,103
19.01.2017 14:25:48
28,800
052fb4414e2cce2b550ce0644f039b6d4a1876fa
Added a test for framework upgrading to MULTI_ROLE capability. Review:
[ { "change_type": "MODIFY", "old_path": "src/tests/master_validation_tests.cpp", "new_path": "src/tests/master_validation_tests.cpp", "diff": "@@ -2582,6 +2582,75 @@ TEST_F(FrameworkInfoValidationTest, MultiRoleWhitelist)\nAWAIT_READY(error);\n}\n+\n+// This test verifies that a not yet MULTI_ROLE ca...
C++
Apache License 2.0
apache/mesos
Added a test for framework upgrading to MULTI_ROLE capability. Review: https://reviews.apache.org/r/55381/
46,165
19.01.2017 14:48:12
28,800
6cf3a94a52e87a593c9cba373bf433cfc4178639
Minor comment fixes in the MULTI_ROLE validation tests.
[ { "change_type": "MODIFY", "old_path": "src/tests/master_validation_tests.cpp", "new_path": "src/tests/master_validation_tests.cpp", "diff": "@@ -2526,8 +2526,7 @@ TEST_F(FrameworkInfoValidationTest, MissingMultiRoleCapability)\n}\n-// This test ensures subscription succeeds for multi-role\n-// fram...
C++
Apache License 2.0
apache/mesos
Minor comment fixes in the MULTI_ROLE validation tests.
46,139
19.01.2017 16:51:02
28,800
df0dfb40c8b1ec8e05eaf35f00ee8ebf2d9aa747
Moved `getRootContainerId` to `protobuf_utils`. This method is pretty generic and should not be a part of the Mesos containerizer code. Review:
[ { "change_type": "MODIFY", "old_path": "src/common/protobuf_utils.cpp", "new_path": "src/common/protobuf_utils.cpp", "diff": "@@ -364,6 +364,22 @@ FileInfo createFileInfo(const string& path, const struct stat& s)\nreturn file;\n}\n+\n+ContainerID getRootContainerId(const ContainerID& containerId)\n+...
C++
Apache License 2.0
apache/mesos
Moved `getRootContainerId` to `protobuf_utils`. This method is pretty generic and should not be a part of the Mesos containerizer code. Review: https://reviews.apache.org/r/55676/
46,139
19.01.2017 16:51:15
28,800
2fb678d285483c01b6898b141a002b1a69eb2c42
Removed redundant `Times(1)` statements from `api_tests.cpp`. Review:
[ { "change_type": "MODIFY", "old_path": "src/tests/api_tests.cpp", "new_path": "src/tests/api_tests.cpp", "diff": "@@ -351,8 +351,7 @@ TEST_P(MasterAPITest, GetExecutors)\nMesosSchedulerDriver driver(\n&sched, DEFAULT_FRAMEWORK_INFO, master.get()->pid, DEFAULT_CREDENTIAL);\n- EXPECT_CALL(sched, regis...
C++
Apache License 2.0
apache/mesos
Removed redundant `Times(1)` statements from `api_tests.cpp`. Review: https://reviews.apache.org/r/55722/
46,139
19.01.2017 16:51:47
28,800
7bef188c12ffb03325c8bf0bd2f87941cc64bef1
Renamed `locateExecutor` to `getExecutor`. Rnamed `locateExecutor` to `getExecutor` in `slave.cpp` to be consistent with other similar functions in the same file. Review:
[ { "change_type": "MODIFY", "old_path": "src/slave/http.cpp", "new_path": "src/slave/http.cpp", "diff": "@@ -2525,8 +2525,7 @@ Future<Response> Slave::Http::attachContainerInput(\nFuture<Owned<ObjectApprover>> approver;\nif (slave->authorizer.isSome()) {\n- executor =\n- slave->locateExecutor(call.at...
C++
Apache License 2.0
apache/mesos
Renamed `locateExecutor` to `getExecutor`. Rnamed `locateExecutor` to `getExecutor` in `slave.cpp` to be consistent with other similar functions in the same file. Review: https://reviews.apache.org/r/55678/
46,139
19.01.2017 16:51:56
28,800
60c59adf726ac56ae85284213a24232defc03c85
Unified the way in which the Slave API handlers perform AuthZ. Review:
[ { "change_type": "MODIFY", "old_path": "src/slave/http.cpp", "new_path": "src/slave/http.cpp", "diff": "@@ -2188,29 +2188,13 @@ Future<Response> Slave::Http::_launchNestedContainer(\n\" but 'launch_nested_container.container_id.parent.parent' is set\");\n}\n- // Locate the executor (for now we just ...
C++
Apache License 2.0
apache/mesos
Unified the way in which the Slave API handlers perform AuthZ. Review: https://reviews.apache.org/r/55679/
46,139
19.01.2017 16:52:01
28,800
dd922d51530931fe513df80b7adfd3dd0d23ae27
Made the Agent API able to handle containers nested at arbitrary levels. Review:
[ { "change_type": "MODIFY", "old_path": "src/slave/http.cpp", "new_path": "src/slave/http.cpp", "diff": "@@ -2180,14 +2180,6 @@ Future<Response> Slave::Http::_launchNestedContainer(\nContentType acceptType,\nconst Owned<ObjectApprover>& approver) const\n{\n- // We do not yet support launching contain...
C++
Apache License 2.0
apache/mesos
Made the Agent API able to handle containers nested at arbitrary levels. Review: https://reviews.apache.org/r/55464/
46,177
17.01.2017 12:27:29
28,800
95aa210fc506b164e9e04ccf11ff91a0b5c09d96
CMake: Moved `port_mapper` sources to containerizer CMakeLists. The `port_mapper.cpp` source file is only referenced by the `mesos-cni-port-mapper` binary target and is not needed within the agent's list of sources.
[ { "change_type": "MODIFY", "old_path": "src/CMakeLists.txt", "new_path": "src/CMakeLists.txt", "diff": "@@ -296,7 +296,6 @@ set(LINUX_SRC\nslave/containerizer/mesos/isolators/namespaces/ipc.cpp\nslave/containerizer/mesos/isolators/namespaces/pid.cpp\nslave/containerizer/mesos/isolators/network/cni/c...
C++
Apache License 2.0
apache/mesos
CMake: Moved `port_mapper` sources to containerizer CMakeLists. The `port_mapper.cpp` source file is only referenced by the `mesos-cni-port-mapper` binary target and is not needed within the agent's list of sources.
46,177
18.01.2017 13:41:19
28,800
6fb6f894c28210368598c43d333373308ad829f5
Windows: Replaced `process::Winsock` with `process::initialize`. Initializing the Windows socket stack is a necessary step before doing any network-related syscalls. The initialization logic now lives in `process::initialize`. This changes a few binaries to call `process::initialize` and cleanup with `process::finali...
[ { "change_type": "MODIFY", "old_path": "src/docker/executor.cpp", "new_path": "src/docker/executor.cpp", "diff": "#include <process/reap.hpp>\n#include <process/subprocess.hpp>\n-#ifdef __WINDOWS__\n-#include <process/windows/winsock.hpp>\n-#endif // __WINDOWS__\n-\n#include <stout/error.hpp>\n#incl...
C++
Apache License 2.0
apache/mesos
Windows: Replaced `process::Winsock` with `process::initialize`. Initializing the Windows socket stack is a necessary step before doing any network-related syscalls. The initialization logic now lives in `process::initialize`. This changes a few binaries to call `process::initialize` and cleanup with `process::final...
46,177
18.01.2017 13:28:02
28,800
d78fa39c4153ea0a3cc74477260b4315fa520b57
Windows: Removed `process::Winsock` helper. This helper was used as a Windows socket stack initialization guard. This code (including cleanup of the socket stack) has been moved into `process::initialize()` and `process::finalize(true)`.
[ { "change_type": "MODIFY", "old_path": "3rdparty/libprocess/include/Makefile.am", "new_path": "3rdparty/libprocess/include/Makefile.am", "diff": "@@ -71,5 +71,4 @@ nobase_include_HEADERS = \\\nprocess/timeout.hpp \\\nprocess/timer.hpp \\\nprocess/timeseries.hpp \\\n- process/windows/subprocess.hpp \...
C++
Apache License 2.0
apache/mesos
Windows: Removed `process::Winsock` helper. This helper was used as a Windows socket stack initialization guard. This code (including cleanup of the socket stack) has been moved into `process::initialize()` and `process::finalize(true)`.
46,177
18.01.2017 17:30:56
28,800
e6a8b33dab02ca247efb68bfa749e3dfc0445f77
Added human readable name to the executor ShutdownProcess. For debugging purposes, this makes the ShutdownProcess appear with a pid `__shutdown_executor__(1)` instead of just `(1)`.
[ { "change_type": "MODIFY", "old_path": "src/executor/executor.cpp", "new_path": "src/executor/executor.cpp", "diff": "@@ -97,7 +97,8 @@ class ShutdownProcess : public process::Process<ShutdownProcess>\n{\npublic:\nexplicit ShutdownProcess(const Duration& _gracePeriod)\n- : gracePeriod(_gracePeriod) ...
C++
Apache License 2.0
apache/mesos
Added human readable name to the executor ShutdownProcess. For debugging purposes, this makes the ShutdownProcess appear with a pid `__shutdown_executor__(1)` instead of just `(1)`.
46,177
19.01.2017 18:09:19
28,800
d2d8ceaa6e8d62616a6f986833292918ad2686d8
Windows: Added ASF CI build script to the jenkins folder. This script was originally only visible to privileged users of the ASF Jenkins system. Now, the `Mesos-Windows` Jenkins job will simply batch out to this script.
[ { "change_type": "ADD", "old_path": null, "new_path": "support/jenkins/windows-buildbot.bat", "diff": "+REM Licensed to the Apache Software Foundation (ASF) under one\n+REM or more contributor license agreements. See the NOTICE file\n+REM distributed with this work for additional information\n+REM r...
C++
Apache License 2.0
apache/mesos
Windows: Added ASF CI build script to the jenkins folder. This script was originally only visible to privileged users of the ASF Jenkins system. Now, the `Mesos-Windows` Jenkins job will simply batch out to this script.
46,159
20.01.2017 22:56:59
-28,800
8fc6acb191231edc67742525744e416a4057f9c6
Fixed body padding in mobile WebUI. Body top padding is always required when the navbar is fixed to top. Review:
[ { "change_type": "MODIFY", "old_path": "src/webui/master/static/css/mesos.css", "new_path": "src/webui/master/static/css/mesos.css", "diff": "@@ -45,16 +45,6 @@ body {\npadding-top: 60px;\n}\n-@media (max-width: 979px) {\n- body {\n- /* Mobile devices 979px and narrower use a statically positioned n...
C++
Apache License 2.0
apache/mesos
Fixed body padding in mobile WebUI. Body top padding is always required when the navbar is fixed to top. Review: https://reviews.apache.org/r/55766/
46,136
20.01.2017 09:29:22
28,800
2a3ec7190ce78e7e126f3cbf7c8a9c6772a06c71
Added scheduler adapter to API client libraries doc. Review:
[ { "change_type": "MODIFY", "old_path": "docs/api-client-libraries.md", "new_path": "docs/api-client-libraries.md", "diff": "@@ -16,6 +16,11 @@ layout: documentation\nScheduler Library</a></td>\n<td>C++</td>\n</tr>\n+<tr>\n+ <td><a href=\"https://github.com/apache/mesos/tree/master/src/java/src/org/a...
C++
Apache License 2.0
apache/mesos
Added scheduler adapter to API client libraries doc. Review: https://reviews.apache.org/r/55745/
46,181
20.01.2017 20:01:33
-3,600
c159516dbea0fde9c0335844dd4bac685f9dad0e
Passed an optional parameter by reference. Review:
[ { "change_type": "MODIFY", "old_path": "src/common/protobuf_utils.cpp", "new_path": "src/common/protobuf_utils.cpp", "diff": "@@ -106,7 +106,7 @@ StatusUpdate createStatusUpdate(\nconst Option<bool>& healthy,\nconst Option<Labels>& labels,\nconst Option<ContainerStatus>& containerStatus,\n- const Op...
C++
Apache License 2.0
apache/mesos
Passed an optional parameter by reference. Review: https://reviews.apache.org/r/55779/
46,128
20.01.2017 14:31:32
28,800
614673ac75e69b0a29e0e434a2ee676e8afa9b9d
Eliminated a race in libprocess 'Loop'. In `process::internal::Loop`, we intend to synchronize all accesses to the `discard` member, since otherwise there would be a race between setting and calling this lambda. However, one assignment of the member remains unsynchronized. This patch synchronizes this assignment to avo...
[ { "change_type": "MODIFY", "old_path": "3rdparty/libprocess/include/process/loop.hpp", "new_path": "3rdparty/libprocess/include/process/loop.hpp", "diff": "@@ -325,7 +325,9 @@ public:\n// captured futures longer than necessary.\n//\n// TODO(benh): Use `WeakFuture` in `discard` functions instead.\n+ ...
C++
Apache License 2.0
apache/mesos
Eliminated a race in libprocess 'Loop'. In `process::internal::Loop`, we intend to synchronize all accesses to the `discard` member, since otherwise there would be a race between setting and calling this lambda. However, one assignment of the member remains unsynchronized. This patch synchronizes this assignment to av...
46,078
17.01.2017 23:07:54
28,800
06809f1c5792eed325eff307cc3a009db5fef918
Added a security note to `os::system` documentation. Review:
[ { "change_type": "MODIFY", "old_path": "3rdparty/stout/include/stout/os/posix/shell.hpp", "new_path": "3rdparty/stout/include/stout/os/posix/shell.hpp", "diff": "@@ -121,6 +121,12 @@ Try<std::string> shell(const std::string& fmt, const T&... t)\n// return -1 on error (e.g., fork/exec/waitpid failed)...
C++
Apache License 2.0
apache/mesos
Added a security note to `os::system` documentation. Review: https://reviews.apache.org/r/55794
46,056
22.01.2017 15:00:32
-3,600
3319d8bc7cb0966584e8fd1273889e6b5d0ba25b
Updated comments in `HealthCheck` protobuf for clarity. Review:
[ { "change_type": "MODIFY", "old_path": "include/mesos/mesos.proto", "new_path": "include/mesos/mesos.proto", "diff": "@@ -421,10 +421,13 @@ message HealthCheck {\n// allows doing something similar to the HTTP strategy but\n// encapsulates all the details in a single string field.\n- // Amount of tim...
C++
Apache License 2.0
apache/mesos
Updated comments in `HealthCheck` protobuf for clarity. Review: https://reviews.apache.org/r/55453/
46,056
22.01.2017 15:00:43
-3,600
2c7f14f423acae0f44798d0c68bd52d611943ee2
Ensured zero health check timeout means infinite timeout. Prior to this patch, zero health check timeout was interpreted literally, which is not very helpful since a health check did not even get a chance to finish. This patch fixes this behaviour by interpreting zero as `Duration::max()` effectively rendering the time...
[ { "change_type": "MODIFY", "old_path": "include/mesos/mesos.proto", "new_path": "include/mesos/mesos.proto", "diff": "@@ -431,7 +431,8 @@ message HealthCheck {\noptional double interval_seconds = 3 [default = 10.0];\n// Amount of time to wait for the health check to complete. After this\n- // timeou...
C++
Apache License 2.0
apache/mesos
Ensured zero health check timeout means infinite timeout. Prior to this patch, zero health check timeout was interpreted literally, which is not very helpful since a health check did not even get a chance to finish. This patch fixes this behaviour by interpreting zero as `Duration::max()` effectively rendering the tim...
46,056
22.01.2017 15:00:52
-3,600
7fbe7c81b4f38c209908b98dbeddfb23cd8fd9fb
Moved `HealthChecker` into "checks" folder and namespace. Review:
[ { "change_type": "MODIFY", "old_path": "docs/health-checks.md", "new_path": "docs/health-checks.md", "diff": "@@ -253,7 +253,7 @@ task.mutable_health_check()->CopyFrom(healthCheck);\n## Under the Hood\nAll built-in executors rely on the health checker library, which lives in\n-[\"src/health-check\"]...
C++
Apache License 2.0
apache/mesos
Moved `HealthChecker` into "checks" folder and namespace. Review: https://reviews.apache.org/r/55455/
46,056
22.01.2017 15:00:59
-3,600
2e5d52991f7cfb924ce9de31200fced46ce2a460
Fixed include order in "launcher/executor.cpp". Review:
[ { "change_type": "MODIFY", "old_path": "src/launcher/executor.cpp", "new_path": "src/launcher/executor.cpp", "diff": "// See the License for the specific language governing permissions and\n// limitations under the License.\n+#include \"launcher/executor.hpp\"\n+\n#include <signal.h>\n#include <stdi...
C++
Apache License 2.0
apache/mesos
Fixed include order in "launcher/executor.cpp". Review: https://reviews.apache.org/r/55456/
46,056
22.01.2017 15:01:06
-3,600
426a82bf15fca0a3132e356f23fc2a2b533df042
Added protobufs for a general check. Review:
[ { "change_type": "MODIFY", "old_path": "include/mesos/mesos.proto", "new_path": "include/mesos/mesos.proto", "diff": "@@ -359,6 +359,77 @@ message FrameworkInfo {\n}\n+/**\n+ * Describes a general non-interpreting non-killing check for a task or\n+ * executor (or any arbitrary process/command). A ty...
C++
Apache License 2.0
apache/mesos
Added protobufs for a general check. Review: https://reviews.apache.org/r/55457/
46,056
22.01.2017 15:19:37
-3,600
784afbd6f6d543f56c57254b148bccee34cf30d3
Added validation for a general check. Review:
[ { "change_type": "MODIFY", "old_path": "src/CMakeLists.txt", "new_path": "src/CMakeLists.txt", "diff": "@@ -253,6 +253,7 @@ set(HDFS_SRC\n)\nset(HEALTH_CHECK_SRC\n+ checks/checker.cpp\nchecks/health_checker.cpp\n)\n" }, { "change_type": "MODIFY", "old_path": "src/Makefile.am", "new_p...
C++
Apache License 2.0
apache/mesos
Added validation for a general check. Review: https://reviews.apache.org/r/55458/
46,056
22.01.2017 15:20:55
-3,600
c1040ec20c309f80dee11728ea4a396579af6418
Added task check validation test. Review:
[ { "change_type": "MODIFY", "old_path": "src/Makefile.am", "new_path": "src/Makefile.am", "diff": "@@ -2196,6 +2196,7 @@ mesos_tests_SOURCES = \\\ntests/attributes_tests.cpp \\\ntests/authentication_tests.cpp \\\ntests/authorization_tests.cpp \\\n+ tests/check_tests.cpp \\\ntests/cluster.cpp \\\ntest...
C++
Apache License 2.0
apache/mesos
Added task check validation test. Review: https://reviews.apache.org/r/55459/
46,181
23.01.2017 02:00:18
-28,800
18ed9d94f5de6f4a5c9eb00a4d2996db6e726880
Fixed HTML syntax error in webui. The <table> listing completed tasks was not closed. Review:
[ { "change_type": "MODIFY", "old_path": "src/webui/master/static/home.html", "new_path": "src/webui/master/static/home.html", "diff": "<h4>Tasks</h4>\n<table class=\"table table-condensed\">\n-\n<tbody>\n<tr>\n<td>Staging</td>\n</td>\n</tr>\n</tbody>\n+ </table>\n<table m-table table-content=\"orphan...
C++
Apache License 2.0
apache/mesos
Fixed HTML syntax error in webui. The <table> listing completed tasks was not closed. Review: https://reviews.apache.org/r/55809/
46,129
22.01.2017 09:00:00
28,800
9228ebc239dac42825390bebc72053dbf3ae7b09
Fixed unsufficient root privileges check by geteuid(). We should check the root privileges by using the effective user id, instead of comparing os::user() to 'root'. Review:
[ { "change_type": "MODIFY", "old_path": "src/slave/containerizer/mesos/isolators/filesystem/linux.cpp", "new_path": "src/slave/containerizer/mesos/isolators/filesystem/linux.cpp", "diff": "@@ -66,13 +66,7 @@ namespace slave {\nTry<Isolator*> LinuxFilesystemIsolatorProcess::create(const Flags& flags)\...
C++
Apache License 2.0
apache/mesos
Fixed unsufficient root privileges check by geteuid(). We should check the root privileges by using the effective user id, instead of comparing os::user() to 'root'. Review: https://reviews.apache.org/r/54216/
46,074
23.01.2017 12:26:52
-28,800
9a80ab383ef771848066974979d688823f2f51ee
Fixed XSS vulnerability in pailer invocation. Review:
[ { "change_type": "MODIFY", "old_path": "src/webui/master/static/js/controllers.js", "new_path": "src/webui/master/static/js/controllers.js", "diff": "// specified window_title.\nfunction pailer(host, path, window_title) {\nvar url = '//' + host + '/files/read?path=' + path;\n+\n+ // The random id wo...
C++
Apache License 2.0
apache/mesos
Fixed XSS vulnerability in pailer invocation. Review: https://reviews.apache.org/r/55691/
46,159
24.01.2017 00:01:35
-28,800
18a70b0e7251342c6e62dea7b7af54ae938bb70a
Fixed navbar and logo size in WebUI. Prevented the logo from stretching the navbar height and making it consistent with the mobile version. Review:
[ { "change_type": "MODIFY", "old_path": "src/webui/master/static/css/mesos.css", "new_path": "src/webui/master/static/css/mesos.css", "diff": ".navbar .navbar-nav > li > a {\ncolor: inherit;\n- padding-top: 20px;\n- padding-bottom: 20px;\n}\n.navbar .navbar-nav > .active > a,\nbackground-color: rgba(...
C++
Apache License 2.0
apache/mesos
Fixed navbar and logo size in WebUI. Prevented the logo from stretching the navbar height and making it consistent with the mobile version. Review: https://reviews.apache.org/r/55770/
46,181
23.01.2017 17:03:11
28,800
1ba2dce6318cef3bd0fab1b9be0f8af6a03fba3b
Cleaned up `Master::updateTask` slightly. Review:
[ { "change_type": "MODIFY", "old_path": "src/master/master.cpp", "new_path": "src/master/master.cpp", "diff": "@@ -7993,7 +7993,7 @@ void Master::updateTask(Task* task, const StatusUpdate& update)\n// its state. Note that we are being defensive here because this should not\n// happen unless there is ...
C++
Apache License 2.0
apache/mesos
Cleaned up `Master::updateTask` slightly. Review: https://reviews.apache.org/r/55395/
46,181
23.01.2017 17:03:19
28,800
bf7fb1ef50672e3d82cc5ccc16f2990d14a8dc58
Moved `Slave` definitions out-of-line to master.cpp. Previously, one of the `Slave` member functions was defined out-of-line, but the rest were defined inline; make them all defined out-of-line for consistency, and also to allow the function implementations to access members of `Master` in the future. Review:
[ { "change_type": "MODIFY", "old_path": "src/master/master.cpp", "new_path": "src/master/master.cpp", "diff": "@@ -8631,6 +8631,106 @@ static bool isValidFailoverTimeout(const FrameworkInfo& frameworkInfo)\n}\n+void Master::Subscribers::send(const mesos::master::Event& event)\n+{\n+ VLOG(1) << \"Noti...
C++
Apache License 2.0
apache/mesos
Moved `Slave` definitions out-of-line to master.cpp. Previously, one of the `Slave` member functions was defined out-of-line, but the rest were defined inline; make them all defined out-of-line for consistency, and also to allow the function implementations to access members of `Master` in the future. Review: https:/...
46,181
23.01.2017 17:03:26
28,800
33e2b21f6d5faf8b27c575cef382df32f22c6b33
Marked a member function `const`. Review:
[ { "change_type": "MODIFY", "old_path": "src/master/master.cpp", "new_path": "src/master/master.cpp", "diff": "@@ -8722,10 +8722,10 @@ Slave::~Slave()\n}\n-Task* Slave::getTask(const FrameworkID& frameworkId, const TaskID& taskId)\n+Task* Slave::getTask(const FrameworkID& frameworkId, const TaskID& t...
C++
Apache License 2.0
apache/mesos
Marked a member function `const`. Review: https://reviews.apache.org/r/55473/
46,181
23.01.2017 17:03:35
28,800
484db11a4e75696fa8e047508975f8061e3c0bb4
Renamed `taskTerminated` for Slave/Framework to `recoverResources`. The old name was misleading: these functions are invoked when a task becomes unreachable, which does not count as "task termination". Review:
[ { "change_type": "MODIFY", "old_path": "src/master/master.cpp", "new_path": "src/master/master.cpp", "diff": "@@ -8038,11 +8038,11 @@ void Master::updateTask(Task* task, const StatusUpdate& update)\nSlave* slave = slaves.registered.get(task->slave_id());\nCHECK_NOTNULL(slave);\n- slave->taskTerminat...
C++
Apache License 2.0
apache/mesos
Renamed `taskTerminated` for Slave/Framework to `recoverResources`. The old name was misleading: these functions are invoked when a task becomes unreachable, which does not count as "task termination". Review: https://reviews.apache.org/r/55474/
46,181
23.01.2017 17:03:42
28,800
d4acb10d74638b24617a5007425161fad4a6d47d
Added `Master::isRemovable(const TaskState&)`. This determines whether a task in the given state can safely be discarded from the master's in-memory state. When a task becomes removable, we move the task from the master's main task data structures to a fixed-size cache (either the "unreachable" or "completed" task list...
[ { "change_type": "MODIFY", "old_path": "src/master/master.cpp", "new_path": "src/master/master.cpp", "diff": "@@ -7969,12 +7969,11 @@ void Master::updateTask(Task* task, const StatusUpdate& update)\n// task transitioned to a new state.\nbool sendSubscribersUpdate = false;\n- // Set 'terminated' to t...
C++
Apache License 2.0
apache/mesos
Added `Master::isRemovable(const TaskState&)`. This determines whether a task in the given state can safely be discarded from the master's in-memory state. When a task becomes removable, we move the task from the master's main task data structures to a fixed-size cache (either the "unreachable" or "completed" task lis...
46,181
23.01.2017 17:03:49
28,800
6fd373b2643dd792c9141c2b4833d5945a50562e
Changed TASK_UNREACHABLE to be a non-terminal state. This task state was always conceptually non-terminal, but previously `isTerminalState` returned true for it. The master now distinguishes between "removable" and "terminal" task states, so we can correctly classify TASK_UNREACHABLE as a removable but non-terminal tas...
[ { "change_type": "MODIFY", "old_path": "src/common/protobuf_utils.cpp", "new_path": "src/common/protobuf_utils.cpp", "diff": "@@ -79,14 +79,11 @@ bool frameworkHasCapability(\nbool isTerminalState(const TaskState& state)\n{\n- // TODO(neilc): Revise/rename this function. LOST, UNREACHABLE, and\n- //...
C++
Apache License 2.0
apache/mesos
Changed TASK_UNREACHABLE to be a non-terminal state. This task state was always conceptually non-terminal, but previously `isTerminalState` returned true for it. The master now distinguishes between "removable" and "terminal" task states, so we can correctly classify TASK_UNREACHABLE as a removable but non-terminal ta...
46,181
23.01.2017 17:04:00
28,800
b5711fdd12998a1b5bba206066b09a93ffc1a087
Added TASK_UNREACHABLE to master's state-summary endpoint. Review:
[ { "change_type": "MODIFY", "old_path": "src/master/http.cpp", "new_path": "src/master/http.cpp", "diff": "@@ -3108,7 +3108,11 @@ Future<Response> Master::Http::stateSummary(\nconst TaskStateSummary& summary =\ntaskStateSummaries.slave(slave->id);\n- // TODO(neilc): Update for new PARTITION_AWARE tas...
C++
Apache License 2.0
apache/mesos
Added TASK_UNREACHABLE to master's state-summary endpoint. Review: https://reviews.apache.org/r/54312/
46,181
23.01.2017 17:04:06
28,800
8234dc5f428d73783c291de973689ba3d9a1a5bd
Refactored Master::removeFramework to use Master::deactivate. Review:
[ { "change_type": "MODIFY", "old_path": "src/master/master.cpp", "new_path": "src/master/master.cpp", "diff": "@@ -2981,7 +2981,7 @@ void Master::deactivateFramework(\nreturn;\n}\n- deactivate(framework);\n+ deactivate(framework, true);\n}\n@@ -3005,11 +3005,11 @@ void Master::disconnect(Framework* f...
C++
Apache License 2.0
apache/mesos
Refactored Master::removeFramework to use Master::deactivate. Review: https://reviews.apache.org/r/54407/
46,181
23.01.2017 17:04:27
28,800
2692535bcbe4634dca0a58598093ddcf1887ca88
Cleaned up teardown tests slightly. Review:
[ { "change_type": "MODIFY", "old_path": "src/tests/teardown_tests.cpp", "new_path": "src/tests/teardown_tests.cpp", "diff": "@@ -91,7 +91,7 @@ TEST_F(TeardownTest, Success)\nmaster.get()->pid,\n\"teardown\",\ncreateBasicAuthHeaders(DEFAULT_CREDENTIAL),\n- \"frameworkId=\" + frameworkId.get().value())...
C++
Apache License 2.0
apache/mesos
Cleaned up teardown tests slightly. Review: https://reviews.apache.org/r/54794/
46,181
23.01.2017 17:04:32
28,800
6848084b8dcfe5989736e769c0357c991b9119b6
Cleaned up master.proto slightly. Review:
[ { "change_type": "MODIFY", "old_path": "include/mesos/master/master.proto", "new_path": "include/mesos/master/master.proto", "diff": "@@ -84,7 +84,7 @@ message Call {\nGET_QUOTA = 28;\nSET_QUOTA = 29; // See 'SetQuota' below.\n- REMOVE_QUOTA = 30;\n+ REMOVE_QUOTA = 30; // See 'RemoveQuota' below.\n}...
C++
Apache License 2.0
apache/mesos
Cleaned up master.proto slightly. Review: https://reviews.apache.org/r/55798/
46,181
23.01.2017 17:04:37
28,800
4c77574929a4a57dcb755f11b76c42fdd1df0787
Cleaned up SUBSCRIBE code slightly. Ensure `SUBSCRIBE` code is ordered consistently with respect to the other operator call operations. Review:
[ { "change_type": "MODIFY", "old_path": "src/master/http.cpp", "new_path": "src/master/http.cpp", "diff": "@@ -590,6 +590,9 @@ Future<Response> Master::Http::api(\ncase mesos::master::Call::GET_MASTER:\nreturn getMaster(call, principal, acceptType);\n+ case mesos::master::Call::SUBSCRIBE:\n+ return s...
C++
Apache License 2.0
apache/mesos
Cleaned up SUBSCRIBE code slightly. Ensure `SUBSCRIBE` code is ordered consistently with respect to the other operator call operations. Review: https://reviews.apache.org/r/55799/
46,181
23.01.2017 17:04:43
28,800
b12c762bc17d5b82e05f97f1bff822763fde393b
Cleaned up test case code slightly. Review:
[ { "change_type": "MODIFY", "old_path": "src/tests/partition_tests.cpp", "new_path": "src/tests/partition_tests.cpp", "diff": "@@ -184,7 +184,6 @@ TEST_F_TEMP_DISABLED_ON_WINDOWS(PartitionTest, ReregisterSlavePartitionAware)\nDROP_PROTOBUFS(PongSlaveMessage(), _, _);\nStandaloneMasterDetector detecto...
C++
Apache License 2.0
apache/mesos
Cleaned up test case code slightly. Review: https://reviews.apache.org/r/55800/
46,181
23.01.2017 17:04:50
28,800
f361b083c25219530b31ab2198f72f3900544fef
Fixed comments, usage text in mesos-execute. Review:
[ { "change_type": "MODIFY", "old_path": "src/cli/execute.cpp", "new_path": "src/cli/execute.cpp", "diff": "@@ -240,8 +240,8 @@ public:\nadd(&Flags::framework_capabilities,\n\"framework_capabilities\",\n- \"Comma separated list of optional framework capabilities to enable.\\n\"\n- \"(the only valid va...
C++
Apache License 2.0
apache/mesos
Fixed comments, usage text in mesos-execute. Review: https://reviews.apache.org/r/55801/
46,181
23.01.2017 17:05:00
28,800
4332ffac40b4b0a1a4573e50c49190ae0018ac54
Reordered function definitions to match declaration order. Review:
[ { "change_type": "MODIFY", "old_path": "src/master/master.cpp", "new_path": "src/master/master.cpp", "diff": "@@ -8414,11 +8414,11 @@ SlaveID Master::newSlaveId()\n}\n-double Master::_slaves_active()\n+double Master::_slaves_connected()\n{\ndouble count = 0.0;\nforeachvalue (Slave* slave, slaves.reg...
C++
Apache License 2.0
apache/mesos
Reordered function definitions to match declaration order. Review: https://reviews.apache.org/r/55803/
46,181
23.01.2017 17:05:07
28,800
a16c557a276acb082fd11ca7ad550f4935a29d74
Added new master metric, "unreachable_slaves". This reports the number of unreachable agents the master is tracking. Because the master GCs the list of unreachable agents, this might be smaller than the number of agents that have been marked unreachable and never re-registered. Review:
[ { "change_type": "MODIFY", "old_path": "docs/monitoring.md", "new_path": "docs/monitoring.md", "diff": "@@ -403,6 +403,15 @@ unhealthy or that they are not able to connect to the elected master.\n<td>Number of inactive agents</td>\n<td>Gauge</td>\n</tr>\n+<tr>\n+ <td>\n+ <code>master/slaves_inactive...
C++
Apache License 2.0
apache/mesos
Added new master metric, "unreachable_slaves". This reports the number of unreachable agents the master is tracking. Because the master GCs the list of unreachable agents, this might be smaller than the number of agents that have been marked unreachable and never re-registered. Review: https://reviews.apache.org/r/55...
46,181
23.01.2017 17:05:17
28,800
c66f57a901ea480294830c3f56f00af10443605d
Updated webui to display number of unreachable agents. Review:
[ { "change_type": "MODIFY", "old_path": "src/webui/master/static/home.html", "new_path": "src/webui/master/static/home.html", "diff": "<td>Deactivated</td>\n<td class=\"text-right\">{{deactivated_agents | number}}</td>\n</tr>\n+ <tr>\n+ <td>Unreachable</td>\n+ <td class=\"text-right\">{{unreachable_a...
C++
Apache License 2.0
apache/mesos
Updated webui to display number of unreachable agents. Review: https://reviews.apache.org/r/55805/
46,181
23.01.2017 17:05:23
28,800
e8ff54fd1375b4af4063fefcf43658c8dface851
Updated the list of terminal states in the webui. Review:
[ { "change_type": "MODIFY", "old_path": "src/webui/master/static/js/controllers.js", "new_path": "src/webui/master/static/js/controllers.js", "diff": "'TASK_FAILED',\n'TASK_FINISHED',\n'TASK_KILLED',\n- 'TASK_LOST'\n+ 'TASK_LOST',\n+ 'TASK_DROPPED',\n+ 'TASK_GONE',\n+ 'TASK_GONE_BY_OPERATOR'\n];\nret...
C++
Apache License 2.0
apache/mesos
Updated the list of terminal states in the webui. Review: https://reviews.apache.org/r/55807/
46,181
23.01.2017 17:05:41
28,800
f1d0cdf1db2a28fa44f7aded0c3760636c0a51de
Enabled partition-awareness in mesos-execute by default. mesos-execute will now register as a partition-aware framework by default. This behavior can be disabled via the "--no_partition-aware" flag. Review:
[ { "change_type": "MODIFY", "old_path": "src/cli/execute.cpp", "new_path": "src/cli/execute.cpp", "diff": "@@ -241,7 +241,8 @@ public:\nadd(&Flags::framework_capabilities,\n\"framework_capabilities\",\n\"Comma-separated list of optional framework capabilities to enable.\\n\"\n- \"The TASK_KILLING_STA...
C++
Apache License 2.0
apache/mesos
Enabled partition-awareness in mesos-execute by default. mesos-execute will now register as a partition-aware framework by default. This behavior can be disabled via the "--no_partition-aware" flag. Review: https://reviews.apache.org/r/55862/
46,157
23.01.2017 19:01:15
28,800
f737e93df9bebe045a1e9da487df6362073299c4
Removed an unused variable in `src/tests/protobuf_utils_tests.cpp`. Review:
[ { "change_type": "MODIFY", "old_path": "src/tests/protobuf_utils_tests.cpp", "new_path": "src/tests/protobuf_utils_tests.cpp", "diff": "@@ -116,7 +116,6 @@ TEST(ProtobufUtilTest, FrameworkCapabilities)\n};\nset<FrameworkInfo::Capability::Type> expected;\n- protobuf::framework::Capabilities capabilit...
C++
Apache License 2.0
apache/mesos
Removed an unused variable in `src/tests/protobuf_utils_tests.cpp`. Review: https://reviews.apache.org/r/55561/
46,157
23.01.2017 19:01:30
28,800
90ed0484a035b82f7a4a5bd5a8125206f1f8048f
Fixed a typo in `src/master/http.cpp`. Review:
[ { "change_type": "MODIFY", "old_path": "src/master/http.cpp", "new_path": "src/master/http.cpp", "diff": "@@ -233,7 +233,7 @@ struct FullFrameworkWriter {\n}\n// For multi-role frameworks the `role` field will be unset.\n- // Note that we could set `roles` here both both cases, which\n+ // Note that...
C++
Apache License 2.0
apache/mesos
Fixed a typo in `src/master/http.cpp`. Review: https://reviews.apache.org/r/55554/
46,062
23.01.2017 20:46:32
28,800
78663161660652cc3cda3029f9275efb12b2015a
Fixed a typo in `src/slave/http.cpp`.
[ { "change_type": "MODIFY", "old_path": "src/slave/http.cpp", "new_path": "src/slave/http.cpp", "diff": "@@ -244,7 +244,7 @@ struct FrameworkWriter\nwriter->field(\"hostname\", framework_->info.hostname());\n// For multi-role frameworks the `role` field will be unset.\n- // Note that we could set `ro...
C++
Apache License 2.0
apache/mesos
Fixed a typo in `src/slave/http.cpp`.
46,157
23.01.2017 20:53:18
28,800
26923a1de15ce59ad8499de5e09e8f7c599096c7
Added a `CHECK_EQ` in `updateFrameworkInfo`. Review:
[ { "change_type": "MODIFY", "old_path": "src/master/master.hpp", "new_path": "src/master/master.hpp", "diff": "@@ -2371,9 +2371,8 @@ struct Framework\n// 'capabilities', and 'labels'.\nvoid updateFrameworkInfo(const FrameworkInfo& source)\n{\n- // TODO(jmlvanre): We can't check 'FrameworkInfo.id' yet...
C++
Apache License 2.0
apache/mesos
Added a `CHECK_EQ` in `updateFrameworkInfo`. Review: https://reviews.apache.org/r/54898/
46,108
24.01.2017 14:58:33
28,800
7f83b6e34a2adef79a427e54f7a2dd4d5afbc1f5
Fixed bug allowing IOSwitchboard::connect() after container destruction. Review:
[ { "change_type": "MODIFY", "old_path": "src/slave/containerizer/mesos/io/switchboard.cpp", "new_path": "src/slave/containerizer/mesos/io/switchboard.cpp", "diff": "@@ -695,7 +695,7 @@ Future<http::Connection> IOSwitchboard::connect(\n})\n.then(defer(self(), [=]() -> Future<http::Connection> {\nif (!...
C++
Apache License 2.0
apache/mesos
Fixed bug allowing IOSwitchboard::connect() after container destruction. Review: https://reviews.apache.org/r/55810/
46,181
24.01.2017 15:27:56
28,800
dd04ce9ee30326ccac2f6c8ee74830797a64d688
Updated version in comment about TASK_LOST behavior. Review:
[ { "change_type": "MODIFY", "old_path": "include/mesos/mesos.proto", "new_path": "include/mesos/mesos.proto", "diff": "@@ -1681,7 +1681,7 @@ enum TaskState {\nTASK_KILLED = 4; // TERMINAL: The task was killed by the executor.\nTASK_ERROR = 7; // TERMINAL: The task description contains an error.\n- //...
C++
Apache License 2.0
apache/mesos
Updated version in comment about TASK_LOST behavior. Review: https://reviews.apache.org/r/55689/
46,078
18.01.2017 02:18:48
28,800
29565a25f283c5516c4a3ff8b121cef503060eeb
Fixed `umountAll` to also clean up mtab. Without this, Mesos tests leave garbage in /etc/mtab. Review:
[ { "change_type": "MODIFY", "old_path": "src/linux/fs.cpp", "new_path": "src/linux/fs.cpp", "diff": "// See the License for the specific language governing permissions and\n// limitations under the License.\n+#include \"linux/fs.hpp\"\n+\n#include <errno.h>\n#include <stdio.h>\n#include <string.h>\n#...
C++
Apache License 2.0
apache/mesos
Fixed `umountAll` to also clean up mtab. - Without this, Mesos tests leave garbage in /etc/mtab. Review: https://reviews.apache.org/r/55795
46,103
25.01.2017 00:00:36
28,800
9a6782ff6812da3dcc8119cf77613e72c57e4bf5
Allowed `Master::Framework::updateFrameworkInfo` to return errors. This allows us to confirm that an updated `FrameworkInfo` is fully compatible with an already known one. By performing this check in `updateFrameworkInfo` we can be sure that both the new and old `FrameworkInfo` are available (e.g., after framework rere...
[ { "change_type": "MODIFY", "old_path": "src/master/master.cpp", "new_path": "src/master/master.cpp", "diff": "@@ -2579,7 +2579,20 @@ void Master::_subscribe(\n// it may or may not currently be connected.\nLOG(INFO) << \"Updating info for framework \" << framework->id();\n+ Try<Nothing> updateFramewo...
C++
Apache License 2.0
apache/mesos
Allowed `Master::Framework::updateFrameworkInfo` to return errors. This allows us to confirm that an updated `FrameworkInfo` is fully compatible with an already known one. By performing this check in `updateFrameworkInfo` we can be sure that both the new and old `FrameworkInfo` are available (e.g., after framework rer...
46,103
25.01.2017 00:00:52
28,800
63a3c149841826098e027f5be03fb79c875ba8f3
Disallow multi-role frameworks to change their roles. We currently do not allow `MULTI_ROLE` frameworks to change their roles. This restriction will be lifted later. Review:
[ { "change_type": "MODIFY", "old_path": "src/master/master.hpp", "new_path": "src/master/master.hpp", "diff": "#include <list>\n#include <memory>\n+#include <set>\n#include <string>\n#include <vector>\n@@ -2379,6 +2380,46 @@ struct Framework\n// TODO(jmlvanre): Merge other fields as per design doc in...
C++
Apache License 2.0
apache/mesos
Disallow multi-role frameworks to change their roles. We currently do not allow `MULTI_ROLE` frameworks to change their roles. This restriction will be lifted later. Review: https://reviews.apache.org/r/55271/
46,074
25.01.2017 22:29:44
-28,800
e874f530619c9807ca0859682402084a8aa2ee0e
Fixed to comments in commit 9a80ab. Review:
[ { "change_type": "MODIFY", "old_path": "src/webui/master/static/js/controllers.js", "new_path": "src/webui/master/static/js/controllers.js", "diff": "function pailer(host, path, window_title) {\nvar url = '//' + host + '/files/read?path=' + path;\n- // The random id would be clean up once the pailer...
C++
Apache License 2.0
apache/mesos
Fixed to comments in commit 9a80ab. Review: https://reviews.apache.org/r/55889/
46,129
25.01.2017 07:51:39
28,800
37f2e7d15168e8d9fa76b4fcd61a6c0c6c7c8370
Supported more layers through symlink for aufs backend. This issue is similar to We use the same solution (using symlinks) to resolve many-layer image issue with aufs backend. Review:
[ { "change_type": "MODIFY", "old_path": "src/slave/containerizer/mesos/provisioner/backends/aufs.cpp", "new_path": "src/slave/containerizer/mesos/provisioner/backends/aufs.cpp", "diff": "#include <stout/adaptor.hpp>\n#include <stout/foreach.hpp>\n+#include <stout/fs.hpp>\n#include <stout/os.hpp>\n+#i...
C++
Apache License 2.0
apache/mesos
Supported more layers through symlink for aufs backend. This issue is similar to MESOS-6000. We use the same solution (using symlinks) to resolve many-layer image issue with aufs backend. Review: https://reviews.apache.org/r/54213/
46,129
25.01.2017 07:51:44
28,800
dd0da9e8982cd65c5178d872ae8723f5f7db09e4
Added unit test for aufs backend supporting many layers. Review:
[ { "change_type": "MODIFY", "old_path": "src/tests/containerizer/provisioner_backend_tests.cpp", "new_path": "src/tests/containerizer/provisioner_backend_tests.cpp", "diff": "@@ -255,6 +255,49 @@ TEST_F(AufsBackendTest, ROOT_AUFS_AufsBackend)\nEXPECT_FALSE(os::exists(rootfs));\n}\n+\n+\n+// Test aufs...
C++
Apache License 2.0
apache/mesos
Added unit test for aufs backend supporting many layers. Review: https://reviews.apache.org/r/54214/
46,129
25.01.2017 07:51:47
28,800
96165d35acafd020e4b0418b7c042caec18623f2
Replaced os::getcwd() to sandbox.get() in provisioner test. Review:
[ { "change_type": "MODIFY", "old_path": "src/tests/containerizer/provisioner_backend_tests.cpp", "new_path": "src/tests/containerizer/provisioner_backend_tests.cpp", "diff": "@@ -81,19 +81,19 @@ class OverlayBackendTest : public MountBackendTest {};\n// Provision a rootfs using multiple layers with t...
C++
Apache License 2.0
apache/mesos
Replaced os::getcwd() to sandbox.get() in provisioner test. Review: https://reviews.apache.org/r/54816/
46,129
25.01.2017 07:51:54
28,800
6302207ca68001d49ef4cbe721a21e9c55984c9a
Added linux helper function fs::type() for filesystem id detection. Get filesystem type id by using statfs() from <sys/vfs.h>. Review:
[ { "change_type": "MODIFY", "old_path": "src/linux/fs.cpp", "new_path": "src/linux/fs.cpp", "diff": "@@ -89,6 +89,17 @@ Try<bool> supported(const string& fsname)\nreturn false;\n}\n+\n+Try<uint32_t> type(const string& path)\n+{\n+ struct statfs buf;\n+ if (statfs(path.c_str(), &buf) < 0) {\n+ return ...
C++
Apache License 2.0
apache/mesos
Added linux helper function fs::type() for filesystem id detection. Get filesystem type id by using statfs() from <sys/vfs.h>. Review: https://reviews.apache.org/r/55713/
46,129
25.01.2017 07:51:59
28,800
2f80d59fddd0340970e9aaabcb39bd30765a21e3
Added fs::typeName() mapping function for fs id to fs type mapping. Review:
[ { "change_type": "MODIFY", "old_path": "src/linux/fs.cpp", "new_path": "src/linux/fs.cpp", "diff": "@@ -100,6 +100,39 @@ Try<uint32_t> type(const string& path)\n}\n+Try<string> typeName(uint32_t fsType)\n+{\n+ // `typeNames` maps a filesystem id to its filesystem type name.\n+ hashmap<uint32_t, stri...
C++
Apache License 2.0
apache/mesos
Added fs::typeName() mapping function for fs id to fs type mapping. Review: https://reviews.apache.org/r/55714/
46,139
26.01.2017 02:11:13
-28,800
636866c540c696ec99785fd27328f93201e88d3d
Renamed `taskID` to `taskId` in `HealthChecker`. We normally use `taskId` for variables that hold a `TaskID`, so I renamed the attribute/parameters to be consistent with the rest of the codebase. Review:
[ { "change_type": "MODIFY", "old_path": "src/checks/health_checker.cpp", "new_path": "src/checks/health_checker.cpp", "diff": "@@ -122,7 +122,7 @@ Try<Owned<HealthChecker>> HealthChecker::create(\nconst HealthCheck& check,\nconst string& launcherDir,\nconst lambda::function<void(const TaskHealthStatu...
C++
Apache License 2.0
apache/mesos
Renamed `taskID` to `taskId` in `HealthChecker`. We normally use `taskId` for variables that hold a `TaskID`, so I renamed the attribute/parameters to be consistent with the rest of the codebase. Review: https://reviews.apache.org/r/55899/
46,077
26.01.2017 02:21:10
-28,800
416b26675e384d5a1b9c0fe61de20fe43f0e7a39
Fixed a typo in webui. Review:
[ { "change_type": "MODIFY", "old_path": "src/webui/master/static/index.html", "new_path": "src/webui/master/static/index.html", "diff": "<img src=\"/static/img/loading.gif\" height=\"64\" width=\"64\" alt=\"\">\n</div>\n- <div ng-controller=\"MainCntl\">\n+ <div ng-controller=\"MainCtrl\">\n<header c...
C++
Apache License 2.0
apache/mesos
Fixed a typo in webui. Review: https://reviews.apache.org/r/54834/
46,077
26.01.2017 02:24:44
-28,800
42e515bc5c175a318e914d34473016feda4db6ff
Fixed incorrect `/monitor/statistics` URL in WebUI. When launches Mesos in local mode, all requests send to agents need to specific the agent id in URL explicitly. Review:
[ { "change_type": "MODIFY", "old_path": "src/webui/master/static/js/controllers.js", "new_path": "src/webui/master/static/js/controllers.js", "diff": "// Set up polling for the monitor if this is the first update.\nif (!$top.started()) {\n- $top.start(host, $scope);\n+ $top.start(host, id, $scope);\n...
C++
Apache License 2.0
apache/mesos
Fixed incorrect `/monitor/statistics` URL in WebUI. When launches Mesos in local mode, all requests send to agents need to specific the agent id in URL explicitly. Review: https://reviews.apache.org/r/53291/
46,181
25.01.2017 11:17:53
28,800
9fd9fbb5ada3ff414d3f4e598d5656829c3b3562
Fixed bug when applying review chains. When applying a chain of reviews with `-c`, only the patch for the last review in the chain was cleaned up at-exit. Review:
[ { "change_type": "MODIFY", "old_path": "support/apply-reviews.py", "new_path": "support/apply-reviews.py", "diff": "@@ -116,7 +116,10 @@ def shell(command, dry_run):\ndef apply_review():\n\"\"\"Applies a review with a given ID locally.\"\"\"\n# Make sure we don't leave the patch behind in case of fa...
C++
Apache License 2.0
apache/mesos
Fixed bug when applying review chains. When applying a chain of reviews with `-c`, only the patch for the last review in the chain was cleaned up at-exit. Review: https://reviews.apache.org/r/55858/
46,077
26.01.2017 02:28:28
-28,800
f64e7acea6abad70fcde1175c46fde763c74c4a1
Made the style of the cluster name consistent with others. Made the style of the cluster name consistent with other texts in the navbar. Review:
[ { "change_type": "MODIFY", "old_path": "src/webui/master/static/index.html", "new_path": "src/webui/master/static/index.html", "diff": "</ul>\n<ul class=\"nav navbar-nav navbar-right\">\n<li>\n- <p class=\"navbar-text\" data-ng-cloak>{{state.cluster}}</p>\n+ <a class=\"btn disabled\" data-ng-cloak>{...
C++
Apache License 2.0
apache/mesos
Made the style of the cluster name consistent with others. Made the style of the cluster name consistent with other texts in the navbar. Review: https://reviews.apache.org/r/54410/
46,077
26.01.2017 11:27:54
-28,800
f698910ced01061f257bbf994832b97a432da336
Reorganized the work directory and the runtime directory in local mode. Review:
[ { "change_type": "MODIFY", "old_path": "bin/mesos-local-flags.sh.in", "new_path": "bin/mesos-local-flags.sh.in", "diff": "# See the License for the specific language governing permissions and\n# limitations under the License.\n-export MESOS_WORK_DIR=/tmp/mesos\n-\n. @abs_top_builddir@/bin/mesos-mast...
C++
Apache License 2.0
apache/mesos
Reorganized the work directory and the runtime directory in local mode. Review: https://reviews.apache.org/r/52787/
46,077
26.01.2017 11:28:23
-28,800
dfb088db50fe4b4984919997dc7c81839d9046fc
Updated scripts to allow override of MESOS environment variables. Review:
[ { "change_type": "MODIFY", "old_path": "bin/mesos-agent-flags.sh.in", "new_path": "bin/mesos-agent-flags.sh.in", "diff": "# See the License for the specific language governing permissions and\n# limitations under the License.\n-export MESOS_LAUNCHER_DIR=@abs_top_builddir@/src\n+: ${MESOS_LAUNCHER_DI...
C++
Apache License 2.0
apache/mesos
Updated scripts to allow override of MESOS environment variables. Review: https://reviews.apache.org/r/52919/
46,157
26.01.2017 12:00:38
28,800
a66bd8704b8592289105b751861355fa9b372119
Added a `install` template method to support 8 arguments. Review:
[ { "change_type": "MODIFY", "old_path": "3rdparty/libprocess/include/process/protobuf.hpp", "new_path": "3rdparty/libprocess/include/process/protobuf.hpp", "diff": "@@ -304,6 +304,38 @@ protected:\ndelete m;\n}\n+ template <typename M,\n+ typename P1, typename P1C,\n+ typename P2, typename P2C,\n+ ty...
C++
Apache License 2.0
apache/mesos
Added a `install` template method to support 8 arguments. Review: https://reviews.apache.org/r/55945/
46,157
26.01.2017 11:55:34
28,800
2ff8f0129996e79ba07e19fbbc7b8472a2bde448
Moved agent capabilities from SlaveInfo to (re-)registerSlaveMessage. We want agents to be able to upgrade to support new capabilities after reregistration, however we don't support udpating SlaveInfo yet. This patch moves agent capabilities protobuf message from SlaveInfo to the (re-)registerSlaveMessage so that capab...
[ { "change_type": "MODIFY", "old_path": "include/mesos/mesos.proto", "new_path": "include/mesos/mesos.proto", "diff": "@@ -792,11 +792,6 @@ message SlaveInfo {\n// Enum fields should be optional, see: MESOS-4997.\noptional Type type = 1;\n}\n-\n- // This field allows an agent to advertise its set of\...
C++
Apache License 2.0
apache/mesos
Moved agent capabilities from SlaveInfo to (re-)registerSlaveMessage. We want agents to be able to upgrade to support new capabilities after reregistration, however we don't support udpating SlaveInfo yet. This patch moves agent capabilities protobuf message from SlaveInfo to the (re-)registerSlaveMessage so that capa...
46,157
26.01.2017 12:06:59
28,800
595250d29a85c216fc490069d13eb6eabba16f70
Updated the protobuf tests to reflect agent capabilities moving. Since the agent capabilities have been moved into the (re-)registration messages, the test needs to be updated. Review:
[ { "change_type": "MODIFY", "old_path": "src/tests/protobuf_utils_tests.cpp", "new_path": "src/tests/protobuf_utils_tests.cpp", "diff": "@@ -138,16 +138,17 @@ TEST(ProtobufUtilTest, FrameworkCapabilities)\n// This tests that Capabilities are correctly constructed\n-// from given SlaveInfo Capabilitie...
C++
Apache License 2.0
apache/mesos
Updated the protobuf tests to reflect agent capabilities moving. Since the agent capabilities have been moved into the (re-)registration messages, the test needs to be updated. Review: https://reviews.apache.org/r/55944/
46,157
26.01.2017 12:03:00
28,800
b54cdcd95a31ed8db767ae8ea7cfb96b72951aae
Added agent capabilities as part of agent (re-)registration process. Agent capabilities are communicated during registration and stored in `Slave` struct in master. Upon agent reregistration, capabilities are updated. Review:
[ { "change_type": "MODIFY", "old_path": "src/master/master.cpp", "new_path": "src/master/master.cpp", "diff": "@@ -793,7 +793,8 @@ void Master::initialize()\n&Master::registerSlave,\n&RegisterSlaveMessage::slave,\n&RegisterSlaveMessage::checkpointed_resources,\n- &RegisterSlaveMessage::version);\n+ &...
C++
Apache License 2.0
apache/mesos
Added agent capabilities as part of agent (re-)registration process. Agent capabilities are communicated during registration and stored in `Slave` struct in master. Upon agent reregistration, capabilities are updated. Review: https://reviews.apache.org/r/55946/
46,165
20.01.2017 18:37:58
28,800
8d41ca4a395ed355604b54fea14cca464f768277
Added the ability to devolve v1 Resources. Review:
[ { "change_type": "MODIFY", "old_path": "src/internal/devolve.cpp", "new_path": "src/internal/devolve.cpp", "diff": "using std::string;\n+using google::protobuf::RepeatedPtrField;\n+\nnamespace mesos {\nnamespace internal {\n@@ -102,6 +104,19 @@ Offer devolve(const v1::Offer& offer)\n}\n+Resource dev...
C++
Apache License 2.0
apache/mesos
Added the ability to devolve v1 Resources. Review: https://reviews.apache.org/r/55827
46,165
23.01.2017 16:04:56
28,800
df9aa8872e157ee73b78fbea8202d976917d11f0
Added CHECK failure logging to the sorter. Review:
[ { "change_type": "MODIFY", "old_path": "src/master/allocator/sorter/drf/sorter.cpp", "new_path": "src/master/allocator/sorter/drf/sorter.cpp", "diff": "@@ -352,7 +352,8 @@ void DRFSorter::remove(const SlaveID& slaveId, const Resources& resources)\n{\nif (!resources.empty()) {\nCHECK(total_.resources...
C++
Apache License 2.0
apache/mesos
Added CHECK failure logging to the sorter. Review: https://reviews.apache.org/r/55866