You are viewing a plain text version of this content. The canonical link for it is here.
Posted to reviews@mesos.apache.org by Greg Mann <gr...@mesosphere.io> on 2019/03/27 17:01:56 UTC
Review Request 70325: Updated the master to allocate recovered orphan
operation resources.
-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/70325/
-----------------------------------------------------------
Review request for mesos, Benjamin Mahler, Gastón Kleiman, Joseph Wu, and Meng Zhu.
Bugs: MESOS-9635
https://issues.apache.org/jira/browse/MESOS-9635
Repository: mesos
Description
-------
Updated the master to allocate recovered orphan operation resources.
Diffs
-----
src/master/master.cpp acc67d3763ddee9027e6cf375f1d495ff5805026
Diff: https://reviews.apache.org/r/70325/diff/1/
Testing
-------
`make check`
Thanks,
Greg Mann
Re: Review Request 70325: Updated the master to allocate recovered
orphan operation resources.
Posted by Greg Mann <gr...@mesosphere.io>.
> On March 27, 2019, 11:55 p.m., Greg Mann wrote:
> > src/master/master.cpp
> > Lines 10538-10541 (patched)
> > <https://reviews.apache.org/r/70325/diff/1/?file=2135151#file2135151line10538>
> >
> > Looking at this again, I guess I should build up a `hashmap<SlaveID, std::pair<Resources, Resources>>` and make just one `addAgentResources()` call per agent.
>
> Greg Mann wrote:
> er... make that `hashmap<SlaveID, std::pair<Resources, hashmap<FrameworkID, Resources>>>`
On second thought, this seems fine. We were making similarly fine-grained allocator updates previously, I'll leave as-is. Dropping this issue.
- Greg
-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/70325/#review214141
-----------------------------------------------------------
On March 27, 2019, 7:59 p.m., Greg Mann wrote:
>
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/70325/
> -----------------------------------------------------------
>
> (Updated March 27, 2019, 7:59 p.m.)
>
>
> Review request for mesos, Benjamin Mahler, Gastón Kleiman, Joseph Wu, and Meng Zhu.
>
>
> Bugs: MESOS-9635
> https://issues.apache.org/jira/browse/MESOS-9635
>
>
> Repository: mesos
>
>
> Description
> -------
>
> This patch updates the master's framework recovery code to use
> the allocator's `addAgentResources()` method rather than
> `updateSlave()` when recovering orphan operations, which has the
> benefit of tracking the allocation of the operations' consumed
> resources, avoiding situations in which those resources would be
> incorrectly offered to frameworks while the operation is still
> in a pending state.
>
>
> Diffs
> -----
>
> src/master/master.cpp acc67d3763ddee9027e6cf375f1d495ff5805026
>
>
> Diff: https://reviews.apache.org/r/70325/diff/1/
>
>
> Testing
> -------
>
> `make check`
>
> To verify the flaky test fix, the following command was executed both before and after the patches were applied, while `stress -c <num_cores_on_machine>` was being run:
> `bin/mesos-tests.sh --gtest_filter="*AgentPendingOperationAfterMasterFailover*" --gtest_repeat=-1 --gtest_break_on_failure`
>
> Before the patches were applied, the test would reliably fail after less than 50 repetitions. After the patches are applied, the test can be run for hundreds of repetitions with no failures.
>
>
> Thanks,
>
> Greg Mann
>
>
Re: Review Request 70325: Updated the master to allocate recovered
orphan operation resources.
Posted by Greg Mann <gr...@mesosphere.io>.
> On March 27, 2019, 11:55 p.m., Greg Mann wrote:
> > src/master/master.cpp
> > Lines 10538-10541 (patched)
> > <https://reviews.apache.org/r/70325/diff/1/?file=2135151#file2135151line10538>
> >
> > Looking at this again, I guess I should build up a `hashmap<SlaveID, std::pair<Resources, Resources>>` and make just one `addAgentResources()` call per agent.
er... make that `hashmap<SlaveID, std::pair<Resources, hashmap<FrameworkID, Resources>>>`
- Greg
-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/70325/#review214141
-----------------------------------------------------------
On March 27, 2019, 7:59 p.m., Greg Mann wrote:
>
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/70325/
> -----------------------------------------------------------
>
> (Updated March 27, 2019, 7:59 p.m.)
>
>
> Review request for mesos, Benjamin Mahler, Gastón Kleiman, Joseph Wu, and Meng Zhu.
>
>
> Bugs: MESOS-9635
> https://issues.apache.org/jira/browse/MESOS-9635
>
>
> Repository: mesos
>
>
> Description
> -------
>
> This patch updates the master's framework recovery code to use
> the allocator's `addAgentResources()` method rather than
> `updateSlave()` when recovering orphan operations, which has the
> benefit of tracking the allocation of the operations' consumed
> resources, avoiding situations in which those resources would be
> incorrectly offered to frameworks while the operation is still
> in a pending state.
>
>
> Diffs
> -----
>
> src/master/master.cpp acc67d3763ddee9027e6cf375f1d495ff5805026
>
>
> Diff: https://reviews.apache.org/r/70325/diff/1/
>
>
> Testing
> -------
>
> `make check`
>
> To verify the flaky test fix, the following command was executed both before and after the patches were applied, while `stress -c <num_cores_on_machine>` was being run:
> `bin/mesos-tests.sh --gtest_filter="*AgentPendingOperationAfterMasterFailover*" --gtest_repeat=-1 --gtest_break_on_failure`
>
> Before the patches were applied, the test would reliably fail after less than 50 repetitions. After the patches are applied, the test can be run for hundreds of repetitions with no failures.
>
>
> Thanks,
>
> Greg Mann
>
>
Re: Review Request 70325: Updated the master to allocate recovered
orphan operation resources.
Posted by Greg Mann <gr...@mesosphere.io>.
-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/70325/#review214141
-----------------------------------------------------------
src/master/master.cpp
Lines 10538-10541 (patched)
<https://reviews.apache.org/r/70325/#comment300321>
Looking at this again, I guess I should build up a `hashmap<SlaveID, std::pair<Resources, Resources>>` and make just one `addAgentResources()` call per agent.
- Greg Mann
On March 27, 2019, 7:59 p.m., Greg Mann wrote:
>
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/70325/
> -----------------------------------------------------------
>
> (Updated March 27, 2019, 7:59 p.m.)
>
>
> Review request for mesos, Benjamin Mahler, Gastón Kleiman, Joseph Wu, and Meng Zhu.
>
>
> Bugs: MESOS-9635
> https://issues.apache.org/jira/browse/MESOS-9635
>
>
> Repository: mesos
>
>
> Description
> -------
>
> This patch updates the master's framework recovery code to use
> the allocator's `addAgentResources()` method rather than
> `updateSlave()` when recovering orphan operations, which has the
> benefit of tracking the allocation of the operations' consumed
> resources, avoiding situations in which those resources would be
> incorrectly offered to frameworks while the operation is still
> in a pending state.
>
>
> Diffs
> -----
>
> src/master/master.cpp acc67d3763ddee9027e6cf375f1d495ff5805026
>
>
> Diff: https://reviews.apache.org/r/70325/diff/1/
>
>
> Testing
> -------
>
> `make check`
>
> To verify the flaky test fix, the following command was executed both before and after the patches were applied, while `stress -c <num_cores_on_machine>` was being run:
> `bin/mesos-tests.sh --gtest_filter="*AgentPendingOperationAfterMasterFailover*" --gtest_repeat=-1 --gtest_break_on_failure`
>
> Before the patches were applied, the test would reliably fail after less than 50 repetitions. After the patches are applied, the test can be run for hundreds of repetitions with no failures.
>
>
> Thanks,
>
> Greg Mann
>
>
Re: Review Request 70325: Updated the master to allocate recovered
orphan operation resources.
Posted by Mesos Reviewbot Windows <re...@mesos.apache.org>.
-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/70325/#review214179
-----------------------------------------------------------
PASS: Mesos patch 70325 was successfully built and tested.
Reviews applied: `['70324', '70325']`
All the build artifacts available at: http://dcos-win.westus2.cloudapp.azure.com/artifacts/mesos-reviewbot-testing/3037/mesos-review-70325
- Mesos Reviewbot Windows
On March 27, 2019, 7:59 p.m., Greg Mann wrote:
>
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/70325/
> -----------------------------------------------------------
>
> (Updated March 27, 2019, 7:59 p.m.)
>
>
> Review request for mesos, Benjamin Mahler, Gastón Kleiman, Joseph Wu, and Meng Zhu.
>
>
> Bugs: MESOS-9635
> https://issues.apache.org/jira/browse/MESOS-9635
>
>
> Repository: mesos
>
>
> Description
> -------
>
> This patch updates the master's framework recovery code to use
> the allocator's `addAgentResources()` method rather than
> `updateSlave()` when recovering orphan operations, which has the
> benefit of tracking the allocation of the operations' consumed
> resources, avoiding situations in which those resources would be
> incorrectly offered to frameworks while the operation is still
> in a pending state.
>
>
> Diffs
> -----
>
> src/master/master.cpp acc67d3763ddee9027e6cf375f1d495ff5805026
>
>
> Diff: https://reviews.apache.org/r/70325/diff/1/
>
>
> Testing
> -------
>
> `make check`
>
> To verify the flaky test fix, the following command was executed both before and after the patches were applied, while `stress -c <num_cores_on_machine>` was being run:
> `bin/mesos-tests.sh --gtest_filter="*AgentPendingOperationAfterMasterFailover*" --gtest_repeat=-1 --gtest_break_on_failure`
>
> Before the patches were applied, the test would reliably fail after less than 50 repetitions. After the patches are applied, the test can be run for hundreds of repetitions with no failures.
>
>
> Thanks,
>
> Greg Mann
>
>
Re: Review Request 70325: Updated the master to allocate recovered
orphan operation resources.
Posted by Mesos Reviewbot <re...@mesos.apache.org>.
-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/70325/#review214379
-----------------------------------------------------------
Patch looks great!
Reviews applied: [70325]
Passed command: export OS='ubuntu:14.04' BUILDTOOL='autotools' COMPILER='gcc' CONFIGURATION='--verbose --disable-libtool-wrappers --disable-parallel-test-execution' ENVIRONMENT='GLOG_v=1 MESOS_VERBOSE=1'; ./support/docker-build.sh
- Mesos Reviewbot
On April 4, 2019, 5:14 p.m., Greg Mann wrote:
>
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/70325/
> -----------------------------------------------------------
>
> (Updated April 4, 2019, 5:14 p.m.)
>
>
> Review request for mesos, Benjamin Mahler, Gastón Kleiman, Joseph Wu, and Meng Zhu.
>
>
> Bugs: MESOS-9635
> https://issues.apache.org/jira/browse/MESOS-9635
>
>
> Repository: mesos
>
>
> Description
> -------
>
> This patch updates the master's framework recovery code to use
> the allocator's `addResourceProvider()` method rather than
> `updateSlave()` when recovering orphan operations, which has the
> benefit of tracking the allocation of the operations' consumed
> resources, avoiding situations in which those resources would be
> incorrectly offered to frameworks while the operation is still
> in a pending state.
>
>
> Diffs
> -----
>
> src/master/master.cpp cf5caa0893ba1387a1f3a9d129ecd7d974f776bd
>
>
> Diff: https://reviews.apache.org/r/70325/diff/3/
>
>
> Testing
> -------
>
> `make check`
>
> To verify the flaky test fix, the following command was executed both before and after the patches were applied, while `stress -c <num_cores_on_machine>` was being run:
> `bin/mesos-tests.sh --gtest_filter="*AgentPendingOperationAfterMasterFailover*" --gtest_repeat=-1 --gtest_break_on_failure`
>
> Before the patches were applied, the test would reliably fail after less than 50 repetitions. After the patches are applied, the test can be run for hundreds of repetitions with no failures.
>
>
> Thanks,
>
> Greg Mann
>
>
Re: Review Request 70325: Updated the master to allocate recovered
orphan operation resources.
Posted by Mesos Reviewbot Windows <re...@mesos.apache.org>.
-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/70325/#review214378
-----------------------------------------------------------
PASS: Mesos patch 70325 was successfully built and tested.
Reviews applied: `['70325']`
All the build artifacts available at: http://dcos-win.westus2.cloudapp.azure.com/artifacts/mesos-reviewbot-testing/3083/mesos-review-70325
- Mesos Reviewbot Windows
On April 4, 2019, 5:14 p.m., Greg Mann wrote:
>
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/70325/
> -----------------------------------------------------------
>
> (Updated April 4, 2019, 5:14 p.m.)
>
>
> Review request for mesos, Benjamin Mahler, Gastón Kleiman, Joseph Wu, and Meng Zhu.
>
>
> Bugs: MESOS-9635
> https://issues.apache.org/jira/browse/MESOS-9635
>
>
> Repository: mesos
>
>
> Description
> -------
>
> This patch updates the master's framework recovery code to use
> the allocator's `addResourceProvider()` method rather than
> `updateSlave()` when recovering orphan operations, which has the
> benefit of tracking the allocation of the operations' consumed
> resources, avoiding situations in which those resources would be
> incorrectly offered to frameworks while the operation is still
> in a pending state.
>
>
> Diffs
> -----
>
> src/master/master.cpp cf5caa0893ba1387a1f3a9d129ecd7d974f776bd
>
>
> Diff: https://reviews.apache.org/r/70325/diff/3/
>
>
> Testing
> -------
>
> `make check`
>
> To verify the flaky test fix, the following command was executed both before and after the patches were applied, while `stress -c <num_cores_on_machine>` was being run:
> `bin/mesos-tests.sh --gtest_filter="*AgentPendingOperationAfterMasterFailover*" --gtest_repeat=-1 --gtest_break_on_failure`
>
> Before the patches were applied, the test would reliably fail after less than 50 repetitions. After the patches are applied, the test can be run for hundreds of repetitions with no failures.
>
>
> Thanks,
>
> Greg Mann
>
>
Re: Review Request 70325: Updated the master to allocate recovered
orphan operation resources.
Posted by Greg Mann <gr...@mesosphere.io>.
-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/70325/
-----------------------------------------------------------
(Updated April 4, 2019, 5:14 p.m.)
Review request for mesos, Benjamin Mahler, Gastón Kleiman, Joseph Wu, and Meng Zhu.
Bugs: MESOS-9635
https://issues.apache.org/jira/browse/MESOS-9635
Repository: mesos
Description (updated)
-------
This patch updates the master's framework recovery code to use
the allocator's `addResourceProvider()` method rather than
`updateSlave()` when recovering orphan operations, which has the
benefit of tracking the allocation of the operations' consumed
resources, avoiding situations in which those resources would be
incorrectly offered to frameworks while the operation is still
in a pending state.
Diffs
-----
src/master/master.cpp cf5caa0893ba1387a1f3a9d129ecd7d974f776bd
Diff: https://reviews.apache.org/r/70325/diff/3/
Testing
-------
`make check`
To verify the flaky test fix, the following command was executed both before and after the patches were applied, while `stress -c <num_cores_on_machine>` was being run:
`bin/mesos-tests.sh --gtest_filter="*AgentPendingOperationAfterMasterFailover*" --gtest_repeat=-1 --gtest_break_on_failure`
Before the patches were applied, the test would reliably fail after less than 50 repetitions. After the patches are applied, the test can be run for hundreds of repetitions with no failures.
Thanks,
Greg Mann
Re: Review Request 70325: Updated the master to allocate recovered
orphan operation resources.
Posted by Greg Mann <gr...@mesosphere.io>.
-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/70325/
-----------------------------------------------------------
(Updated April 4, 2019, 5:13 p.m.)
Review request for mesos, Benjamin Mahler, Gastón Kleiman, Joseph Wu, and Meng Zhu.
Bugs: MESOS-9635
https://issues.apache.org/jira/browse/MESOS-9635
Repository: mesos
Description
-------
This patch updates the master's framework recovery code to use
the allocator's `addAgentResources()` method rather than
`updateSlave()` when recovering orphan operations, which has the
benefit of tracking the allocation of the operations' consumed
resources, avoiding situations in which those resources would be
incorrectly offered to frameworks while the operation is still
in a pending state.
Diffs (updated)
-----
src/master/master.cpp cf5caa0893ba1387a1f3a9d129ecd7d974f776bd
Diff: https://reviews.apache.org/r/70325/diff/3/
Changes: https://reviews.apache.org/r/70325/diff/2-3/
Testing
-------
`make check`
To verify the flaky test fix, the following command was executed both before and after the patches were applied, while `stress -c <num_cores_on_machine>` was being run:
`bin/mesos-tests.sh --gtest_filter="*AgentPendingOperationAfterMasterFailover*" --gtest_repeat=-1 --gtest_break_on_failure`
Before the patches were applied, the test would reliably fail after less than 50 repetitions. After the patches are applied, the test can be run for hundreds of repetitions with no failures.
Thanks,
Greg Mann
Re: Review Request 70325: Updated the master to allocate recovered
orphan operation resources.
Posted by Meng Zhu <mz...@mesosphere.io>.
-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/70325/#review214350
-----------------------------------------------------------
Fix it, then Ship it!
Looks good.
The description needs to be updated regarding the `addAgentResources()`
src/master/master.cpp
Lines 10548-10549 (original), 10549-10552 (patched)
<https://reviews.apache.org/r/70325/#comment300542>
Lets just say:
// This call to `addResourceProvider()` adds orphan operations
// resources back to the agent's total and used resources.
// This prevents the resources from being offered while the
// operation is still pending.
> updates the role's allocation
This does not happen with `addResourceProvider()`, it happens in `addFramework()`.
- Meng Zhu
On April 3, 2019, 5:10 p.m., Greg Mann wrote:
>
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/70325/
> -----------------------------------------------------------
>
> (Updated April 3, 2019, 5:10 p.m.)
>
>
> Review request for mesos, Benjamin Mahler, Gastón Kleiman, Joseph Wu, and Meng Zhu.
>
>
> Bugs: MESOS-9635
> https://issues.apache.org/jira/browse/MESOS-9635
>
>
> Repository: mesos
>
>
> Description
> -------
>
> This patch updates the master's framework recovery code to use
> the allocator's `addAgentResources()` method rather than
> `updateSlave()` when recovering orphan operations, which has the
> benefit of tracking the allocation of the operations' consumed
> resources, avoiding situations in which those resources would be
> incorrectly offered to frameworks while the operation is still
> in a pending state.
>
>
> Diffs
> -----
>
> src/master/master.cpp cf5caa0893ba1387a1f3a9d129ecd7d974f776bd
>
>
> Diff: https://reviews.apache.org/r/70325/diff/2/
>
>
> Testing
> -------
>
> `make check`
>
> To verify the flaky test fix, the following command was executed both before and after the patches were applied, while `stress -c <num_cores_on_machine>` was being run:
> `bin/mesos-tests.sh --gtest_filter="*AgentPendingOperationAfterMasterFailover*" --gtest_repeat=-1 --gtest_break_on_failure`
>
> Before the patches were applied, the test would reliably fail after less than 50 repetitions. After the patches are applied, the test can be run for hundreds of repetitions with no failures.
>
>
> Thanks,
>
> Greg Mann
>
>
Re: Review Request 70325: Updated the master to allocate recovered
orphan operation resources.
Posted by Mesos Reviewbot <re...@mesos.apache.org>.
-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/70325/#review214353
-----------------------------------------------------------
Patch looks great!
Reviews applied: [70325]
Passed command: export OS='ubuntu:14.04' BUILDTOOL='autotools' COMPILER='gcc' CONFIGURATION='--verbose --disable-libtool-wrappers --disable-parallel-test-execution' ENVIRONMENT='GLOG_v=1 MESOS_VERBOSE=1'; ./support/docker-build.sh
- Mesos Reviewbot
On April 4, 2019, 12:10 a.m., Greg Mann wrote:
>
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/70325/
> -----------------------------------------------------------
>
> (Updated April 4, 2019, 12:10 a.m.)
>
>
> Review request for mesos, Benjamin Mahler, Gastón Kleiman, Joseph Wu, and Meng Zhu.
>
>
> Bugs: MESOS-9635
> https://issues.apache.org/jira/browse/MESOS-9635
>
>
> Repository: mesos
>
>
> Description
> -------
>
> This patch updates the master's framework recovery code to use
> the allocator's `addAgentResources()` method rather than
> `updateSlave()` when recovering orphan operations, which has the
> benefit of tracking the allocation of the operations' consumed
> resources, avoiding situations in which those resources would be
> incorrectly offered to frameworks while the operation is still
> in a pending state.
>
>
> Diffs
> -----
>
> src/master/master.cpp cf5caa0893ba1387a1f3a9d129ecd7d974f776bd
>
>
> Diff: https://reviews.apache.org/r/70325/diff/2/
>
>
> Testing
> -------
>
> `make check`
>
> To verify the flaky test fix, the following command was executed both before and after the patches were applied, while `stress -c <num_cores_on_machine>` was being run:
> `bin/mesos-tests.sh --gtest_filter="*AgentPendingOperationAfterMasterFailover*" --gtest_repeat=-1 --gtest_break_on_failure`
>
> Before the patches were applied, the test would reliably fail after less than 50 repetitions. After the patches are applied, the test can be run for hundreds of repetitions with no failures.
>
>
> Thanks,
>
> Greg Mann
>
>
Re: Review Request 70325: Updated the master to allocate recovered
orphan operation resources.
Posted by Greg Mann <gr...@mesosphere.io>.
-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/70325/
-----------------------------------------------------------
(Updated April 4, 2019, 12:10 a.m.)
Review request for mesos, Benjamin Mahler, Gastón Kleiman, Joseph Wu, and Meng Zhu.
Bugs: MESOS-9635
https://issues.apache.org/jira/browse/MESOS-9635
Repository: mesos
Description
-------
This patch updates the master's framework recovery code to use
the allocator's `addAgentResources()` method rather than
`updateSlave()` when recovering orphan operations, which has the
benefit of tracking the allocation of the operations' consumed
resources, avoiding situations in which those resources would be
incorrectly offered to frameworks while the operation is still
in a pending state.
Diffs (updated)
-----
src/master/master.cpp cf5caa0893ba1387a1f3a9d129ecd7d974f776bd
Diff: https://reviews.apache.org/r/70325/diff/2/
Changes: https://reviews.apache.org/r/70325/diff/1-2/
Testing
-------
`make check`
To verify the flaky test fix, the following command was executed both before and after the patches were applied, while `stress -c <num_cores_on_machine>` was being run:
`bin/mesos-tests.sh --gtest_filter="*AgentPendingOperationAfterMasterFailover*" --gtest_repeat=-1 --gtest_break_on_failure`
Before the patches were applied, the test would reliably fail after less than 50 repetitions. After the patches are applied, the test can be run for hundreds of repetitions with no failures.
Thanks,
Greg Mann
Re: Review Request 70325: Updated the master to allocate recovered
orphan operation resources.
Posted by Greg Mann <gr...@mesosphere.io>.
-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/70325/
-----------------------------------------------------------
(Updated April 3, 2019, 11:16 p.m.)
Review request for mesos, Benjamin Mahler, Gastón Kleiman, Joseph Wu, and Meng Zhu.
Bugs: MESOS-9635
https://issues.apache.org/jira/browse/MESOS-9635
Repository: mesos
Description
-------
This patch updates the master's framework recovery code to use
the allocator's `addAgentResources()` method rather than
`updateSlave()` when recovering orphan operations, which has the
benefit of tracking the allocation of the operations' consumed
resources, avoiding situations in which those resources would be
incorrectly offered to frameworks while the operation is still
in a pending state.
Diffs
-----
src/master/master.cpp acc67d3763ddee9027e6cf375f1d495ff5805026
Diff: https://reviews.apache.org/r/70325/diff/1/
Testing
-------
`make check`
To verify the flaky test fix, the following command was executed both before and after the patches were applied, while `stress -c <num_cores_on_machine>` was being run:
`bin/mesos-tests.sh --gtest_filter="*AgentPendingOperationAfterMasterFailover*" --gtest_repeat=-1 --gtest_break_on_failure`
Before the patches were applied, the test would reliably fail after less than 50 repetitions. After the patches are applied, the test can be run for hundreds of repetitions with no failures.
Thanks,
Greg Mann
Re: Review Request 70325: Updated the master to allocate recovered
orphan operation resources.
Posted by Mesos Reviewbot <re...@mesos.apache.org>.
-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/70325/#review214137
-----------------------------------------------------------
Patch looks great!
Reviews applied: [70324, 70325]
Passed command: export OS='ubuntu:14.04' BUILDTOOL='autotools' COMPILER='gcc' CONFIGURATION='--verbose --disable-libtool-wrappers --disable-parallel-test-execution' ENVIRONMENT='GLOG_v=1 MESOS_VERBOSE=1'; ./support/docker-build.sh
- Mesos Reviewbot
On March 27, 2019, 12:59 p.m., Greg Mann wrote:
>
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/70325/
> -----------------------------------------------------------
>
> (Updated March 27, 2019, 12:59 p.m.)
>
>
> Review request for mesos, Benjamin Mahler, Gastón Kleiman, Joseph Wu, and Meng Zhu.
>
>
> Bugs: MESOS-9635
> https://issues.apache.org/jira/browse/MESOS-9635
>
>
> Repository: mesos
>
>
> Description
> -------
>
> This patch updates the master's framework recovery code to use
> the allocator's `addAgentResources()` method rather than
> `updateSlave()` when recovering orphan operations, which has the
> benefit of tracking the allocation of the operations' consumed
> resources, avoiding situations in which those resources would be
> incorrectly offered to frameworks while the operation is still
> in a pending state.
>
>
> Diffs
> -----
>
> src/master/master.cpp acc67d3763ddee9027e6cf375f1d495ff5805026
>
>
> Diff: https://reviews.apache.org/r/70325/diff/1/
>
>
> Testing
> -------
>
> `make check`
>
> To verify the flaky test fix, the following command was executed both before and after the patches were applied, while `stress -c <num_cores_on_machine>` was being run:
> `bin/mesos-tests.sh --gtest_filter="*AgentPendingOperationAfterMasterFailover*" --gtest_repeat=-1 --gtest_break_on_failure`
>
> Before the patches were applied, the test would reliably fail after less than 50 repetitions. After the patches are applied, the test can be run for hundreds of repetitions with no failures.
>
>
> Thanks,
>
> Greg Mann
>
>
Re: Review Request 70325: Updated the master to allocate recovered
orphan operation resources.
Posted by Greg Mann <gr...@mesosphere.io>.
-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/70325/
-----------------------------------------------------------
(Updated March 27, 2019, 7:59 p.m.)
Review request for mesos, Benjamin Mahler, Gastón Kleiman, Joseph Wu, and Meng Zhu.
Bugs: MESOS-9635
https://issues.apache.org/jira/browse/MESOS-9635
Repository: mesos
Description
-------
This patch updates the master's framework recovery code to use
the allocator's `addAgentResources()` method rather than
`updateSlave()` when recovering orphan operations, which has the
benefit of tracking the allocation of the operations' consumed
resources, avoiding situations in which those resources would be
incorrectly offered to frameworks while the operation is still
in a pending state.
Diffs
-----
src/master/master.cpp acc67d3763ddee9027e6cf375f1d495ff5805026
Diff: https://reviews.apache.org/r/70325/diff/1/
Testing (updated)
-------
`make check`
To verify the flaky test fix, the following command was executed both before and after the patches were applied, while `stress -c <num_cores_on_machine>` was being run:
`bin/mesos-tests.sh --gtest_filter="*AgentPendingOperationAfterMasterFailover*" --gtest_repeat=-1 --gtest_break_on_failure`
Before the patches were applied, the test would reliably fail after less than 50 repetitions. After the patches are applied, the test can be run for hundreds of repetitions with no failures.
Thanks,
Greg Mann
Re: Review Request 70325: Updated the master to allocate recovered
orphan operation resources.
Posted by Greg Mann <gr...@mesosphere.io>.
-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/70325/
-----------------------------------------------------------
(Updated March 27, 2019, 7:57 p.m.)
Review request for mesos, Benjamin Mahler, Gastón Kleiman, Joseph Wu, and Meng Zhu.
Bugs: MESOS-9635
https://issues.apache.org/jira/browse/MESOS-9635
Repository: mesos
Description (updated)
-------
This patch updates the master's framework recovery code to use
the allocator's `addAgentResources()` method rather than
`updateSlave()` when recovering orphan operations, which has the
benefit of tracking the allocation of the operations' consumed
resources, avoiding situations in which those resources would be
incorrectly offered to frameworks while the operation is still
in a pending state.
Diffs
-----
src/master/master.cpp acc67d3763ddee9027e6cf375f1d495ff5805026
Diff: https://reviews.apache.org/r/70325/diff/1/
Testing (updated)
-------
`make check`
To verify the flaky test fix, the following command was executed both before and after the patches were applied, while `stress -c <num_cores_on_machine>` was being run:
`bin/mesos-tests.sh --gtest_filter="*AgentPendingOperationAfterMasterFailover*" --gtest_repeat=-1 --gtest_break_on_failure`
Thanks,
Greg Mann