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

Writing striped file failed due to different cell size

    XMLWordPrintableJSON

    Details

      Description

      Root cause: The buffer size returned by ElasticByteBufferPool.getBuffer() is more than caller expected.

      Exception stack:
      org.apache.hadoop.HadoopIllegalArgumentException: Invalid buffer, not of length 4096

      at org.apache.hadoop.io.erasurecode.rawcoder.ByteBufferEncodingState.checkBuffers(ByteBufferEncodingState.java:99)
      at org.apache.hadoop.io.erasurecode.rawcoder.ByteBufferEncodingState.<init>(ByteBufferEncodingState.java:46)
      at org.apache.hadoop.io.erasurecode.rawcoder.RawErasureEncoder.encode(RawErasureEncoder.java:67)
      at org.apache.hadoop.hdfs.DFSStripedOutputStream.encode(DFSStripedOutputStream.java:368)
      at org.apache.hadoop.hdfs.DFSStripedOutputStream.writeParityCells(DFSStripedOutputStream.java:942)
      at org.apache.hadoop.hdfs.DFSStripedOutputStream.writeChunk(DFSStripedOutputStream.java:547)
      at org.apache.hadoop.fs.FSOutputSummer.writeChecksumChunks(FSOutputSummer.java:217)
      at org.apache.hadoop.fs.FSOutputSummer.write1(FSOutputSummer.java:125)
      at org.apache.hadoop.fs.FSOutputSummer.write(FSOutputSummer.java:111)
      at org.apache.hadoop.fs.FSDataOutputStream$PositionCache.write(FSDataOutputStream.java:57)
      at java.io.DataOutputStream.write(DataOutputStream.java:107)
      at org.apache.hadoop.io.IOUtils.copyBytes(IOUtils.java:94)
      at org.apache.hadoop.hdfs.DFSTestUtil.writeFile(DFSTestUtil.java:834)

        Attachments

        1. HDFS-12392.001.patch
          5 kB
          Sammi Chen
        2. HDFS-12392.002.patch
          5 kB
          Sammi Chen
        3. HDFS-12392.003.patch
          5 kB
          Sammi Chen

          Activity

            People

            • Assignee:
              Sammi Sammi Chen
              Reporter:
              Sammi Sammi Chen
            • Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: