mesos-reviews mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Vinod Kone <vinodk...@gmail.com>
Subject Re: Review Request 48250: Cleaned up task state reconciliation tests.
Date Tue, 07 Jun 2016 15:14:47 GMT

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




src/tests/reconciliation_tests.cpp 
<https://reviews.apache.org/r/48250/#comment201518>

    state is a required field though. so not settting it is a bit weird. i would rather set
a dummy state and add a comment saying it's dummy.
    
    status.set_state(TASK_KILLED); // Dummy.
    
    here and everywhere else.


- Vinod Kone


On June 7, 2016, 1:40 p.m., Neil Conway wrote:
> 
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/48250/
> -----------------------------------------------------------
> 
> (Updated June 7, 2016, 1:40 p.m.)
> 
> 
> Review request for mesos, Benjamin Mahler and Vinod Kone.
> 
> 
> Bugs: MESOS-5547
>     https://issues.apache.org/jira/browse/MESOS-5547
> 
> 
> Repository: mesos
> 
> 
> Description
> -------
> 
> Task state reconciliation is documented to only look at the
> `taskId` and `slaveId` fields of the TaskStatus that is sent to
> the master; hence, setting the `state` field of TaskStatus is
> redundant at best and misleading at worst.
> 
> Along the way, make use of C++11 initializer lists.
> 
> 
> Diffs
> -----
> 
>   src/tests/reconciliation_tests.cpp 092dff165097315cbebd20bc32fb9fcf5370d136 
> 
> Diff: https://reviews.apache.org/r/48250/diff/
> 
> 
> Testing
> -------
> 
> make check
> 
> 
> Thanks,
> 
> Neil Conway
> 
>


Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message