You are viewing a plain text version of this content. The canonical link for it is here.
Posted to reviews@mesos.apache.org by Alexander Rukletsov <ru...@gmail.com> on 2018/05/18 18:30:57 UTC

Review Request 67217: Ensured `SlaveRegisteredMessage`s trigger appropriate expectations.

-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/67217/
-----------------------------------------------------------

Review request for mesos, Benjamin Bannier and Benno Evers.


Bugs: MESOS-8923
    https://issues.apache.org/jira/browse/MESOS-8923


Repository: mesos


Description
-------

An agent may retry `SlaveRegisteredMessage` if it does not receive
the registration confirmation on time. In this case the confirmation
may be sent twice. In tests with multiple registering agents, this
may result that an expectation set for one agent is satisfied by
a retried confirmation for another agent.

This patch unifies the way how this case is handled. An expectation
is augmented with a matcher for with the agent pid for which the
expectation is set.


Diffs
-----

  src/tests/master_maintenance_tests.cpp f3fb2244bd8f10a7bc0fe3400f96dc739f3db7ac 
  src/tests/master_tests.cpp 6a0fa988aebaf1cf66abaaca0c628f981c6ccc31 
  src/tests/partition_tests.cpp 390b7c8d0674d6f51a06507fdb720ba2fe95b642 
  src/tests/persistent_volume_endpoints_tests.cpp 770c4822d8c8ecbacdbd0c3d92a3cd2ff3837e3d 
  src/tests/storage_local_resource_provider_tests.cpp 45cb38922f78941e82667a60b3b71ce220c9202f 


Diff: https://reviews.apache.org/r/67217/diff/1/


Testing
-------

`make check` on Mac OS 10.13.4


Thanks,

Alexander Rukletsov


Re: Review Request 67217: Ensured `SlaveRegisteredMessage`s trigger appropriate expectations.

Posted by Mesos Reviewbot Windows <re...@mesos.apache.org>.
-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/67217/#review203451
-----------------------------------------------------------



PASS: Mesos patch 67217 was successfully built and tested.

Reviews applied: `['67217']`

All the build artifacts available at: http://dcos-win.westus.cloudapp.azure.com/mesos-build/review/67217

- Mesos Reviewbot Windows


On May 18, 2018, 6:30 p.m., Alexander Rukletsov wrote:
> 
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/67217/
> -----------------------------------------------------------
> 
> (Updated May 18, 2018, 6:30 p.m.)
> 
> 
> Review request for mesos, Benjamin Bannier and Benno Evers.
> 
> 
> Bugs: MESOS-8923
>     https://issues.apache.org/jira/browse/MESOS-8923
> 
> 
> Repository: mesos
> 
> 
> Description
> -------
> 
> An agent may retry `SlaveRegisteredMessage` if it does not receive
> the registration confirmation on time. In this case the confirmation
> may be sent twice. In tests with multiple registering agents, this
> may result that an expectation set for one agent is satisfied by
> a retried confirmation for another agent.
> 
> This patch unifies the way how this case is handled. An expectation
> is augmented with a matcher for with the agent pid for which the
> expectation is set.
> 
> 
> Diffs
> -----
> 
>   src/tests/master_maintenance_tests.cpp f3fb2244bd8f10a7bc0fe3400f96dc739f3db7ac 
>   src/tests/master_tests.cpp 6a0fa988aebaf1cf66abaaca0c628f981c6ccc31 
>   src/tests/partition_tests.cpp 390b7c8d0674d6f51a06507fdb720ba2fe95b642 
>   src/tests/persistent_volume_endpoints_tests.cpp 770c4822d8c8ecbacdbd0c3d92a3cd2ff3837e3d 
>   src/tests/storage_local_resource_provider_tests.cpp 45cb38922f78941e82667a60b3b71ce220c9202f 
> 
> 
> Diff: https://reviews.apache.org/r/67217/diff/1/
> 
> 
> Testing
> -------
> 
> `make check` on Mac OS 10.13.4
> 
> 
> Thanks,
> 
> Alexander Rukletsov
> 
>


Re: Review Request 67217: Ensured `SlaveRegisteredMessage`s trigger appropriate expectations.

