mesos-reviews mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Greg Mann <>
Subject Re: Review Request 48968: Fixed bug in '/reserve' endpoint validation.
Date Thu, 23 Jun 2016 21:29:16 GMT

This is an automatically generated e-mail. To reply, visit:

(Updated June 23, 2016, 9:29 p.m.)

Review request for mesos, Anand Mazumdar, Neil Conway, and Vinod Kone.


Addressed comments.

Bugs: MESOS-5664

Repository: mesos


This patch fixes a bug in which invalid resources supplied
to the master's '/reserve', '/unreserve', '/create-volumes',
and '/destroy-volumes' HTTP endpoints were silently
ignored, without returning an error as expected.

Diffs (updated)

  src/master/http.cpp 70f084b84db90fde20c05d2354be190f28e72996 
  src/tests/persistent_volume_endpoints_tests.cpp b66c337808af673b6f98bbc9807d5bd1cb34731e

  src/tests/reservation_endpoints_tests.cpp e029f4e1b1da434fd6eb267675528ab97370be24 



New tests were added - `PersistentVolumeEndpointsTest.InvalidVolume` and `ReservationEndpointsTest.InvalidResource`
- to check that requests to the affected endpoints will fail correctly when invalid resources
are supplied. I checked that these tests failed before the fix, and passed after.

`make check` on OSX was used to test as well.


Greg Mann

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message