[ https://issues.apache.org/jira/browse/HADOOP-17430?focusedWorklogId=531491&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-531491 ]
ASF GitHub Bot logged work on HADOOP-17430: ------------------------------------------- Author: ASF GitHub Bot Created on: 05/Jan/21 21:07 Start Date: 05/Jan/21 21:07 Worklog Time Spent: 10m Work Description: steveloughran commented on pull request #2545: URL: https://github.com/apache/hadoop/pull/2545#issuecomment-754899716 Javadocs look good, and test failures are the OOM problems we've started having. +1, merging to trunk and backporting to 3.3. Thanks! ---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: us...@infra.apache.org Issue Time Tracking ------------------- Worklog Id: (was: 531491) Time Spent: 3h 20m (was: 3h 10m) > There is no way to clear Text bytes now > --------------------------------------- > > Key: HADOOP-17430 > URL: https://issues.apache.org/jira/browse/HADOOP-17430 > Project: Hadoop Common > Issue Type: Wish > Components: common > Reporter: gaozhan ding > Priority: Minor > Labels: pull-request-available > Time Spent: 3h 20m > Remaining Estimate: 0h > > In org.apache.hadoop.io.Text:clear() method, the comments show that we can > free the bytes by call set(new byte[0]), but it's not going to work now. > Maybe we can follow this comments. > > > {code:java} > // org.apache.hadoop.io.Text > /** > * Clear the string to empty. > * > * <em>Note</em>: For performance reasons, this call does not clear the > * underlying byte array that is retrievable via {@link #getBytes()}. > * In order to free the byte-array memory, call {@link #set(byte[])} > * with an empty byte array (For example, <code>new byte[0]</code>). > */ > public void clear() { > length = 0; > textLength = -1; > } > {code} > > -- This message was sent by Atlassian Jira (v8.3.4#803005) --------------------------------------------------------------------- To unsubscribe, e-mail: common-issues-unsubscr...@hadoop.apache.org For additional commands, e-mail: common-issues-h...@hadoop.apache.org