hadoop-pig-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Benjamin Reed (JIRA)" <j...@apache.org>
Subject [jira] Updated: (PIG-1307) when we spill the DefaultDataBag we are not setting the sized changed flag to be true.
Date Thu, 18 Mar 2010 20:38:27 GMT

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

Benjamin Reed updated PIG-1307:
-------------------------------

    Attachment: PIG-1307.patch

this patch fixes the problem by using changes in the size of the array to trigger recalculation
of memory size rather than the flag. (this simplifies things a bit by removing all the places
where we set flags.)

> when we spill the DefaultDataBag we are not setting the sized changed flag to be true.
> --------------------------------------------------------------------------------------
>
>                 Key: PIG-1307
>                 URL: https://issues.apache.org/jira/browse/PIG-1307
>             Project: Pig
>          Issue Type: Bug
>            Reporter: Benjamin Reed
>            Assignee: Benjamin Reed
>             Fix For: 0.7.0
>
>         Attachments: PIG-1307.patch
>
>
> pig uses a size changed flag to indicate when we should recalculate the memory footprint
of the bag. the setting of this flag is sprinkled throughout the code. unfortunately, it is
missing in DefaultDataBag.spill(). there may be other cases as well. the problem with this
case is that when the low memory threshold kicks in, bags are spilled until the desired amount
of memory is "freed". since the flag is not being reset subsequent calls to the threshold
events will retrigger the spill() and think more memory was freed even though nothing was
actually spilled.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message