mesos-reviews mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Benjamin Bannier <>
Subject Review Request 71277: Guarded access to possibly destructed resource provider driver.
Date Tue, 13 Aug 2019 09:30:01 GMT

This is an automatically generated e-mail. To reply, visit:

Review request for mesos, Andrei Budnik and Chun-Hung Hsiao.

Bugs: MESOS-9560

Repository: mesos


We provide a method to tear down a resource provider driver which
internally resets the resource provider HTTP driver pointer. We need to
prevent access to the pointed to value once the driver has been torn

This patch switches all internal uses of the the driver to `send` data
to use a public interface method instead. We also make sure that that
public method does not access an invalidated pointed to value.


  src/tests/mesos.hpp 73b6e424e8f611cf72f102fa13a6773e2865ddbf 



`make check`

Ran `ResourceProviderManagerHttpApiTest.ResourceProviderSubscribeDisconnect` under enormous
system `stress-ng`.

* before this patch: 5/413 failures; failure rate 0.01±0.07 (CL=67%)
* after this patch: 0/1273 failures; failure rate <0.04 (CL=67%)


Benjamin Bannier

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