Ted Yu created KYLIN-2509:
-----------------------------
Summary: Unsafe iteration over booking in
MemoryBudgetController#tryFreeUp
Key: KYLIN-2509
URL: https://issues.apache.org/jira/browse/KYLIN-2509
Project: Kylin
Issue Type: Bug
Reporter: Ted Yu
Priority: Minor
{code}
for (ConsumerEntry entry : booking.values()) {
int mb = entry.consumer.freeUp(gap);
if (mb > 0) {
lock.lock();
try {
updateBookingWithDelta(entry.consumer, -mb);
{code}
In updateBookingWithDelta, booking may be modified, leading to concurrent
modification.
--
This message was sent by Atlassian JIRA
(v6.3.15#6346)