> On Feb. 25, 2019, 6:59 p.m., Greg Mann wrote: > > src/tests/storage_local_resource_provider_tests.cpp > > Lines 5130 (patched) > > <https://reviews.apache.org/r/69869/diff/3/?file=2126214#file2126214line5130> > > > > LAUNCH_GROUP isn't a non-speculative operation; it uses `addTask()` > > while processing the operation in the master, which updates the agent's > > used resources under the assumption that the task launches will succeed: > > https://github.com/apache/mesos/blob/68b73928a622be093a720277ec2ae1589c221b88/src/master/master.cpp#L12615 > > Joseph Wu wrote: > I grabbed the definition of non-speculative from this helper: > > https://github.com/apache/mesos/blob/68b73928a622be093a720277ec2ae1589c221b88/src/common/protobuf_utils.cpp#L891-L894
Hm weird, ok we can leave it for now. - Greg ----------------------------------------------------------- This is an automatically generated e-mail. To reply, visit: https://reviews.apache.org/r/69869/#review213179 ----------------------------------------------------------- On Feb. 25, 2019, 9 p.m., Joseph Wu wrote: > > ----------------------------------------------------------- > This is an automatically generated e-mail. To reply, visit: > https://reviews.apache.org/r/69869/ > ----------------------------------------------------------- > > (Updated Feb. 25, 2019, 9 p.m.) > > > Review request for mesos, Benno Evers, Gastón Kleiman, and Greg Mann. > > > Bugs: MESOS-9542 > https://issues.apache.org/jira/browse/MESOS-9542 > > > Repository: mesos > > > Description > ------- > > The CREATE_DISK and DESTROY_DISK operations are "non-speculative" > operations, which means the master must wait for the operations to > complete successfully before the master can update its resources. > Because the master must wait to update the results of non-speculative > operations, it is possible for the framework making the > CREATE/DESTROY_DISK to be torn down before the operation completes. > > This commit adds a test to make sure the master can gracefully handle > such a case. > > > Diffs > ----- > > src/tests/storage_local_resource_provider_tests.cpp > a661951a0a326cc342aa0c45dd0967692ae70941 > > > Diff: https://reviews.apache.org/r/69869/diff/4/ > > > Testing > ------- > > src/mesos-tests > --gtest_filter="StorageLocalResourceProviderTest.FrameworkTeardownBeforeTerminalOperationStatusUpdate" > --verbose > > One more test added next patch. > > > Thanks, > > Joseph Wu > >