Posted by Benno Evers <be...@mesosphere.com>.
-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/67217/#review203560
-----------------------------------------------------------


Fix it, then Ship it!




Looks great!


src/tests/master_tests.cpp
Line 8542 (original), 8538 (patched)
<https://reviews.apache.org/r/67217/#comment285846>

    `Ensure`



src/tests/partition_tests.cpp
Lines 3328 (patched)
<https://reviews.apache.org/r/67217/#comment285847>

    Missing space before `slave1`. (same for the same comment above)


- Benno Evers


On May 18, 2018, 6:30 p.m., Alexander Rukletsov wrote:
> 
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/67217/
> -----------------------------------------------------------
> 
> (Updated May 18, 2018, 6:30 p.m.)
> 
> 
> Review request for mesos, Benjamin Bannier and Benno Evers.
> 
> 
> Bugs: MESOS-8923
>     https://issues.apache.org/jira/browse/MESOS-8923
> 
> 
> Repository: mesos
> 
> 
> Description
> -------
> 
> An agent may retry `SlaveRegisteredMessage` if it does not receive
> the registration confirmation on time. In this case the confirmation
> may be sent twice. In tests with multiple registering agents, this
> may result that an expectation set for one agent is satisfied by
> a retried confirmation for another agent.
> 
> This patch unifies the way how this case is handled. An expectation
> is augmented with a matcher for with the agent pid for which the
> expectation is set.
> 
> 
> Diffs
> -----
> 
>   src/tests/master_maintenance_tests.cpp f3fb2244bd8f10a7bc0fe3400f96dc739f3db7ac 
>   src/tests/master_tests.cpp 6a0fa988aebaf1cf66abaaca0c628f981c6ccc31 
>   src/tests/partition_tests.cpp 390b7c8d0674d6f51a06507fdb720ba2fe95b642 
>   src/tests/persistent_volume_endpoints_tests.cpp 770c4822d8c8ecbacdbd0c3d92a3cd2ff3837e3d 
>   src/tests/storage_local_resource_provider_tests.cpp 45cb38922f78941e82667a60b3b71ce220c9202f 
> 
> 
> Diff: https://reviews.apache.org/r/67217/diff/1/
> 
> 
> Testing
> -------
> 
> `make check` on Mac OS 10.13.4
> 
> 
> Thanks,
> 
> Alexander Rukletsov
> 
>


Re: Review Request 67217: Ensured `SlaveRegisteredMessage`s trigger appropriate expectations.

Posted by Alexander Rukletsov <ru...@gmail.com>.
-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/67217/
-----------------------------------------------------------

(Updated May 25, 2018, 10:51 a.m.)


Review request for mesos, Benjamin Bannier and Benno Evers.


Bugs: MESOS-8923
    https://issues.apache.org/jira/browse/MESOS-8923


Repository: mesos


Description
-------

An agent may retry `SlaveRegisteredMessage` if it does not receive
the registration confirmation on time. In this case the confirmation
may be sent twice. In tests with multiple registering agents, this
may result that an expectation set for one agent is satisfied by
a retried confirmation for another agent.

This patch unifies the way how this case is handled. An expectation
is augmented with a matcher for with the agent pid for which the
expectation is set.


Diffs (updated)
-----

  src/tests/master_maintenance_tests.cpp f3fb2244bd8f10a7bc0fe3400f96dc739f3db7ac 
  src/tests/master_tests.cpp 6a0fa988aebaf1cf66abaaca0c628f981c6ccc31 
  src/tests/partition_tests.cpp 390b7c8d0674d6f51a06507fdb720ba2fe95b642 
  src/tests/persistent_volume_endpoints_tests.cpp 770c4822d8c8ecbacdbd0c3d92a3cd2ff3837e3d 
  src/tests/storage_local_resource_provider_tests.cpp 45cb38922f78941e82667a60b3b71ce220c9202f 


Diff: https://reviews.apache.org/r/67217/diff/2/

Changes: https://reviews.apache.org/r/67217/diff/1-2/


Testing
-------

`make check` on Mac OS 10.13.4
and on various Linux distros.


Thanks,

Alexander Rukletsov


