Uploaded image for project: 'Hadoop Common'
  1. Hadoop Common
  2. HADOOP-3554

LineRecordReader needs more synchronization

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Won't Fix
    • 0.17.0
    • None
    • None
    • None
    • All java platforms

    • surelogic

    Description

      LineRecordReader has three index fields start, end, and pos. All of these fields are long, which means that, in general, access to them is not atomic. This can cause problems if the fields are accessed without appropriate synchronization.

      I propose the following changes to the class:

      • Make the fields start and end final. This requires some minor changes to the constructor LineRecordReader(Configuration, FileSplit).
      • Make the method getProgress() synchronized.

      Attachments

        1. HADOOP-3445.patch
          3 kB
          Aaron Greenhouse

        Activity

          People

            Unassigned Unassigned
            aarongreenhouse Aaron Greenhouse
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Time Tracking

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