mesos git commit: Copy-edited the documentation for GPU support.

2017-07-19 Thread neilc
Repository: mesos Updated Branches: refs/heads/master b464617ba -> b1eb4accd Copy-edited the documentation for GPU support. Project: http://git-wip-us.apache.org/repos/asf/mesos/repo Commit: http://git-wip-us.apache.org/repos/asf/mesos/commit/b1eb4acc Tree:

[3/8] mesos git commit: Added master and agent flags to specify domain.

2017-07-11 Thread neilc
Added master and agent flags to specify domain. Added master and agent flags to specify domain. Review: https://reviews.apache.org/r/59761/ Project: http://git-wip-us.apache.org/repos/asf/mesos/repo Commit: http://git-wip-us.apache.org/repos/asf/mesos/commit/5b99d394 Tree:

[5/8] mesos git commit: Caused master to abort when joining a mixed-region cluster.

2017-07-11 Thread neilc
Caused master to abort when joining a mixed-region cluster. That is, if a standby master is configured to use region X but it learns that the current master has region Y, the standby master will abort with an error message. This enforces the requirement that all masters in a single Mesos cluster

[1/8] mesos git commit: Added protobuf definitions for fault domains.

2017-07-11 Thread neilc
Repository: mesos Updated Branches: refs/heads/master 4e41d847e -> 33093c893 Added protobuf definitions for fault domains. This introduces a first-class notion of a "domain", which is a set of hosts that have similar characteristics. Mesos will initially only support "fault domains", which

[8/8] mesos git commit: Added agent domain to Offer message.

2017-07-11 Thread neilc
Added agent domain to Offer message. This is a convenience mechanism to allow frameworks to determine the domain of an agent when they receive a resource offer. Review: https://reviews.apache.org/r/59921/ Project: http://git-wip-us.apache.org/repos/asf/mesos/repo Commit:

[6/8] mesos git commit: Ignore registration attempts by agents with misconfigured domain.

2017-07-11 Thread neilc
he agent is configured with a domain but the master is not, + // we can't determine whether the agent is remote. To be safe, we + // don't allow the agent to register. We don't shutdown the agent so + // that any tasks on the agent can continue to run. + // + // TODO(neilc): Consider sending a warnin

[2/8] mesos git commit: Added REGION_AWARE framework capability.

2017-07-11 Thread neilc
Added REGION_AWARE framework capability. Added REGION_AWARE framework capability. Review: https://reviews.apache.org/r/59760/ Project: http://git-wip-us.apache.org/repos/asf/mesos/repo Commit: http://git-wip-us.apache.org/repos/asf/mesos/commit/4189a450 Tree:

[4/8] mesos git commit: Added domain to MasterInfo and SlaveInfo.

2017-07-11 Thread neilc
Added domain to MasterInfo and SlaveInfo. This means that each master's domain is stored in ZooKeeper, along with the rest of the MasterInfo protobuf message. Each agent's domain is stored as part of its checkpointed resources. Changing the agent's domain requires a full drain of the agent; this

[7/8] mesos git commit: Changed allocator to offer remote resources to region-aware frameworks.

2017-07-11 Thread neilc
EXPECT_CALL(sched, registered(, _, _)); + +Future<vector> offers; +EXPECT_CALL(sched, resourceOffers(, _)) + .WillOnce(FutureArg<1>()); + +driver.start(); + +AWAIT_READY(offers); +ASSERT_FALSE(offers->empty()); + +Offer offer = offers->front(); + +

mesos git commit: Improved the documentation of 'TASK_LOST'.

2017-07-05 Thread neilc
Repository: mesos Updated Branches: refs/heads/master 08f6b428f -> df27b4922 Improved the documentation of 'TASK_LOST'. Updated the protobuf comments to clarify that 'TASK_LOST' is not always a terminal state. Review: https://reviews.apache.org/r/60346/ Project:

mesos git commit: Fixed flaky PersistentVolumeEndpointsTest.ReserveAndSlaveRemoval.

2017-07-05 Thread neilc
Repository: mesos Updated Branches: refs/heads/master b153cb95d -> 08f6b428f Fixed flaky PersistentVolumeEndpointsTest.ReserveAndSlaveRemoval. Review: https://reviews.apache.org/r/60485/ Project: http://git-wip-us.apache.org/repos/asf/mesos/repo Commit:

[1/2] mesos git commit: Cleaned up zookeeper binding code slightly.

2017-06-26 Thread neilc
Repository: mesos Updated Branches: refs/heads/master 2e3b15cf9 -> d31c8f0a8 Cleaned up zookeeper binding code slightly. Review: https://reviews.apache.org/r/60161/ Project: http://git-wip-us.apache.org/repos/asf/mesos/repo Commit:

[2/2] mesos git commit: Fixed bug in GroupTest.ConnectTimer, GroupTest.TimerCleanup.

2017-06-26 Thread neilc
Fixed bug in GroupTest.ConnectTimer, GroupTest.TimerCleanup. These tests looked for dispatches to `GroupProces::expired` as a way to determine when the current Zk session has expired. However, the previous implementation of the connect timer (`GroupProcess::timedout`) invoked

