Uploaded image for project: 'Hadoop HDFS'
  1. Hadoop HDFS
  2. HDFS-7285 Erasure Coding Support inside HDFS
  3. HDFS-8220

Erasure Coding: StripedDataStreamer fails to handle the blocklocations which doesn't satisfy BlockGroupSize

    XMLWordPrintableJSON

Details

    • Sub-task
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • HDFS-7285
    • None
    • None
    • Reviewed

    Description

      During write operations StripedDataStreamer#locateFollowingBlock fails to validate the available datanodes against the BlockGroupSize. Please see the exception to understand more:

      2015-04-22 14:56:11,313 WARN  hdfs.DFSClient (DataStreamer.java:run(538)) - DataStreamer Exception
      java.lang.NullPointerException
      	at java.util.concurrent.LinkedBlockingQueue.offer(LinkedBlockingQueue.java:374)
      	at org.apache.hadoop.hdfs.StripedDataStreamer.locateFollowingBlock(StripedDataStreamer.java:157)
      	at org.apache.hadoop.hdfs.DataStreamer.nextBlockOutputStream(DataStreamer.java:1332)
      	at org.apache.hadoop.hdfs.DataStreamer.run(DataStreamer.java:424)
      	at org.apache.hadoop.hdfs.StripedDataStreamer.run(StripedDataStreamer.java:1)
      2015-04-22 14:56:11,313 INFO  hdfs.MiniDFSCluster (MiniDFSCluster.java:shutdown(1718)) - Shutting down the Mini HDFS Cluster
      2015-04-22 14:56:11,313 ERROR hdfs.DFSClient (DFSClient.java:closeAllFilesBeingWritten(608)) - Failed to close inode 16387
      java.io.IOException: DataStreamer Exception: 
      	at org.apache.hadoop.hdfs.DataStreamer.run(DataStreamer.java:544)
      	at org.apache.hadoop.hdfs.StripedDataStreamer.run(StripedDataStreamer.java:1)
      Caused by: java.lang.NullPointerException
      	at java.util.concurrent.LinkedBlockingQueue.offer(LinkedBlockingQueue.java:374)
      	at org.apache.hadoop.hdfs.StripedDataStreamer.locateFollowingBlock(StripedDataStreamer.java:157)
      	at org.apache.hadoop.hdfs.DataStreamer.nextBlockOutputStream(DataStreamer.java:1332)
      	at org.apache.hadoop.hdfs.DataStreamer.run(DataStreamer.java:424)
      	... 1 more
      

      Attachments

        1. HDFS-8220-001.patch
          3 kB
          Rakesh Radhakrishnan
        2. HDFS-8220-002.patch
          5 kB
          Rakesh Radhakrishnan
        3. HDFS-8220-003.patch
          2 kB
          Rakesh Radhakrishnan
        4. HDFS-8220-004.patch
          4 kB
          Rakesh Radhakrishnan
        5. HDFS-8220-HDFS-7285.005.patch
          4 kB
          Rakesh Radhakrishnan
        6. HDFS-8220-HDFS-7285.006.patch
          3 kB
          Rakesh Radhakrishnan
        7. HDFS-8220-HDFS-7285.007.patch
          4 kB
          Rakesh Radhakrishnan
        8. HDFS-8220-HDFS-7285.007.patch
          4 kB
          Rakesh Radhakrishnan
        9. HDFS-8220-HDFS-7285.008.patch
          5 kB
          Rakesh Radhakrishnan
        10. HDFS-8220-HDFS-7285-09.patch
          8 kB
          Rakesh Radhakrishnan
        11. HDFS-8220-HDFS-7285-10.patch
          9 kB
          Rakesh Radhakrishnan
        12. HDFS-8220-HDFS-7285-merge-10.patch
          9 kB
          Rakesh Radhakrishnan

        Issue Links

          Activity

            People

              rakeshr Rakesh Radhakrishnan
              rakeshr Rakesh Radhakrishnan
              Votes:
              0 Vote for this issue
              Watchers:
              8 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: