Hadoop HDFS
  1. Hadoop HDFS
  2. HDFS-3961

FSEditLog preallocate() needs to reset the position of PREALLOCATE_BUFFER when more than 1MB size is needed

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 1.2.0
    • Fix Version/s: 1.2.0
    • Component/s: None
    • Labels:
      None
    • Hadoop Flags:
      Reviewed

      Description

      In the new preallocate() function, when the required size is larger 1MB, we need to reset the position for PREALLOCATION_BUFFER every time when we have allocated 1MB. Otherwise seems only 1MB can be allocated even if need is larger than 1MB.

        Issue Links

          Activity

          Transition Time In Source Status Execution Times Last Executer Last Execution Date
          Open Open Resolved Resolved
          1h 27m 1 Suresh Srinivas 20/Sep/12 20:54
          Resolved Resolved Closed Closed
          236d 9h 21m 1 Matt Foley 15/May/13 06:16
          Matt Foley made changes -
          Status Resolved [ 5 ] Closed [ 6 ]
          Hide
          Matt Foley added a comment -

          Closed upon release of Hadoop 1.2.0.

          Show
          Matt Foley added a comment - Closed upon release of Hadoop 1.2.0.
          Chris Nauroth made changes -
          Link This issue is related to HDFS-4782 [ HDFS-4782 ]
          Hide
          Colin Patrick McCabe added a comment -

          Thanks, Jing.

          Show
          Colin Patrick McCabe added a comment - Thanks, Jing.
          Suresh Srinivas made changes -
          Status Open [ 1 ] Resolved [ 5 ]
          Hadoop Flags Reviewed [ 10343 ]
          Assignee Jing Zhao [ jingzhao ]
          Fix Version/s 1.2.0 [ 12321657 ]
          Resolution Fixed [ 1 ]
          Hide
          Suresh Srinivas added a comment -

          I committed the patch to branch-1. Thank you Jing.

          Show
          Suresh Srinivas added a comment - I committed the patch to branch-1. Thank you Jing.
          Suresh Srinivas made changes -
          Affects Version/s 1.2.0 [ 12321657 ]
          Affects Version/s 1.1.0 [ 12317959 ]
          Suresh Srinivas made changes -
          Affects Version/s 1.1.0 [ 12317959 ]
          Affects Version/s 1.2.0 [ 12321657 ]
          Hide
          Suresh Srinivas added a comment -

          +1 for the patch. Thank you for finding this bug Jing.

          Show
          Suresh Srinivas added a comment - +1 for the patch. Thank you for finding this bug Jing.
          Jing Zhao made changes -
          Priority Critical [ 2 ] Major [ 3 ]
          Jing Zhao made changes -
          Link This issue is related to HDFS-3596 [ HDFS-3596 ]
          Jing Zhao made changes -
          Attachment HDFS-3961.patch [ 12545941 ]
          Jing Zhao made changes -
          Field Original Value New Value
          Project Hadoop Common [ 12310240 ] Hadoop HDFS [ 12310942 ]
          Key HADOOP-8831 HDFS-3961
          Affects Version/s 1.2.0 [ 12321657 ]
          Affects Version/s 1.2.0 [ 12321659 ]
          Hide
          Jing Zhao added a comment -

          I should create this jira in HDFS...

          Show
          Jing Zhao added a comment - I should create this jira in HDFS...
          Jing Zhao created issue -

            People

            • Assignee:
              Jing Zhao
              Reporter:
              Jing Zhao
            • Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Development