[4/7] mesos git commit: Added sanity check to resource downgrade on agent registration.

2017-06-24 Thread neilc
Added sanity check to resource downgrade on agent registration. `SlaveInfo.resources` should always be representable in the "pre-reservation-refinement" format, so `downgradeResources` should always succeed. Review: https://reviews.apache.org/r/60406 Project:

[3/7] mesos git commit: Added comment to master logic for downgrading checkpointed resources.

2017-06-24 Thread neilc
s +// might occur if a reservation refinement is created but never +// reaches the agent (e.g., due to network partition), and then +// the agent is downgraded before the partition heals. +// +// TODO(neilc): It would probably be better to prevent the agent +// from re-registe

[6/7] mesos git commit: Avoided master crash on re-registration of old agents.

2017-06-24 Thread neilc
eworks_.contains(executor.framework_id())); injectAllocationInfo( executor.mutable_resources(), frameworks_.at(executor.framework_id())); +} + } + // If the agent is not refinement-capable, convert its resources + // from the "pre-refinement" format to the "post-r

[1/7] mesos git commit: Documented the content of the `SlaveInfo.resources` field.

2017-06-24 Thread neilc
Repository: mesos Updated Branches: refs/heads/master 2075a9807 -> abe9d1b4a Documented the content of the `SlaveInfo.resources` field. Review: https://reviews.apache.org/r/60404 Project: http://git-wip-us.apache.org/repos/asf/mesos/repo Commit:

[2/7] mesos git commit: Documented resource format in agent <-> master protocol.

2017-06-24 Thread neilc
Documented resource format in agent <-> master protocol. Review: https://reviews.apache.org/r/60405 Project: http://git-wip-us.apache.org/repos/asf/mesos/repo Commit: http://git-wip-us.apache.org/repos/asf/mesos/commit/09fcc7fd Tree: http://git-wip-us.apache.org/repos/asf/mesos/tree/09fcc7fd

[7/7] mesos git commit: Updated comments and help text in mesos-execute.

2017-06-24 Thread neilc
Updated comments and help text in mesos-execute. Review: https://reviews.apache.org/r/60417 Project: http://git-wip-us.apache.org/repos/asf/mesos/repo Commit: http://git-wip-us.apache.org/repos/asf/mesos/commit/abe9d1b4 Tree: http://git-wip-us.apache.org/repos/asf/mesos/tree/abe9d1b4 Diff:

[5/7] mesos git commit: Avoided master crash on agent re-registration.

2017-06-24 Thread neilc
// includes the `validateAllocatedToSingleRole` check, which is +// not valid for agent re-registration. +// +// TODO(neilc): Consider refactoring `internal::validateResources` +// to allow some but not all checks to be applied, or else inject +// allocation info into executor re

mesos git commit: Added test for reservation refinements and old agents.

2017-06-22 Thread neilc
Repository: mesos Updated Branches: refs/heads/master 42ca18cfb -> 557ced0f3 Added test for reservation refinements and old agents. If the agent does not support reservation refinements, attempts to create a reservation refinement on the agent should be dropped by the master. Review:

mesos git commit: Tidied up lambda capture list.

2017-06-20 Thread neilc
Repository: mesos Updated Branches: refs/heads/master 3bea3fcb4 -> 87d4bfcc8 Tidied up lambda capture list. This commit removes capture of 'DISK_SIZE' which is neither used in the lambda nor captured to extend its lifetime. Review: https://reviews.apache.org/r/60244/ Project:

mesos git commit: Tweaked a parameter to pass by const ref instead of value.

2017-06-19 Thread neilc
Repository: mesos Updated Branches: refs/heads/master 4f78c0310 -> 6c0d9c5d3 Tweaked a parameter to pass by const ref instead of value. Tweaked a parameter to pass by const ref instead of value. Review: https://reviews.apache.org/r/60138/ Project:

mesos git commit: Fixed typos in comments.

2017-06-18 Thread neilc
Repository: mesos Updated Branches: refs/heads/master dd1c60d29 -> 07fff4ab2 Fixed typos in comments. Project: http://git-wip-us.apache.org/repos/asf/mesos/repo Commit: http://git-wip-us.apache.org/repos/asf/mesos/commit/07fff4ab Tree:

mesos git commit: Used `Bytes` rather than `Megabytes` in two places.

2017-06-18 Thread neilc
Repository: mesos Updated Branches: refs/heads/master 393f89890 -> dd1c60d29 Used `Bytes` rather than `Megabytes` in two places. This matches the typical idiom for using `Bytes`: use a child class constructor (e.g., `Megabytes(10)`), but pass around variables of the parent class type

mesos git commit: Fixed file name of blog post for Mesos 1.3.0.

2017-06-15 Thread neilc
Repository: mesos Updated Branches: refs/heads/master 64b9ff841 -> 20e1c740e Fixed file name of blog post for Mesos 1.3.0. Project: http://git-wip-us.apache.org/repos/asf/mesos/repo Commit: http://git-wip-us.apache.org/repos/asf/mesos/commit/20e1c740 Tree:

[2/2] mesos git commit: Fixed whitespace infelicities in stout.

