Re: Review Request 69205: Fixed FetcherTest.DuplicateFileURI on OSX.

2018-10-30 Thread Joseph Wu


> On Oct. 30, 2018, 11:48 a.m., Benjamin Bannier wrote:
> > src/common/type_utils.cpp
> > Lines 86 (patched)
> > 
> >
> > Not yours, but it would be great to document that we don't want to 
> > include `cache` explicitly.

I shall add the following blurb:
```
  // NOTE: We purposefully do not compare the value of the `cache` field
  // because a URI downloaded from source or from the fetcher cache should
  // be considered identical.
```


- Joseph


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


On Oct. 29, 2018, 4:02 p.m., Joseph Wu wrote:
> 
> ---
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/69205/
> ---
> 
> (Updated Oct. 29, 2018, 4:02 p.m.)
> 
> 
> Review request for mesos and Benjamin Bannier.
> 
> 
> Bugs: MESOS-9357
> https://issues.apache.org/jira/browse/MESOS-9357
> 
> 
> Repository: mesos
> 
> 
> Description
> ---
> 
> This test seems to fail because of a mismatch between the implementation
> of std::hash and operator== of the CommandInfo::URI object.  The hash
> accounts for all fields except for 'cache'.  The equality operator
> accounts for all fields except 'cache' **and** 'output_file'.
> 
> This mismatch results in replacing the URI value in the fetcher's
> mapping, rather than adding a value.  Why the std::unordered_map
> checks the equality operator rather than the hash value is unknown,
> but may be an implementation detail of clang's stdlib.
> 
> 
> Diffs
> -
> 
>   src/common/type_utils.cpp 33d63809b61a18e03ff745c88f024c71dd221ca2 
>   src/v1/mesos.cpp 9b2df2dd798dff24a91a2604ab53c7fbb5ecfbcf 
> 
> 
> Diff: https://reviews.apache.org/r/69205/diff/1/
> 
> 
> Testing
> ---
> 
> make check
> 
> 
> Thanks,
> 
> Joseph Wu
> 
>



Re: Review Request 69205: Fixed FetcherTest.DuplicateFileURI on OSX.

2018-10-30 Thread Benjamin Bannier

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


Fix it, then Ship it!





src/common/type_utils.cpp
Lines 86 (patched)


Not yours, but it would be great to document that we don't want to include 
`cache` explicitly.



src/v1/mesos.cpp
Lines 85 (patched)


Ditto.


- Benjamin Bannier


On Oct. 30, 2018, 12:02 a.m., Joseph Wu wrote:
> 
> ---
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/69205/
> ---
> 
> (Updated Oct. 30, 2018, 12:02 a.m.)
> 
> 
> Review request for mesos and Benjamin Bannier.
> 
> 
> Bugs: MESOS-9357
> https://issues.apache.org/jira/browse/MESOS-9357
> 
> 
> Repository: mesos
> 
> 
> Description
> ---
> 
> This test seems to fail because of a mismatch between the implementation
> of std::hash and operator== of the CommandInfo::URI object.  The hash
> accounts for all fields except for 'cache'.  The equality operator
> accounts for all fields except 'cache' **and** 'output_file'.
> 
> This mismatch results in replacing the URI value in the fetcher's
> mapping, rather than adding a value.  Why the std::unordered_map
> checks the equality operator rather than the hash value is unknown,
> but may be an implementation detail of clang's stdlib.
> 
> 
> Diffs
> -
> 
>   src/common/type_utils.cpp 33d63809b61a18e03ff745c88f024c71dd221ca2 
>   src/v1/mesos.cpp 9b2df2dd798dff24a91a2604ab53c7fbb5ecfbcf 
> 
> 
> Diff: https://reviews.apache.org/r/69205/diff/1/
> 
> 
> Testing
> ---
> 
> make check
> 
> 
> Thanks,
> 
> Joseph Wu
> 
>



Re: Review Request 69205: Fixed FetcherTest.DuplicateFileURI on OSX.

2018-10-29 Thread Mesos Reviewbot Windows

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



PASS: Mesos patch 69205 was successfully built and tested.

Reviews applied: `['69205']`

All the build artifacts available at: 
http://dcos-win.westus2.cloudapp.azure.com/artifacts/mesos-reviewbot-testing/2546/mesos-review-69205

- Mesos Reviewbot Windows


On Oct. 29, 2018, 11:02 p.m., Joseph Wu wrote:
> 
> ---
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/69205/
> ---
> 
> (Updated Oct. 29, 2018, 11:02 p.m.)
> 
> 
> Review request for mesos and Benjamin Bannier.
> 
> 
> Bugs: MESOS-9357
> https://issues.apache.org/jira/browse/MESOS-9357
> 
> 
> Repository: mesos
> 
> 
> Description
> ---
> 
> This test seems to fail because of a mismatch between the implementation
> of std::hash and operator== of the CommandInfo::URI object.  The hash
> accounts for all fields except for 'cache'.  The equality operator
> accounts for all fields except 'cache' **and** 'output_file'.
> 
> This mismatch results in replacing the URI value in the fetcher's
> mapping, rather than adding a value.  Why the std::unordered_map
> checks the equality operator rather than the hash value is unknown,
> but may be an implementation detail of clang's stdlib.
> 
> 
> Diffs
> -
> 
>   src/common/type_utils.cpp 33d63809b61a18e03ff745c88f024c71dd221ca2 
>   src/v1/mesos.cpp 9b2df2dd798dff24a91a2604ab53c7fbb5ecfbcf 
> 
> 
> Diff: https://reviews.apache.org/r/69205/diff/1/
> 
> 
> Testing
> ---
> 
> make check
> 
> 
> Thanks,
> 
> Joseph Wu
> 
>



Review Request 69205: Fixed FetcherTest.DuplicateFileURI on OSX.

2018-10-29 Thread Joseph Wu

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

Review request for mesos and Benjamin Bannier.


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


Repository: mesos


Description
---

This test seems to fail because of a mismatch between the implementation
of std::hash and operator== of the CommandInfo::URI object.  The hash
accounts for all fields except for 'cache'.  The equality operator
accounts for all fields except 'cache' **and** 'output_file'.

This mismatch results in replacing the URI value in the fetcher's
mapping, rather than adding a value.  Why the std::unordered_map
checks the equality operator rather than the hash value is unknown,
but may be an implementation detail of clang's stdlib.


Diffs
-

  src/common/type_utils.cpp 33d63809b61a18e03ff745c88f024c71dd221ca2 
  src/v1/mesos.cpp 9b2df2dd798dff24a91a2604ab53c7fbb5ecfbcf 


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


Testing
---

make check


Thanks,

Joseph Wu