[ 
https://issues.apache.org/jira/browse/KYLIN-2509?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Shaofeng SHI closed KYLIN-2509.
-------------------------------

> 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.4.14#64029)

Reply via email to