> On March 2, 2017, 10:41 p.m., Greg Mann wrote: > > src/master/master.cpp > > Lines 1565-1573 (original), 1569-1577 (patched) > > <https://reviews.apache.org/r/56813/diff/6/?file=1651813#file1651813line1569> > > > > CHECK(principal->value.isSome()) > > Greg Mann wrote: > In this case, and in the case of `exceededCapacity`, I changed the > `principal` parameter back to `Option<string>& principal`. It turns out these > functions are only part of the `Master::visit` call path, so they only make > use of the master's internal `frameworks.principals` map. Thus, they will > always receive a string-type principal. I added a todo to change the > signature when we resolve MESOS-7202.
sgtm. thanks. - Vinod ----------------------------------------------------------- This is an automatically generated e-mail. To reply, visit: https://reviews.apache.org/r/56813/#review167754 ----------------------------------------------------------- On March 3, 2017, 6:45 p.m., Greg Mann wrote: > > ----------------------------------------------------------- > This is an automatically generated e-mail. To reply, visit: > https://reviews.apache.org/r/56813/ > ----------------------------------------------------------- > > (Updated March 3, 2017, 6:45 p.m.) > > > Review request for mesos, Adam B, Alexander Rojas, Jan Schlicht, Till > Toenshoff, and Vinod Kone. > > > Bugs: MESOS-7003 > https://issues.apache.org/jira/browse/MESOS-7003 > > > Repository: mesos > > > Description > ------- > > This patch updates the HTTP endpoint handlers in the > master process to accept the `Principal` type instead > of an `Option<string>& principal`. > > > Diffs > ----- > > src/master/http.cpp 37b96c07f17d3e5ba96f6eade69d86ba9e039b3d > src/master/master.hpp 81320e0da3a2cd99d8dea1fbea9276296ef9e515 > src/master/master.cpp 2232cb7ad7c9ba7c067334d7327f592ab48e48fa > src/master/quota_handler.cpp 3ad28e4a9363a877d0610b529a6c17fb30ece37a > src/master/registrar.cpp d7134eea34102ab7b24d2f0131363bdd9005cfd3 > src/master/weights_handler.cpp d8047f2354322ec18b008afe44f507069b36a71f > > > Diff: https://reviews.apache.org/r/56813/diff/7/ > > > Testing > ------- > > Testing details can be found at the end of this review chain. > > > Thanks, > > Greg Mann > >