2017-06-15 Thread neilc
Fixed whitespace infelicities in stout. Project: http://git-wip-us.apache.org/repos/asf/mesos/repo Commit: http://git-wip-us.apache.org/repos/asf/mesos/commit/64b9ff84 Tree: http://git-wip-us.apache.org/repos/asf/mesos/tree/64b9ff84 Diff:

mesos git commit: Fixed whitespace infelicities.

2017-06-15 Thread neilc
Repository: mesos Updated Branches: refs/heads/master b055ff63e -> 200bf1d67 Fixed whitespace infelicities. Project: http://git-wip-us.apache.org/repos/asf/mesos/repo Commit: http://git-wip-us.apache.org/repos/asf/mesos/commit/200bf1d6 Tree:

mesos git commit: Synchronized comment in v1 and unversioned master.proto.

2017-06-13 Thread neilc
mesos/v1/master/master.proto index f8711e4..cf88ea6 100644 --- a/include/mesos/v1/master/master.proto +++ b/include/mesos/v1/master/master.proto @@ -359,8 +359,7 @@ message Response { // frameworks are now reported in the `frameworks` list with the // `recovered` field set to true. // -

mesos git commit: Updated website for Mesos 1.3.0 release.

2017-06-12 Thread neilc
Repository: mesos Updated Branches: refs/heads/master a88510932 -> 03f1713d3 Updated website for Mesos 1.3.0 release. An earlier commit (b08bb6baf067e8c9a4236e55c92dadd5f51d1684) updated the Mesos version in the docs but not the website itself. Review: https://reviews.apache.org/r/59903

mesos git commit: Fixed typos.

2017-06-10 Thread neilc
Repository: mesos Updated Branches: refs/heads/master afe886c1d -> 776137acc Fixed typos. Project: http://git-wip-us.apache.org/repos/asf/mesos/repo Commit: http://git-wip-us.apache.org/repos/asf/mesos/commit/776137ac Tree: http://git-wip-us.apache.org/repos/asf/mesos/tree/776137ac Diff:

mesos git commit: Update website for Mesos 1.3.0 release.

2017-06-07 Thread neilc
Repository: mesos Updated Branches: refs/heads/master b882f6639 -> b08bb6baf Update website for Mesos 1.3.0 release. Project: http://git-wip-us.apache.org/repos/asf/mesos/repo Commit: http://git-wip-us.apache.org/repos/asf/mesos/commit/b08bb6ba Tree:

[2/2] mesos git commit: Cleared ResourceProviderID with createStrippedScalarQuantity.

2017-06-07 Thread neilc
Cleared ResourceProviderID with createStrippedScalarQuantity. Review: https://reviews.apache.org/r/59882/ Project: http://git-wip-us.apache.org/repos/asf/mesos/repo Commit: http://git-wip-us.apache.org/repos/asf/mesos/commit/c5274141 Tree:

mesos git commit: Updated comment for addition of SharedInfo to Resource.

2017-06-06 Thread neilc
Repository: mesos Updated Branches: refs/heads/master ed623fd92 -> f970f2f30 Updated comment for addition of SharedInfo to Resource. Project: http://git-wip-us.apache.org/repos/asf/mesos/repo Commit: http://git-wip-us.apache.org/repos/asf/mesos/commit/f970f2f3 Tree:

mesos git commit: Fixed googletest target name in mesos-tidy script.

2017-06-06 Thread neilc
Repository: mesos Updated Branches: refs/heads/master 7ec3269d5 -> ed623fd92 Fixed googletest target name in mesos-tidy script. Fixed googletest target name in mesos-tidy script. Review: https://reviews.apache.org/r/59840/ Project: http://git-wip-us.apache.org/repos/asf/mesos/repo Commit:

mesos git commit: Corrected a few comments.

2017-06-05 Thread neilc
Repository: mesos Updated Branches: refs/heads/master d042f452f -> cb4dc7643 Corrected a few comments. Project: http://git-wip-us.apache.org/repos/asf/mesos/repo Commit: http://git-wip-us.apache.org/repos/asf/mesos/commit/cb4dc764 Tree:

mesos git commit: Clarified docs for multi-role frameworks and offers.

2017-06-01 Thread neilc
Repository: mesos Updated Branches: refs/heads/master d87f496b2 -> 178a3cccd Clarified docs for multi-role frameworks and offers. Project: http://git-wip-us.apache.org/repos/asf/mesos/repo Commit: http://git-wip-us.apache.org/repos/asf/mesos/commit/178a3ccc Tree:

mesos git commit: Synchronized help text and doc text for --allowed_capabilities flag.

2017-06-01 Thread neilc
Repository: mesos Updated Branches: refs/heads/master f3a1ad0a1 -> 1afc364c0 Synchronized help text and doc text for --allowed_capabilities flag. Project: http://git-wip-us.apache.org/repos/asf/mesos/repo Commit: http://git-wip-us.apache.org/repos/asf/mesos/commit/1afc364c Tree:

[2/2] mesos git commit: Fixed various minor stylistic issues with flag help text.

2017-05-31 Thread neilc
Fixed various minor stylistic issues with flag help text. Project: http://git-wip-us.apache.org/repos/asf/mesos/repo Commit: http://git-wip-us.apache.org/repos/asf/mesos/commit/f3a1ad0a Tree: http://git-wip-us.apache.org/repos/asf/mesos/tree/f3a1ad0a Diff:

[1/2] mesos git commit: Ordered configuration flag docs alphabetically.

2017-05-31 Thread neilc
Repository: mesos Updated Branches: refs/heads/master a85a228d6 -> f3a1ad0a1 Ordered configuration flag docs alphabetically. Project: http://git-wip-us.apache.org/repos/asf/mesos/repo Commit: http://git-wip-us.apache.org/repos/asf/mesos/commit/7c1c96d7 Tree:

mesos git commit: Tweak wording of master flag usage text.

2017-05-31 Thread neilc
Repository: mesos Updated Branches: refs/heads/master 0bc502292 -> d5c5561c0 Tweak wording of master flag usage text. Project: http://git-wip-us.apache.org/repos/asf/mesos/repo Commit: http://git-wip-us.apache.org/repos/asf/mesos/commit/d5c5561c Tree:

[04/10] mesos git commit: Fixed some inaccurate comments.

2017-05-31 Thread neilc
// - // TODO(neilc): Remove this field after a deprecation cycle starting -// in Mesos 1.2. + // TODO(neilc): Remove this field in Mesos 2.0. repeated FrameworkInfo recovered_frameworks = 3; } @@ -375,10 +374,10 @@ message Response { repeated Executor executors = 1; -

[06/10] mesos git commit: Removed code for old agents when handling status updates.

2017-05-31 Thread neilc
Removed code for old agents when handling status updates. 0.x agents are no longer supported. Review: https://reviews.apache.org/r/59218 Project: http://git-wip-us.apache.org/repos/asf/mesos/repo Commit: http://git-wip-us.apache.org/repos/asf/mesos/commit/85569d00 Tree:

[03/10] mesos git commit: Removed orphaned tasks from webui.

2017-05-31 Thread neilc
Removed orphaned tasks from webui. Now that 0.x agents are not allowed to register with the master, orphan tasks should no longer be possible. Review: https://reviews.apache.org/r/59215 Project: http://git-wip-us.apache.org/repos/asf/mesos/repo Commit:

[08/10] mesos git commit: Cleaned up master code to check for PARTITION_AWARE capability.

2017-05-31 Thread neilc
Cleaned up master code to check for PARTITION_AWARE capability. Review: https://reviews.apache.org/r/59259 Project: http://git-wip-us.apache.org/repos/asf/mesos/repo Commit: http://git-wip-us.apache.org/repos/asf/mesos/commit/9529ebfe Tree:

[10/10] mesos git commit: Simplified master logic for agent re-registration.

2017-05-31 Thread neilc
Simplified master logic for agent re-registration. Now that 0.x agents are not supported, the master logic can be simplified somewhat. Review: https://reviews.apache.org/r/59302 Project: http://git-wip-us.apache.org/repos/asf/mesos/repo Commit:

[01/10] mesos git commit: Cleaned up agent re-registration code in the master slightly.

2017-05-31 Thread neilc
Repository: mesos Updated Branches: refs/heads/master 4dae1f8d9 -> 8054de196 Cleaned up agent re-registration code in the master slightly. Review: https://reviews.apache.org/r/59213 Project: http://git-wip-us.apache.org/repos/asf/mesos/repo Commit:

[05/10] mesos git commit: Removed outdated comments.

2017-05-31 Thread neilc
Removed outdated comments. 0.x agents are no longer supported. Review: https://reviews.apache.org/r/59217 Project: http://git-wip-us.apache.org/repos/asf/mesos/repo Commit: http://git-wip-us.apache.org/repos/asf/mesos/commit/9efbc39c Tree:

[09/10] mesos git commit: Marked a few deprecated proto fields with the "deprecated" option.

2017-05-31 Thread neilc
os/master/master.proto +++ b/include/mesos/master/master.proto @@ -360,7 +360,7 @@ message Response { // `recovered` field set to true. // // TODO(neilc): Remove this field in Mesos 2.0. -repeated FrameworkInfo recovered_frameworks = 3; +repeated FrameworkInfo recovered_framework

[02/10] mesos git commit: Removed code for handling missing FrameworkInfo of a running task.

2017-05-31 Thread neilc
h frameworks are only -// possible if the cluster contains pre-1.0 agents. -// -// TODO(neilc): Remove this once we break compatibility with -// pre-1.0 agents. -// -// TODO(vinod): Need to filter these frameworks based on authorization! -//

mesos git commit: Fixed flakiness in OneWayPartitionTest.MasterToSlave.

2017-05-31 Thread neilc
Repository: mesos Updated Branches: refs/heads/master 6ea47691d -> 4dae1f8d9 Fixed flakiness in OneWayPartitionTest.MasterToSlave. The test did not pause the clock. This allowed the following sequence of events to occur, with low probability: (1) Agent sends register message M1 to master.

mesos git commit: Fixed typo in comment.

2017-05-30 Thread neilc
Repository: mesos Updated Branches: refs/heads/master ad100c322 -> 80f13bfd0 Fixed typo in comment. Project: http://git-wip-us.apache.org/repos/asf/mesos/repo Commit: http://git-wip-us.apache.org/repos/asf/mesos/commit/80f13bfd Tree: http://git-wip-us.apache.org/repos/asf/mesos/tree/80f13bfd

mesos git commit: Made MasterTest.MaxCompletedTasksPerFrameworkFlag less fragile.

2017-05-26 Thread neilc
Repository: mesos Updated Branches: refs/heads/master e45dd39c7 -> 0303b8d23 Made MasterTest.MaxCompletedTasksPerFrameworkFlag less fragile. Rather than depending on batch allocations to eventually occur, pause the clock and explicitly advance it when we want to trigger a batch allocation.

mesos git commit: Fixed flakiness in MasterTest.EndpointsForHalfRemovedSlave.

2017-05-26 Thread neilc
Repository: mesos Updated Branches: refs/heads/master 7b9863faf -> e611b5478 Fixed flakiness in MasterTest.EndpointsForHalfRemovedSlave. The test had a race between setting up an expectation and dispatching an asynchronous operation that would satisfy the expectation (the former needs to

mesos git commit: Removed two unused "using" statements.

2017-05-25 Thread neilc
Repository: mesos Updated Branches: refs/heads/master 008607498 -> edde1da43 Removed two unused "using" statements. Project: http://git-wip-us.apache.org/repos/asf/mesos/repo Commit: http://git-wip-us.apache.org/repos/asf/mesos/commit/edde1da4 Tree:

[2/3] mesos git commit: Replaced `.get().` with `->` in the agent.

2017-05-25 Thread neilc
Replaced `.get().` with `->` in the agent. Review: https://reviews.apache.org/r/59559/ Project: http://git-wip-us.apache.org/repos/asf/mesos/repo Commit: http://git-wip-us.apache.org/repos/asf/mesos/commit/4a5ec22a Tree: http://git-wip-us.apache.org/repos/asf/mesos/tree/4a5ec22a Diff:

[3/3] mesos git commit: Replaced "!(x == y)" with "x != y" when comparing SlaveIDs.

2017-05-25 Thread neilc
Replaced "!(x == y)" with "x != y" when comparing SlaveIDs. Review: https://reviews.apache.org/r/59560/ Project: http://git-wip-us.apache.org/repos/asf/mesos/repo Commit: http://git-wip-us.apache.org/repos/asf/mesos/commit/00860749 Tree:

mesos git commit: Fixed typos in test comments.

2017-05-24 Thread neilc
Repository: mesos Updated Branches: refs/heads/master 43b33be03 -> 49129bf2a Fixed typos in test comments. Project: http://git-wip-us.apache.org/repos/asf/mesos/repo Commit: http://git-wip-us.apache.org/repos/asf/mesos/commit/49129bf2 Tree:

[5/8] mesos git commit: Optimized sorter performance with many inactive clients.

2017-05-24 Thread neilc
list of children. We mark the tree dirty, so that the + // client's share is updated correctly and it is sorted properly. +// +// TODO(neilc): We could instead calculate share here and insert +// the client into the appropriate place here, which would avoid +// dirtying the w

[6/8] mesos git commit: Cleaned up allocator benchmark tests.

2017-05-24 Thread neilc
Cleaned up allocator benchmark tests. Review: https://reviews.apache.org/r/59538 Project: http://git-wip-us.apache.org/repos/asf/mesos/repo Commit: http://git-wip-us.apache.org/repos/asf/mesos/commit/07a339f4 Tree: http://git-wip-us.apache.org/repos/asf/mesos/tree/07a339f4 Diff:

[7/8] mesos git commit: Replaced the sorter's notion of "activation" with a three-valued enum.

2017-05-24 Thread neilc
; _name, Kind _kind, Node* _parent) + : name(_name), share(0), kind(_kind), parent(_parent) { // Compute the node's path. Three cases: // @@ -232,11 +243,7 @@ struct DRFSorter::Node double share; - // True if this node represents an active sorter client. False if - // this node r

[3/8] mesos git commit: Added benchmark for allocator perf with many suppressed frameworks.

2017-05-24 Thread neilc
Added benchmark for allocator perf with many suppressed frameworks. This covers the case where the vast majority (99%) of frameworks have suppressed offers. Review: https://reviews.apache.org/r/59383/ Project: http://git-wip-us.apache.org/repos/asf/mesos/repo Commit:

[1/8] mesos git commit: Added sorter test for allocation queries about inactive clients.

2017-05-24 Thread neilc
Repository: mesos Updated Branches: refs/heads/1.3.x 230a08c73 -> 904729ed3 Added sorter test for allocation queries about inactive clients. This behavior has not changed, but was not covered by the existing tests. Review: https://reviews.apache.org/r/59481/ Project:

[2/8] mesos git commit: Added a new sorter test case, `HierarchicalIterationOrder`.

2017-05-24 Thread neilc
Added a new sorter test case, `HierarchicalIterationOrder`. This behavior is covered by existing test cases to an extent, but some additional test coverage seems warranted. Review: https://reviews.apache.org/r/59482/ Project: http://git-wip-us.apache.org/repos/asf/mesos/repo Commit:

[4/8] mesos git commit: Introduced `DRFSorter::Node::isLeaf()`.

2017-05-24 Thread neilc
Introduced `DRFSorter::Node::isLeaf()`. This helps clarify code that wants to distinguish between leaves and internal nodes in the sorter. Review: https://reviews.apache.org/r/59484/ Project: http://git-wip-us.apache.org/repos/asf/mesos/repo Commit:

[8/8] mesos git commit: Added MESOS-7521 to 1.3.0 CHANGELOG.

2017-05-24 Thread neilc
Added MESOS-7521 to 1.3.0 CHANGELOG. Project: http://git-wip-us.apache.org/repos/asf/mesos/repo Commit: http://git-wip-us.apache.org/repos/asf/mesos/commit/904729ed Tree: http://git-wip-us.apache.org/repos/asf/mesos/tree/904729ed Diff: http://git-wip-us.apache.org/repos/asf/mesos/diff/904729ed

[6/7] mesos git commit: Introduced `DRFSorter::Node::isLeaf()`.

2017-05-24 Thread neilc
Introduced `DRFSorter::Node::isLeaf()`. This helps clarify code that wants to distinguish between leaves and internal nodes in the sorter. Review: https://reviews.apache.org/r/59484/ Project: http://git-wip-us.apache.org/repos/asf/mesos/repo Commit:

[5/7] mesos git commit: Replaced the sorter's notion of "activation" with a three-valued enum.

2017-05-24 Thread neilc
; _name, Kind _kind, Node* _parent) + : name(_name), share(0), kind(_kind), parent(_parent) { // Compute the node's path. Three cases: // @@ -232,11 +243,7 @@ struct DRFSorter::Node double share; - // True if this node represents an active sorter client. False if - // this node r

[3/7] mesos git commit: Added benchmark for allocator perf with many suppressed frameworks.

2017-05-24 Thread neilc
Added benchmark for allocator perf with many suppressed frameworks. This covers the case where the vast majority (99%) of frameworks have suppressed offers. Review: https://reviews.apache.org/r/59383/ Project: http://git-wip-us.apache.org/repos/asf/mesos/repo Commit:

[2/7] mesos git commit: Added a new sorter test case, `HierarchicalIterationOrder`.

2017-05-24 Thread neilc
Added a new sorter test case, `HierarchicalIterationOrder`. This behavior is covered by existing test cases to an extent, but some additional test coverage seems warranted. Review: https://reviews.apache.org/r/59482/ Project: http://git-wip-us.apache.org/repos/asf/mesos/repo Commit:

[7/7] mesos git commit: Optimized sorter performance with many inactive clients.

2017-05-24 Thread neilc
list of children. We mark the tree dirty, so that the + // client's share is updated correctly and it is sorted properly. +// +// TODO(neilc): We could instead calculate share here and insert +// the client into the appropriate place here, which would avoid +// dirtying the w

[4/7] mesos git commit: Cleaned up allocator benchmark tests.

2017-05-24 Thread neilc
Cleaned up allocator benchmark tests. Review: https://reviews.apache.org/r/59538 Project: http://git-wip-us.apache.org/repos/asf/mesos/repo Commit: http://git-wip-us.apache.org/repos/asf/mesos/commit/8139ec0b Tree: http://git-wip-us.apache.org/repos/asf/mesos/tree/8139ec0b Diff:

[1/7] mesos git commit: Added sorter test for allocation queries about inactive clients.

2017-05-24 Thread neilc
Repository: mesos Updated Branches: refs/heads/master 4faca73e9 -> a637df6d3 Added sorter test for allocation queries about inactive clients. This behavior has not changed, but was not covered by the existing tests. Review: https://reviews.apache.org/r/59481/ Project:

mesos git commit: Fixed flakiness in MasterAllocatorTest.ResourcesUnused.

2017-05-24 Thread neilc
Repository: mesos Updated Branches: refs/heads/master d225d4d41 -> 6fe4be921 Fixed flakiness in MasterAllocatorTest.ResourcesUnused. In the test, `sched1` registers with the master and launches a task on half the resources it is offered. Then `sched2` registers and should be offered the

mesos git commit: Renamed RegisterAgent.agent to RegisterAgent.agents in acls.proto.

2017-05-24 Thread neilc
Repository: mesos Updated Branches: refs/heads/1.3.x e9e759aac -> 230a08c73 Renamed RegisterAgent.agent to RegisterAgent.agents in acls.proto. Renames the field `RegisterAgent.agent` to `RegisterAgent.agents` in order to come make it consistent with other ACLs. Review:

mesos git commit: Renamed RegisterAgent.agent to RegisterAgent.agents in acls.proto.

2017-05-24 Thread neilc
Repository: mesos Updated Branches: refs/heads/master fe7ca914d -> d225d4d41 Renamed RegisterAgent.agent to RegisterAgent.agents in acls.proto. Renames the field `RegisterAgent.agent` to `RegisterAgent.agents` in order to come make it consistent with other ACLs. Review:

mesos git commit: Fixed a few variable names in tests.

2017-05-23 Thread neilc
Repository: mesos Updated Branches: refs/heads/master 044196ff6 -> e40318975 Fixed a few variable names in tests. Project: http://git-wip-us.apache.org/repos/asf/mesos/repo Commit: http://git-wip-us.apache.org/repos/asf/mesos/commit/e4031897 Tree:

mesos git commit: Added MESOS-7538 to 1.3.0 CHANGELOG.

2017-05-23 Thread neilc
Repository: mesos Updated Branches: refs/heads/master 6ebb98f9b -> d9fbff98d Added MESOS-7538 to 1.3.0 CHANGELOG. Project: http://git-wip-us.apache.org/repos/asf/mesos/repo Commit: http://git-wip-us.apache.org/repos/asf/mesos/commit/d9fbff98 Tree:

[1/2] mesos git commit: Avoid validation of agent re-registration message if possible.

2017-05-23 Thread neilc
Repository: mesos Updated Branches: refs/heads/1.3.x 50550bb7d -> e9e759aac Avoid validation of agent re-registration message if possible. If we already have a re-registration in flight from this agent, we don't need to validate the re-registration message since it will be dropped anyway.

[2/2] mesos git commit: Added MESOS-7538 to 1.3.0 CHANGELOG.

2017-05-23 Thread neilc
Added MESOS-7538 to 1.3.0 CHANGELOG. Project: http://git-wip-us.apache.org/repos/asf/mesos/repo Commit: http://git-wip-us.apache.org/repos/asf/mesos/commit/e9e759aa Tree: http://git-wip-us.apache.org/repos/asf/mesos/tree/e9e759aa Diff: http://git-wip-us.apache.org/repos/asf/mesos/diff/e9e759aa

mesos git commit: Avoid validation of agent re-registration message if possible.

2017-05-22 Thread neilc
Repository: mesos Updated Branches: refs/heads/master bfd7fff91 -> dba0ef493 Avoid validation of agent re-registration message if possible. If we already have a re-registration in flight from this agent, we don't need to validate the re-registration message since it will be dropped anyway.

mesos git commit: Disabled ProcessTest.THREADSAFE_Http2 on Windows.

2017-05-22 Thread neilc
.cpp @@ -1330,7 +1330,9 @@ TEST(ProcessTest, THREADSAFE_Http1) // Like 'http1' but uses the 'Libprocess-From' header. We can // also use http::post here since we expect a 202 response. -TEST(ProcessTest, THREADSAFE_Http2) +// +// TODO(neilc): This test currently does not work on Wind

mesos git commit: Fixed typos.

2017-05-19 Thread neilc
Repository: mesos Updated Branches: refs/heads/master 0edb2ee96 -> 8245981b8 Fixed typos. Project: http://git-wip-us.apache.org/repos/asf/mesos/repo Commit: http://git-wip-us.apache.org/repos/asf/mesos/commit/8245981b Tree: http://git-wip-us.apache.org/repos/asf/mesos/tree/8245981b Diff:

mesos git commit: Copy-edited versioning doc.

2017-05-17 Thread neilc
Repository: mesos Updated Branches: refs/heads/master 0672c27c9 -> 8c564db51 Copy-edited versioning doc. Project: http://git-wip-us.apache.org/repos/asf/mesos/repo Commit: http://git-wip-us.apache.org/repos/asf/mesos/commit/8c564db5 Tree:

[4/6] mesos git commit: Updated GMock/GTest in stout.

2017-05-17 Thread neilc
Updated GMock/GTest in stout. This will fix various issues that occured with version 1.7.0. As GTest is now using 'std::tuple' instead of 'std::tr1::tuple', some test cases have been updated accordingly. Review: https://reviews.apache.org/r/58350/ Project:

[6/6] mesos git commit: Fixed Makefile.am variable syntax.

2017-05-17 Thread neilc
Fixed Makefile.am variable syntax. Project: http://git-wip-us.apache.org/repos/asf/mesos/repo Commit: http://git-wip-us.apache.org/repos/asf/mesos/commit/0672c27c Tree: http://git-wip-us.apache.org/repos/asf/mesos/tree/0672c27c Diff: http://git-wip-us.apache.org/repos/asf/mesos/diff/0672c27c

[3/6] mesos git commit: Updated GMock/GTest to version 1.8.0.

2017-05-17 Thread neilc
slaves.reserve(slaveCount); @@ -4938,8 +4938,8 @@ TEST_P(HierarchicalAllocator_BENCHMARK_Test, AddAndUpdateSlave) // subsequent offers. TEST_P(HierarchicalAllocator_BENCHMARK_Test, DeclineOffers) { - size_t slaveCount = std::tr1::get<0>(GetParam()); - size_t frameworkCount = std::tr1:

[5/6] mesos git commit: Updated GMock/GTest in libprocess.

2017-05-17 Thread neilc
Updated GMock/GTest in libprocess. This will fix various issues that occured with version 1.7.0. As GTest is now using 'std::tuple' instead of 'std::tr1::tuple', some test cases have been updated accordingly. Review: https://reviews.apache.org/r/58351/ Project:

[1/6] mesos git commit: Introduced a filter for test cases that need thread-safety.

2017-05-17 Thread neilc
Repository: mesos Updated Branches: refs/heads/master 382618b1f -> 0672c27c9 Introduced a filter for test cases that need thread-safety. Instead of using asserts that would fail a test at runtime when thread-safety of the test environment isn't given, these tests are now filtered out before

[2/6] mesos git commit: Fixed use of 'GTEST_IS_THREADSAFE'.

2017-05-17 Thread neilc
Fixed use of 'GTEST_IS_THREADSAFE'. Fixed use of 'GTEST_IS_THREADSAFE'. Review: https://reviews.apache.org/r/58348/ Project: http://git-wip-us.apache.org/repos/asf/mesos/repo Commit: http://git-wip-us.apache.org/repos/asf/mesos/commit/d4fcff0e Tree:

[1/2] mesos git commit: Disabled support for hierarchical roles.

2017-05-16 Thread neilc
pp b/src/common/roles.cpp index 123e990..139ae87 100644 --- a/src/common/roles.cpp +++ b/src/common/roles.cpp @@ -68,6 +68,11 @@ Option validate(const string& role) return None(); } + // TODO(neilc): Remove this restriction when MESOS-7505 is fixed. + if (role.find_first_of('

[2/2] mesos git commit: Updated Mesos 1.3.0 CHANGELOG for removal of hierarchical roles.

2017-05-16 Thread neilc
Updated Mesos 1.3.0 CHANGELOG for removal of hierarchical roles. Review: https://reviews.apache.org/r/59286 Project: http://git-wip-us.apache.org/repos/asf/mesos/repo Commit: http://git-wip-us.apache.org/repos/asf/mesos/commit/50550bb7 Tree:

[2/2] mesos git commit: Updated Mesos 1.3.0 CHANGELOG for removal of hierarchical roles.

2017-05-16 Thread neilc
Updated Mesos 1.3.0 CHANGELOG for removal of hierarchical roles. Review: https://reviews.apache.org/r/59286 Project: http://git-wip-us.apache.org/repos/asf/mesos/repo Commit: http://git-wip-us.apache.org/repos/asf/mesos/commit/91bd4d92 Tree:

[1/2] mesos git commit: Disabled support for hierarchical roles.

2017-05-16 Thread neilc
pp b/src/common/roles.cpp index 123e990..139ae87 100644 --- a/src/common/roles.cpp +++ b/src/common/roles.cpp @@ -68,6 +68,11 @@ Option validate(const string& role) return None(); } + // TODO(neilc): Remove this restriction when MESOS-7505 is fixed. + if (role.find_first_of('

mesos git commit: Fixed typos in comments.

2017-05-15 Thread neilc
Repository: mesos Updated Branches: refs/heads/master 47562d9bb -> e506313cf Fixed typos in comments. Project: http://git-wip-us.apache.org/repos/asf/mesos/repo Commit: http://git-wip-us.apache.org/repos/asf/mesos/commit/e506313c Tree:

mesos git commit: Added missing `constexpr` to Days constructors in stout.

2017-05-12 Thread neilc
Repository: mesos Updated Branches: refs/heads/master c98f96522 -> 8ca6e6f04 Added missing `constexpr` to Days constructors in stout. Review: https://reviews.apache.org/r/59243 Project: http://git-wip-us.apache.org/repos/asf/mesos/repo Commit:

mesos git commit: Documented that Mesos 1.2.1 don't allow old agents to register.

2017-05-11 Thread neilc
Repository: mesos Updated Branches: refs/heads/1.2.x 591721506 -> 7a0cc5522 Documented that Mesos 1.2.1 don't allow old agents to register. Project: http://git-wip-us.apache.org/repos/asf/mesos/repo Commit: http://git-wip-us.apache.org/repos/asf/mesos/commit/7a0cc552 Tree:

mesos git commit: Documented that Mesos 1.3.0, 1.2.1 don't allow old agents to register.

2017-05-11 Thread neilc
Repository: mesos Updated Branches: refs/heads/1.3.x 6f7910c54 -> 70a55e2f6 Documented that Mesos 1.3.0, 1.2.1 don't allow old agents to register. Review: https://reviews.apache.org/r/59198 Project: http://git-wip-us.apache.org/repos/asf/mesos/repo Commit:

mesos git commit: Documented that Mesos 1.3.0, 1.2.1 don't allow old agents to register.

2017-05-11 Thread neilc
Repository: mesos Updated Branches: refs/heads/master 28f974e6f -> b043cd868 Documented that Mesos 1.3.0, 1.2.1 don't allow old agents to register. Review: https://reviews.apache.org/r/59198 Project: http://git-wip-us.apache.org/repos/asf/mesos/repo Commit:

[1/2] mesos git commit: Adjusted test expectation for change to stout's Version.

2017-05-11 Thread neilc
Repository: mesos Updated Branches: refs/heads/master 62e0f7261 -> 28f974e6f Adjusted test expectation for change to stout's Version. Prerelease labels are now considered for equality between versions, per SemVer spec. Review: https://reviews.apache.org/r/59190 Project:

  1   2   3   >