Re: Review Request 70668: Fixed the race between validating and applying FrameworkInfo updates.

2019-05-21 Thread Andrei Sekretenko

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

(Updated May 21, 2019, 1:47 p.m.)


Review request for mesos and Benjamin Mahler.


Bugs: MESOS-7258 and MESOS-9763
https://issues.apache.org/jira/browse/MESOS-7258
https://issues.apache.org/jira/browse/MESOS-9763


Repository: mesos


Description
---

This patch moves the FrameworkInfo update validation into the
continuation of the SUBSCRIBE calls (after authorization). This fixes
the race between two concurrent SUBSCRIBE calls attempting to change
principal (see MESOS-9763) and prevents the future changes of the update
validation from exacerbating this race.


Diffs (updated)
-

  src/master/master.cpp 24bd9572741c033c02d03a3a3a35d7d4ed8b60de 


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

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


Testing
---


Thanks,

Andrei Sekretenko



Re: Review Request 70668: Fixed the race between validating and applying FrameworkInfo updates.

2019-05-20 Thread Benjamin Mahler

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


Ship it!





src/master/master.cpp
Lines 2777 (patched)


```
if (updateValidationError.isSome()) {
```



src/master/master.cpp
Lines 3050 (patched)


```
if (updateValidationError.isSome()) {
```


- Benjamin Mahler


On May 17, 2019, 3:07 p.m., Andrei Sekretenko wrote:
> 
> ---
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/70668/
> ---
> 
> (Updated May 17, 2019, 3:07 p.m.)
> 
> 
> Review request for mesos and Benjamin Mahler.
> 
> 
> Bugs: MESOS-7258 and MESOS-9763
> https://issues.apache.org/jira/browse/MESOS-7258
> https://issues.apache.org/jira/browse/MESOS-9763
> 
> 
> Repository: mesos
> 
> 
> Description
> ---
> 
> This patch moves the FrameworkInfo update validation into the
> continuation of the SUBSCRIBE calls (after authorization). This fixes
> the race between two concurrent SUBSCRIBE calls attempting to change
> principal (see MESOS-9763) and prevents the future changes of the update
> validation from exacerbating this race.
> 
> 
> Diffs
> -
> 
>   src/master/master.cpp c72b92656dddca63ee89abf676da66bd76f58a6d 
> 
> 
> Diff: https://reviews.apache.org/r/70668/diff/1/
> 
> 
> Testing
> ---
> 
> 
> Thanks,
> 
> Andrei Sekretenko
> 
>



Review Request 70668: Fixed the race between validating and applying FrameworkInfo updates.

2019-05-17 Thread Andrei Sekretenko

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

Review request for mesos and Benjamin Mahler.


Bugs: MESOS-7258 and MESOS-9763
https://issues.apache.org/jira/browse/MESOS-7258
https://issues.apache.org/jira/browse/MESOS-9763


Repository: mesos


Description
---

This patch moves the FrameworkInfo update validation into the
continuation of the SUBSCRIBE calls (after authorization). This fixes
the race between two concurrent SUBSCRIBE calls attempting to change
principal (see MESOS-9763) and prevents the future changes of the update
validation from exacerbating this race.


Diffs
-

  src/master/master.cpp c72b92656dddca63ee89abf676da66bd76f58a6d 


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


Testing
---


Thanks,

Andrei Sekretenko