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

Remove unused Replica copyOnWrite code

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.8.0, 3.0.0-alpha1
    • Fix Version/s: 2.8.0, 3.0.0-alpha1
    • Component/s: None
    • Labels:
      None
    • Target Version/s:

      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

          Issue Links

            Activity

              People

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

                Dates

                • Created:
                  Updated:
                  Resolved: