Re: Review Request 36453: Ignored subsequent calls to 'resourceOffers' in 'ReservationTest.CompatibleCheckpointedResources' test.

2015-07-13 Thread Mesos ReviewBot

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


Patch looks great!

Reviews applied: [36453]

All tests passed.

- Mesos ReviewBot


On July 13, 2015, 8:18 p.m., Michael Park wrote:
> 
> ---
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/36453/
> ---
> 
> (Updated July 13, 2015, 8:18 p.m.)
> 
> 
> Review request for mesos, Ben Mahler and Jie Yu.
> 
> 
> Bugs: MESOS-3034
> https://issues.apache.org/jira/browse/MESOS-3034
> 
> 
> Repository: mesos
> 
> 
> Description
> ---
> 
> Ignored subsequent calls to 'resourceOffers' in 
> 'ReservationTest.CompatibleCheckpointedResources' test.
> 
> 
> Diffs
> -
> 
>   src/tests/reservation_tests.cpp 99bf393ed4e806dee13518cfbd2d44d740285c2c 
> 
> Diff: https://reviews.apache.org/r/36453/diff/
> 
> 
> Testing
> ---
> 
> I was able to reproduce more reliably after changing 
> `master.allocation_interval` to `Milliseconds(1)` and running 
> `GTEST_FILTER="ReservationTest.CompatibleCheckpointedResources" 
> ./bin/mesos-tests.sh --gtest_repeat=1000`.
> 
> Ran the above command with the fix and observed that it passes.
> 
> 
> Thanks,
> 
> Michael Park
> 
>



Re: Review Request 36453: Ignored subsequent calls to 'resourceOffers' in 'ReservationTest.CompatibleCheckpointedResources' test.

2015-07-13 Thread Michael Park

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

(Updated July 13, 2015, 8:18 p.m.)


Review request for mesos, Ben Mahler and Jie Yu.


Changes
---

Addressed Jie's comment.


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


Repository: mesos


Description
---

Ignored subsequent calls to 'resourceOffers' in 
'ReservationTest.CompatibleCheckpointedResources' test.


Diffs (updated)
-

  src/tests/reservation_tests.cpp 99bf393ed4e806dee13518cfbd2d44d740285c2c 

Diff: https://reviews.apache.org/r/36453/diff/


Testing
---

I was able to reproduce more reliably after changing 
`master.allocation_interval` to `Milliseconds(1)` and running 
`GTEST_FILTER="ReservationTest.CompatibleCheckpointedResources" 
./bin/mesos-tests.sh --gtest_repeat=1000`.

Ran the above command with the fix and observed that it passes.


Thanks,

Michael Park



Re: Review Request 36453: Ignored subsequent calls to 'resourceOffers' in 'ReservationTest.CompatibleCheckpointedResources' test.

2015-07-13 Thread Jie Yu

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

Ship it!



src/tests/reservation_tests.cpp (line 928)


Please add a comment since it's not quite obvious.

.WillRepeatedly(Return());// Ignore subsequent offers.


- Jie Yu


On July 13, 2015, 7:29 p.m., Michael Park wrote:
> 
> ---
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/36453/
> ---
> 
> (Updated July 13, 2015, 7:29 p.m.)
> 
> 
> Review request for mesos, Ben Mahler and Jie Yu.
> 
> 
> Bugs: MESOS-3034
> https://issues.apache.org/jira/browse/MESOS-3034
> 
> 
> Repository: mesos
> 
> 
> Description
> ---
> 
> Ignored subsequent calls to 'resourceOffers' in 
> 'ReservationTest.CompatibleCheckpointedResources' test.
> 
> 
> Diffs
> -
> 
>   src/tests/reservation_tests.cpp 99bf393ed4e806dee13518cfbd2d44d740285c2c 
> 
> Diff: https://reviews.apache.org/r/36453/diff/
> 
> 
> Testing
> ---
> 
> I was able to reproduce more reliably after changing 
> `master.allocation_interval` to `Milliseconds(1)` and running 
> `GTEST_FILTER="ReservationTest.CompatibleCheckpointedResources" 
> ./bin/mesos-tests.sh --gtest_repeat=1000`.
> 
> Ran the above command with the fix and observed that it passes.
> 
> 
> Thanks,
> 
> Michael Park
> 
>



Review Request 36453: Ignored subsequent calls to 'resourceOffers' in 'ReservationTest.CompatibleCheckpointedResources' test.

2015-07-13 Thread Michael Park

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

Review request for mesos, Ben Mahler and Jie Yu.


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


Repository: mesos


Description
---

Ignored subsequent calls to 'resourceOffers' in 
'ReservationTest.CompatibleCheckpointedResources' test.


Diffs
-

  src/tests/reservation_tests.cpp 99bf393ed4e806dee13518cfbd2d44d740285c2c 

Diff: https://reviews.apache.org/r/36453/diff/


Testing
---

I was able to reproduce more reliably after changing 
`master.allocation_interval` to `Milliseconds(1)` and running 
`GTEST_FILTER="ReservationTest.CompatibleCheckpointedResources" 
./bin/mesos-tests.sh --gtest_repeat=1000`.

Ran the above command with the fix and observed that it passes.


Thanks,

Michael Park