Uploaded image for project: 'Hadoop HDFS'
  1. Hadoop HDFS
  2. HDFS-3531

EditLogFileOutputStream#preallocate should check for incomplete writes

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 2.0.0-alpha
    • 2.0.2-alpha
    • namenode
    • None
    • Reviewed

    Description

      We need to check for short writes when using WritableByteChannel#write and related methods in EditLogFileOutputStream#preallocate so we ensure we've preallocated sufficient space.

      Attachments

        1. hadoop-8491.txt
          5 kB
          Eli Collins
        2. hadoop-8491.txt
          5 kB
          Eli Collins
        3. HADOOP-8491.002.patch
          5 kB
          Colin McCabe
        4. HADOOP-8491.001.patch
          5 kB
          Colin McCabe

        Issue Links

          Activity

            People

              cmccabe Colin McCabe
              cmccabe Colin McCabe
              Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: