----------------------------------------------------------- This is an automatically generated e-mail. To reply, visit: https://reviews.apache.org/r/72726/#review221449 ----------------------------------------------------------- src/csi/v0_volume_manager.cpp Lines 645-651 (original), 645-651 (patched) I am a bit confused about the purpose of this code. This is a `foreach` loop for `services`, but in each iteration of the loop we always use the **first service** (i.e. `*services.begin()`) or the **CONTROLLER_SERVICE** (the old code) to make the `getPluginInfo` call. And in the code below, we compare the result of each call, but I think they must be consistent since we make the exactly same call in each iteration, right? So I guess we should make the `getPluginInfo` call with the `service` variable as the first parameter, right? - Qian Zhang On Aug. 1, 2020, 3:03 a.m., Greg Mann wrote: > > ----------------------------------------------------------- > This is an automatically generated e-mail. To reply, visit: > https://reviews.apache.org/r/72726/ > ----------------------------------------------------------- > > (Updated Aug. 1, 2020, 3:03 a.m.) > > > Review request for mesos, Andrei Budnik and Qian Zhang. > > > Bugs: MESOS-10163 > https://issues.apache.org/jira/browse/MESOS-10163 > > > Repository: mesos > > > Description > ------- > > Previously, the volume managers would assume that they could > make CONTROLLER_SERVICE calls during plugin initialization, > regardless of whether or not the plugin provides that service. > > > Diffs > ----- > > src/csi/v0_volume_manager.cpp 4b056e7525a5dde62e5e74bf592bfa37cccf7736 > src/csi/v1_volume_manager.cpp 9e449472252fd03940abaedcc5bd102fdaa63b47 > > > Diff: https://reviews.apache.org/r/72726/diff/1/ > > > Testing > ------- > > This change is necessary for a subsequent test later in this chain to pass. > > > Thanks, > > Greg Mann > >