Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
0.20.205.0
-
Ubuntu, hadoop cloudera CDH3U2, Oracle SUN JDK 6U30
Description
LineReader reader = new LineReader(in, 4096);
...
Text text = new Text();
while((reader.readLine(text)) > 0) {
...
text.clear();
}
}
Even the clear() method is called each time, some bytes are still not filled as zero.
So, when reader.readLine(text) is called in a loop, some bytes are dirty which was from last call.
Attachments
Attachments
Issue Links
- is superceded by
-
HADOOP-8323 Revert HADOOP-7940 and improve javadocs and test for Text.clear()
- Closed