YARN-5400. addendum patch to fix JDK 7 issue

This commit is contained in:
Robert Kanter 2016-09-28 15:56:03 -07:00
parent 087c61192d
commit 4f8c7f819c
1 changed files with 2 additions and 1 deletions

View File

@ -412,7 +412,8 @@ public class ZKRMStateStore extends RMStateStore {
ReservationAllocationStateProto.parseFrom(reservationData); ReservationAllocationStateProto.parseFrom(reservationData);
if (!rmState.getReservationState().containsKey(planName)) { if (!rmState.getReservationState().containsKey(planName)) {
rmState.getReservationState().put(planName, new HashMap<>()); rmState.getReservationState().put(planName,
new HashMap<ReservationId, ReservationAllocationStateProto>());
} }
ReservationId reservationId = ReservationId reservationId =