Re: Review Request 67217: Ensured `SlaveRegisteredMessage`s trigger appropriate expectations.

Posted by Alexander Rukletsov <ru...@gmail.com>.
-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/67217/
-----------------------------------------------------------

(Updated May 22, 2018, 12:43 p.m.)


Review request for mesos, Benjamin Bannier and Benno Evers.


Bugs: MESOS-8923
    https://issues.apache.org/jira/browse/MESOS-8923


Repository: mesos


Description
-------

An agent may retry `SlaveRegisteredMessage` if it does not receive
the registration confirmation on time. In this case the confirmation
may be sent twice. In tests with multiple registering agents, this
may result that an expectation set for one agent is satisfied by
a retried confirmation for another agent.

This patch unifies the way how this case is handled. An expectation
is augmented with a matcher for with the agent pid for which the
expectation is set.


Diffs
-----

  src/tests/master_maintenance_tests.cpp f3fb2244bd8f10a7bc0fe3400f96dc739f3db7ac 
  src/tests/master_tests.cpp 6a0fa988aebaf1cf66abaaca0c628f981c6ccc31 
  src/tests/partition_tests.cpp 390b7c8d0674d6f51a06507fdb720ba2fe95b642 
  src/tests/persistent_volume_endpoints_tests.cpp 770c4822d8c8ecbacdbd0c3d92a3cd2ff3837e3d 
  src/tests/storage_local_resource_provider_tests.cpp 45cb38922f78941e82667a60b3b71ce220c9202f 


Diff: https://reviews.apache.org/r/67217/diff/1/


Testing (updated)
-------

`make check` on Mac OS 10.13.4
and on various Linux distros.


Thanks,

Alexander Rukletsov


Re: Review Request 67217: Ensured `SlaveRegisteredMessage`s trigger appropriate expectations.

Posted by Mesos Reviewbot <re...@mesos.apache.org>.
-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/67217/#review203510
-----------------------------------------------------------



Patch looks great!

Reviews applied: [67217]

Passed command: export OS='ubuntu:14.04' BUILDTOOL='autotools' COMPILER='gcc' CONFIGURATION='--verbose --disable-libtool-wrappers' ENVIRONMENT='GLOG_v=1 MESOS_VERBOSE=1'; ./support/docker-build.sh

- Mesos Reviewbot


On May 18, 2018, 6:30 p.m., Alexander Rukletsov wrote:
> 
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/67217/
> -----------------------------------------------------------
> 
> (Updated May 18, 2018, 6:30 p.m.)
> 
> 
> Review request for mesos, Benjamin Bannier and Benno Evers.
> 
> 
> Bugs: MESOS-8923
>     https://issues.apache.org/jira/browse/MESOS-8923
> 
> 
> Repository: mesos
> 
> 
> Description
> -------
> 
> An agent may retry `SlaveRegisteredMessage` if it does not receive
> the registration confirmation on time. In this case the confirmation
> may be sent twice. In tests with multiple registering agents, this
> may result that an expectation set for one agent is satisfied by
> a retried confirmation for another agent.
> 
> This patch unifies the way how this case is handled. An expectation
> is augmented with a matcher for with the agent pid for which the
> expectation is set.
> 
> 
> Diffs
> -----
> 
>   src/tests/master_maintenance_tests.cpp f3fb2244bd8f10a7bc0fe3400f96dc739f3db7ac 
>   src/tests/master_tests.cpp 6a0fa988aebaf1cf66abaaca0c628f981c6ccc31 
>   src/tests/partition_tests.cpp 390b7c8d0674d6f51a06507fdb720ba2fe95b642 
>   src/tests/persistent_volume_endpoints_tests.cpp 770c4822d8c8ecbacdbd0c3d92a3cd2ff3837e3d 
>   src/tests/storage_local_resource_provider_tests.cpp 45cb38922f78941e82667a60b3b71ce220c9202f 
> 
> 
> Diff: https://reviews.apache.org/r/67217/diff/1/
> 
> 
> Testing
> -------
> 
> `make check` on Mac OS 10.13.4
> 
> 
> Thanks,
> 
> Alexander Rukletsov
> 
>