Update the master and allocator + Added a test for acquiring dynamic reservations.

Review: https://reviews.apache.org/r/29174