hadoop-common-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Chris Douglas (JIRA)" <j...@apache.org>
Subject [jira] Updated: (HADOOP-6476) o.a.h.io.Text - setCapacity does not shrink size
Date Sat, 13 Feb 2010 12:44:28 GMT

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

Chris Douglas updated HADOOP-6476:
----------------------------------

    Fix Version/s:     (was: 0.21.0)
           Status: Open  (was: Patch Available)

\-1 on forcing frequent allocations; this would ruin the performance of this class.

If you want to add a public {{setCapacity}} to fix/reset the size of the backing array explicitly,
that would be an admissible change.

> o.a.h.io.Text - setCapacity does not shrink size 
> -------------------------------------------------
>
>                 Key: HADOOP-6476
>                 URL: https://issues.apache.org/jira/browse/HADOOP-6476
>             Project: Hadoop Common
>          Issue Type: Bug
>            Reporter: Kay Kay
>         Attachments: HADOOP-6476.patch, HADOOP-6476.patch, HADOOP-6476.patch
>
>
> The internal byte array of o.a.h.io.Text does not shrink , if we set a capacity that
is less than the size of the internal byte array. 
> * If input length for setCapacity < length of byte array - then the byte array is
reset. 
> * Existing data is retained depending on if keepData variable is set. 
> * 4 new test cases added for various capacity sizes 

-- 
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