Hadoop Common
  1. Hadoop Common
  2. HADOOP-7940

method clear() in org.apache.hadoop.io.Text does not work

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 0.20.205.0
    • Fix Version/s: 2.0.0-alpha
    • Component/s: io
    • Labels:
    • Environment:

      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.

        Issue Links

          Activity

            People

            • Assignee:
              Csaba Miklos
              Reporter:
              Aaron,
            • Votes:
              1 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Time Tracking

                Estimated:
                Original Estimate - 2h
                2h
                Remaining:
                Remaining Estimate - 2h
                2h
                Logged:
                Time Spent - Not Specified
                Not Specified

                  Development