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

Remove unused Replica copyOnWrite code

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 2.8.0, 3.0.0-alpha1
    • 2.8.0, 3.0.0-alpha1
    • None
    • None

    Description

      ReplicaInfo#unlinkBlock() is effectively disabled by the following code, because isUnlinked() always returns true.

      if (isUnlinked()) {
        return false;
      }
      

      Several test cases, e.g., TestFileAppend#testCopyOnWrite and TestDatanodeRestart#testRecoverReplicas are testing against the unlink
      Lets remove the relevant code to eliminate the confusions.

      Attachments

        1. HDFS-8860.0.patch
          17 kB
          Lei (Eddy) Xu

        Issue Links

          Activity

            People

              eddyxu Lei (Eddy) Xu
              eddyxu Lei (Eddy) Xu
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: