> On Jan. 12, 2016, 9:53 a.m., Alexander Rojas wrote: > > src/master/validation.cpp, line 696 > > <https://reviews.apache.org/r/42164/diff/2/?file=1192809#file1192809line696> > > > > This line should be executed only if the principal is some. The error > > reported by _gyliu_ in the follow up patch happens in this line.
:facepalm: Thanks Alex; I fixed this error and added a test case that performs these operations without a principal. It caused a segfault before the fix, and completes successfully after the fix. - Greg ----------------------------------------------------------- This is an automatically generated e-mail. To reply, visit: https://reviews.apache.org/r/42164/#review113965 ----------------------------------------------------------- On Jan. 12, 2016, 4:43 p.m., Greg Mann wrote: > > ----------------------------------------------------------- > This is an automatically generated e-mail. To reply, visit: > https://reviews.apache.org/r/42164/ > ----------------------------------------------------------- > > (Updated Jan. 12, 2016, 4:43 p.m.) > > > Review request for mesos, Alexander Rojas, Michael Park, and Neil Conway. > > > Bugs: MESOS-3940 > https://issues.apache.org/jira/browse/MESOS-3940 > > > Repository: mesos > > > Description > ------- > > Allowed (un)reserve operations without a principal. > > > Diffs > ----- > > src/master/validation.cpp 6a43bce5b7df6a9d939245c4726d060fa19eb305 > src/tests/master_validation_tests.cpp > fbf8fadbc04a7cbc60ee6091e0224339389b400f > src/tests/reservation_endpoints_tests.cpp > b8edd6fafedd4c2221a8d19c1ebc71254071a8c7 > > Diff: https://reviews.apache.org/r/42164/diff/ > > > Testing > ------- > > Two master validation tests were removed which tested to make sure that > reserve and unreserve operations would not succeed without a principal. > > `make check` was used to test on both OSX and Ubuntu 14.04 > > > Thanks, > > Greg Mann > >
