> On Nov. 3, 2016, 10:39 p.m., Benjamin Mahler wrote: > > src/tests/master_validation_tests.cpp, lines 346-348 > > <https://reviews.apache.org/r/52642/diff/2/?file=1544212#file1544212line346> > > > > Have you gone through these tests? They also seem confusing. For > > example, this one says "framework with a principal" but it doesn't provide > > principal to the validate call. I would expect to see reservation principal > > vs framework principal, no? > > Gastón Kleiman wrote: > The principal is part of the reservation: > > > `resource.mutable_reservation()->CopyFrom(createReservationInfo("principal"));` > > I'm guessing that Mesos doesn't let a framework unreserve a resource that > was not part of the offer? > > Gastón Kleiman wrote: > I do agree that the tests descriptions are misleading. They should say > "reservation principal" instead of "framework principal".
https://reviews.apache.org/r/53571/ - Gastón ----------------------------------------------------------- This is an automatically generated e-mail. To reply, visit: https://reviews.apache.org/r/52642/#review154824 ----------------------------------------------------------- On Nov. 7, 2016, 11:02 a.m., Gastón Kleiman wrote: > > ----------------------------------------------------------- > This is an automatically generated e-mail. To reply, visit: > https://reviews.apache.org/r/52642/ > ----------------------------------------------------------- > > (Updated Nov. 7, 2016, 11:02 a.m.) > > > Review request for mesos, Alexander Rukletsov and Michael Park. > > > Bugs: MESOS-6142 > https://issues.apache.org/jira/browse/MESOS-6142 > > > Repository: mesos > > > Description > ------- > > Don't allow a reservation if the framework role doesn't match the role > of all the resources. > > > Diffs > ----- > > src/master/http.cpp 2f275f6c78b92e13bd7d38043b581b5a3555ee40 > src/master/master.cpp 15ad5a647fc71d36ffd149893b3b9448a7d99323 > src/master/validation.hpp ed878ef64c6bc49cfa1738f97c7af047f06ffee7 > src/master/validation.cpp 658f0dd1085c83cd82f8d2b0e2c4ec0ba785bb92 > src/tests/master_validation_tests.cpp > 8697bb2dc05c54553066ace58553f0e40dfcb5f5 > > Diff: https://reviews.apache.org/r/52642/diff/ > > > Testing > ------- > > make check > > > Thanks, > > Gastón Kleiman > >
