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

Erasure Coding: fix the copy constructor of BlockInfoStriped and BlockInfoContiguous

    XMLWordPrintableJSON

Details

    • Sub-task
    • Status: Resolved
    • Major
    • Resolution: Duplicate
    • None
    • None
    • None
    • None

    Description

      BlockInfoStriped(BlockInfoStriped b) {
        this(b, b.getSchema());
        this.setBlockCollection(b.getBlockCollection());
      }
      
      protected BlockInfoContiguous(BlockInfoContiguous from) {
        this(from, from.getBlockCollection().getPreferredBlockReplication());
        this.triplets = new Object[from.triplets.length];
        this.setBlockCollection(from.getBlockCollection());
      }
      

      We should define a copy constructor in the BlockInfo, and call it from these two subclass. I also notice a NullPointerException test failure of TestBlockInfo.testCopyConstructor in latest branch which is related to this.

      Attachments

        1. HDFS-8587-HDFS-7285.001.patch
          3 kB
          Yi Liu
        2. HDFS-8587-HDFS-7285.002.patch
          3 kB
          Yi Liu

        Issue Links

          Activity

            People

              vinayakumarb Vinayakumar B
              hitliuyi Yi Liu
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: