You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@gora.apache.org by "Lewis John McGibbney (JIRA)" <ji...@apache.org> on 2016/09/16 08:06:20 UTC
[jira] [Commented] (GORA-493) Unclosed DataInputBuffer in
IOUtils#deserialize()
[ https://issues.apache.org/jira/browse/GORA-493?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15495699#comment-15495699 ]
Lewis John McGibbney commented on GORA-493:
-------------------------------------------
Thanks for logging these issue Ted. Do you have a patch? Would be very good to get this into 0.7.
> Unclosed DataInputBuffer in IOUtils#deserialize()
> -------------------------------------------------
>
> Key: GORA-493
> URL: https://issues.apache.org/jira/browse/GORA-493
> Project: Apache Gora
> Issue Type: Bug
> Reporter: Ted Yu
> Priority: Minor
> Fix For: 0.7
>
>
> {code}
> DataInputBuffer buffer = new DataInputBuffer();
> buffer.reset(in, in.length);
> return deserialize(conf, buffer, obj);
> {code}
> buffer should be closed upon return from the method.
> In serialize(), there is similar problem for DataOutputBuffer.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)