accumulo-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Josh Elser (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (ACCUMULO-2509) Clean up ByteBufferUtil
Date Mon, 06 Apr 2015 01:18:05 GMT

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

Josh Elser updated ACCUMULO-2509:
---------------------------------
    Fix Version/s:     (was: 1.7.0)
                   1.7.1
                   1.8.0

> Clean up ByteBufferUtil
> -----------------------
>
>                 Key: ACCUMULO-2509
>                 URL: https://issues.apache.org/jira/browse/ACCUMULO-2509
>             Project: Accumulo
>          Issue Type: Improvement
>    Affects Versions: 1.5.1, 1.6.0
>            Reporter: Sean Busbey
>            Priority: Minor
>             Fix For: 1.6.3, 1.8.0, 1.7.1
>
>
> Right now we rely on o.a.a.core.util.ByteBufferUtil to handle translating to/from byte[].
So long as we're not refactoring things to use ByteBuffer across the code base, this utility
needs to be cleaned up.
> The current implementation is lacking in a few ways:
> * it presumes the backing array is accessible
> * it doesn't state the above in javadocs
> * it uses the entire backing array instead of the part marked as valid
> * it doesn't use the ByteBuffer optimized bulk getter methods
> Preferably, it would do so by changing to allow for any ByteBuffer and it would use the
ByteBuffer.get method to copy into a byte[] to be returned. We'll need tests to make sure
current code isn't relying on the incorrect ignoring of buffer boundaries.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message