[
https://issues.apache.org/jira/browse/HADOOP-8323?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13263888#comment-13263888
]
Todd Lipcon commented on HADOOP-8323:
-------------------------------------
I agree with Jim - if we want a call which totally frees the memory, we should
add a new one for it. But I don't see a big use case for that -- if you want to
free the memory, why not just drop the reference to the Text object itself and
start with a new one? Or call {{text.set(new byte[0])}}?
+1 for reverting HADOOP-7940.
> Revert HADOOP-7940
> ------------------
>
> Key: HADOOP-8323
> URL: https://issues.apache.org/jira/browse/HADOOP-8323
> Project: Hadoop Common
> Issue Type: Bug
> Components: io
> Affects Versions: 2.0.0
> Reporter: Harsh J
> Assignee: Harsh J
> Priority: Critical
>
> Per [~jdonofrio]'s comments on HADOOP-7940, we should revert it as it has
> caused a performance regression (for scenarios where Text is reused, popular
> in MR).
> The clear() works as intended, as the API also offers a current length API.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira