hadoop-common-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From omal...@apache.org
Subject svn commit: r584824 - in /lucene/hadoop/trunk: CHANGES.txt src/java/org/apache/hadoop/mapred/BasicTypeSorterBase.java
Date Mon, 15 Oct 2007 17:10:53 GMT
Author: omalley
Date: Mon Oct 15 10:10:52 2007
New Revision: 584824

URL: http://svn.apache.org/viewvc?rev=584824&view=rev
Log:
HADOOP-2053.  Fix a dangling reference to a memory buffer in the map output
sorter. Contributed by Arun C. Murthy.

Modified:
    lucene/hadoop/trunk/CHANGES.txt
    lucene/hadoop/trunk/src/java/org/apache/hadoop/mapred/BasicTypeSorterBase.java

Modified: lucene/hadoop/trunk/CHANGES.txt
URL: http://svn.apache.org/viewvc/lucene/hadoop/trunk/CHANGES.txt?rev=584824&r1=584823&r2=584824&view=diff
==============================================================================
--- lucene/hadoop/trunk/CHANGES.txt (original)
+++ lucene/hadoop/trunk/CHANGES.txt Mon Oct 15 10:10:52 2007
@@ -421,6 +421,13 @@
     to the transaction log. (Dhruba Borthakur)
 
 
+Release 0.14.3 - Unreleased
+
+  BUG FIXES
+
+    HADOOP-2053. Fixed a dangling reference to a memory buffer in the map 
+    output sorter. (acmurthy via omalley)
+
 Release 0.14.2 - 2007-10-09
 
   BUG FIXES

Modified: lucene/hadoop/trunk/src/java/org/apache/hadoop/mapred/BasicTypeSorterBase.java
URL: http://svn.apache.org/viewvc/lucene/hadoop/trunk/src/java/org/apache/hadoop/mapred/BasicTypeSorterBase.java?rev=584824&r1=584823&r2=584824&view=diff
==============================================================================
--- lucene/hadoop/trunk/src/java/org/apache/hadoop/mapred/BasicTypeSorterBase.java (original)
+++ lucene/hadoop/trunk/src/java/org/apache/hadoop/mapred/BasicTypeSorterBase.java Mon Oct
15 10:10:52 2007
@@ -120,6 +120,10 @@
     pointers = null;
     maxKeyLength = 0;
     maxValLength = 0;
+    
+    //release the large key-value buffer so that the GC, if necessary,
+    //can collect it away
+    keyValBuffer = null;
   }
   //A compare method that references the keyValBuffer through the indirect
   //pointers



Mime
View raw message