----------------------------------------------------------- This is an automatically generated e-mail. To reply, visit: https://reviews.apache.org/r/63997/ -----------------------------------------------------------
Review request for mesos. Repository: mesos Description ------- In certain reconciliation scenarios being able to update an agent's allocations known to the allocator is useful as it allows to mark resources as used even after the agent was added. While it was already possible to set up agents with their total and used resources when adding them to an allocator, there was no way to externally inject allocations on an already added agent. This patch introduces an allocator method 'addAllocation' which can be used to add a single allocation to the known allocations for an agent. Diffs ----- include/mesos/allocator/allocator.hpp ae122003487ca8956573e993cd3993aa8cc286f1 src/master/allocator/mesos/allocator.hpp 8fa4fdeec4ec64bcd49fc442c230d8684a11cfd9 src/master/allocator/mesos/hierarchical.hpp 2c4832b29842330fa57756cd3d4202f265a820f3 src/master/allocator/mesos/hierarchical.cpp cfeeb3bfa3ad7d78ff6e22cfc4adb1f0efa05629 src/tests/allocator.hpp 6a84f1beb86dceb5a5e9bf4615c13a216f3d0905 src/tests/hierarchical_allocator_tests.cpp f0f95ba4f667bf8ea54e985d8cde913a4170d8ff Diff: https://reviews.apache.org/r/63997/diff/1/ Testing ------- `make check` Thanks, Benjamin Bannier