HADOOP-11323. WritableComparator#compare keeps reference to byte array. Contributed by Wilfred Spiegelenburg.
(cherry picked from commit eb4045e765
)
This commit is contained in:
parent
4b99bde929
commit
85bdc3a013
|
@ -36,6 +36,9 @@ Release 2.7.0 - UNRELEASED
|
||||||
|
|
||||||
OPTIMIZATIONS
|
OPTIMIZATIONS
|
||||||
|
|
||||||
|
HADOOP-11323. WritableComparator#compare keeps reference to byte array.
|
||||||
|
(Wilfred Spiegelenburg via wang)
|
||||||
|
|
||||||
BUG FIXES
|
BUG FIXES
|
||||||
|
|
||||||
HADOOP-11236. NFS: Fix javadoc warning in RpcProgram.java (Abhiraj Butala via harsh)
|
HADOOP-11236. NFS: Fix javadoc warning in RpcProgram.java (Abhiraj Butala via harsh)
|
||||||
|
|
|
@ -160,6 +160,7 @@ public class WritableComparator implements RawComparator, Configurable {
|
||||||
buffer.reset(b2, s2, l2); // parse key2
|
buffer.reset(b2, s2, l2); // parse key2
|
||||||
key2.readFields(buffer);
|
key2.readFields(buffer);
|
||||||
|
|
||||||
|
buffer.reset(null, 0, 0); // clean up reference
|
||||||
} catch (IOException e) {
|
} catch (IOException e) {
|
||||||
throw new RuntimeException(e);
|
throw new RuntimeException(e);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue