You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@kylin.apache.org by "Ted Yu (JIRA)" <ji...@apache.org> on 2017/03/15 18:01:41 UTC
[jira] [Created] (KYLIN-2509) Unsafe iteration over booking in
MemoryBudgetController#tryFreeUp
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)