mesos-reviews mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Joseph Wu <jos...@mesosphere.io>
Subject Re: Review Request 64731: Ended `IOSwitchboard::_prepare` with `UNREACHABLE`.
Date Fri, 05 Jan 2018 22:22:44 GMT

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


Fix it, then Ship it!





src/slave/containerizer/mesos/io/switchboard.cpp
Lines 322-323 (original), 322-323 (patched)
<https://reviews.apache.org/r/64731/#comment273993>

    It should be clearer to place the UNREACHABLE here.  Otherwise the reader needs to scroll
all the way up and find where the second `#ifdef` starts.
    
    ```
    #ifdef __WINDOWS__
      // NOTE: On Windows, both return values of
      // `IOSwitchboard::requiresServer(containerConfig)`
      // are checked and will return before reaching here.
      UNREACHABLE();
    #else
      // Other existing stuff...
    #endif // __WINDOWS__
    ```


- Joseph Wu


On Jan. 5, 2018, 1:53 p.m., Andrew Schwartzmeyer wrote:
> 
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/64731/
> -----------------------------------------------------------
> 
> (Updated Jan. 5, 2018, 1:53 p.m.)
> 
> 
> Review request for mesos, Greg Mann, Jie Yu, Joseph Wu, and Michael Park.
> 
> 
> Repository: mesos
> 
> 
> Description
> -------
> 
> All paths should `return`, but the compiler wasn't able to determine
> this.
> 
> 
> Diffs
> -----
> 
>   src/slave/containerizer/mesos/io/switchboard.cpp 89dd4988c7132d3c7aeacecad7a76961b0ec5a2c

> 
> 
> Diff: https://reviews.apache.org/r/64731/diff/2/
> 
> 
> Testing
> -------
> 
> 
> Thanks,
> 
> Andrew Schwartzmeyer
> 
>


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