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

          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.
          Hide
          Colin Patrick McCabe added a comment -

          Thanks, Jing.

          Show
          Colin Patrick McCabe added a comment - Thanks, Jing.
          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.
          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.
          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...

            People

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

              Dates

              • Created:
                Updated:
                Resolved:

                Development